Bug 10976 – thread_joinAll after main exit performed too late
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-05T19:49:00Z
Last change time
2013-10-08T09:47:14Z
Keywords
pull
Assigned to
nobody
Creator
code
Comments
Comment #0 by code — 2013-09-05T19:49:33Z
Because we moved the rt_init/rt_term code into the .ctors/.dtors of druntime the
implicit thread_joinAll is called too late, i.e. after the shared static destructors are run.
This might crash or hang other running threads.
https://github.com/D-Programming-Language/druntime/pull/590