[Issue 4890] GC.collect() deadlocks multithreaded program.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 8 15:04:54 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=4890


safety0ff.bugz <safety0ff.bugz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |safety0ff.bugz at gmail.com


--- Comment #8 from safety0ff.bugz <safety0ff.bugz at gmail.com> 2014-02-08 15:04:51 PST ---
(In reply to comment #7)
> A quick search lead me to this issue. It would appear the deadlock still
> occurs.
> [...SNIP...]
> The deadlock doesn't happen on every run though, so may be tricky to track
> down.
> It's in this piece of test/shared/src/plugin.d:
> 
> 23      launchThread();
> 24      GC.collect();
> 25      joinThread();
> 
> GC.collect() simply doesn't return. I haven't investigated deeper yet. Maybe it
> has something to do with GC trying to pause/resume an exiting/finished thread?
> This is on 64-bit Linux.

Does the code in the first post deadlock for you?
If not then issues #11981 / #10351 also look relevant.

For #11981 / #10351, we REALLY need a way to reproduce the deadlock, along with
information about the system it is running on (glibc version, linux kernel
version, etc, as much as we can get.)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list