www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6290] New: GC breaks if a thread is allocated on Mac OSX

reply d-bugmail puremagic.com writes:
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



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: -------
Jul 11 2011
next sibling parent d-bugmail puremagic.com writes:
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: -------
Jul 11 2011
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Mar 12 2012