D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3619 - Thread crash on exit
Summary: Thread crash on exit
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: x86 Mac OS X
: P2 normal
Assignee: Sean Kelly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-15 18:51 UTC by Michel Fortin
Modified: 2015-06-09 01:27 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Michel Fortin 2009-12-15 18:51:09 UTC
The program below crashes with DMD 2.037 under Mac OS X 10.6 with a null dereference when the thread finishes.

import core.thread;

void threadFunc() { }

void main() {
    auto thread = new Thread(&threadFunc);
    thread.start();
    thread.join();
}
Comment 1 Walter Bright 2010-03-08 22:26:14 UTC
Fixed dmd 2.041