[Issue 5488] Spawned threads hang in a way that suggests allocation or gc issue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 31 11:18:54 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5488


Sean Kelly <sean at invisibleduck.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |sean at invisibleduck.org
         AssignedTo|nobody at puremagic.com        |sean at invisibleduck.org


--- Comment #1 from Sean Kelly <sean at invisibleduck.org> 2011-01-31 11:16:39 PST ---
This one is weird, and doesn't appear related to 4307.  One of the threads
(thread A) is in a GC collection and blocked trying to acquire the mutex
protecting the global thread list within thread_resumeAll. Another thread
(thread B) is also blocked trying to acquire this mutex for other reasons.  My
best guess is that pthread_mutex in OSX is trying to give ownership of the lock
to thread B, and since thread B is suspended it effectively blocks thread A
from acquiring it to resume execution after the GC cycle.

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


More information about the Digitalmars-d-bugs mailing list