Thread overview
[Issue 6290] New: GC breaks if a thread is allocated on Mac OSX
Jul 12, 2011
Jakob Bornecrantz
Jul 12, 2011
Jakob Bornecrantz
Mar 12, 2012
Walter Bright
July 12, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6290

           Summary: GC breaks if a thread is allocated on Mac OSX
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: wallbraker@gmail.com


--- Comment #0 from Jakob Bornecrantz <wallbraker@gmail.com> 2011-07-11 19:07:06 PDT ---
class MyThread : public Thread {
    int run() {
        new byte[1024*1024];
        return 0;
     }
}

int main(char[][] args) {
    auto t = new MyThread();
    t.start();
    t.wait();
    return 0;
}

The above program is totally broken on Mac due to a bug in the GC. Patch available in pull request here: https://github.com/D-Programming-Language/phobos/pull/141 after pulling that request, please add this example as a unittest or something, this embarrassment have been in there since at least 1.064.

Cheers Jakob.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 12, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6290


Jakob Bornecrantz <wallbraker@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6290


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-03-12 02:59:11 PDT ---
The pull request was pulled. I presume that means this is fixed.

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