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

           Summary: Segfault on first call to GC after starting new thread
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@yahoo.com> 2011-02-14 17:46:30 PST ---
The following code segfaults on about 50% of runs.  This happens in both 32-bit
and 64-bit Linux and on Windows, regardless of how the -O, -inline, and
-release flags are set.

import core.memory, core.thread;

void doNothing() {}

void main() {
    auto t = new Thread(&doNothing);
    t.start;
    GC.collect();
}

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

Reply via email to