www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 322] New: Spawning threads which allocate and free memory leads to pause error on collect

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=322

           Summary: Spawning threads which allocate and free memory leads to
                    pause error on collect
           Product: D
           Version: unspecified
          Platform: PC
               URL: http://pastebin.ca/159818
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: default_357-line yahoo.de


When running the testcase pasted in the URL on win32 (tested with gdc and dmd's
current versions), an Error: Thread error: Cannot pause gets thrown. Changing
and rebuilding phobos to throw a SIGTRAP on an error in pause() yields the
following stack trace: http://pastebin.ca/159838 .


-- 
Sep 03 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=322






Created an attachment (id=24)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=24&action=view)
test source from pastebin


-- 
Sep 03 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=322






mikolalysenko from #d on freenode made a greatly reduced testcase on
http://paste.dprogramming.com/dpokg2hr.php . Same error. Gratitude to him.


-- 
Sep 03 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=322






mikolalysenko has reproduced the problem on linux. Seems to be a generic
problem with phobos.


-- 
Sep 03 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=322


braddr puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED





Please see the patch attached to bug 318.  It should fix this bug as well.


-- 
Oct 27 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=322


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED





Fixed dmd 1.023 and 2.007


-- 
Nov 03 2007