[Issue 11378] implicit runtime initialization/finalization is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 30 13:54:07 PDT 2013


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



--- Comment #7 from Martin Nowak <code at dawg.eu> 2013-10-30 13:54:00 PDT ---
(In reply to comment #5)
> I've noticed the following program now segfaults on exit. In case calling
> exit() is now not possible, please document the correct way how to do it (I
> haven't found any).
> 
You have a race condition because both the main thread and the spawned thread
run the process destruction.
You shouldn't call exit in your thread but simply break the infinite loop.

-- 
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