Bug 322 – Spawning threads which allocate and free memory leads to pause error on collect

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2006-09-03T10:53:00Z
Last change time
2015-06-09T05:14:49Z
Assigned to
bugzilla
Creator
default_357-line
Depends on
318

Attachments

IDFilenameSummaryContent-TypeSize
24source.dtest source from pastebintext/plain443

Comments

Comment #0 by default_357-line — 2006-09-03T10:53:39Z
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 .
Comment #1 by thomas-dloop — 2006-09-03T11:12:48Z
Created attachment 24 test source from pastebin
Comment #2 by default_357-line — 2006-09-03T11:17:50Z
mikolalysenko from #d on freenode made a greatly reduced testcase on http://paste.dprogramming.com/dpokg2hr.php . Same error. Gratitude to him.
Comment #3 by default_357-line — 2006-09-03T11:19:07Z
mikolalysenko has reproduced the problem on linux. Seems to be a generic problem with phobos.
Comment #4 by braddr — 2007-10-27T11:52:57Z
Please see the patch attached to bug 318. It should fix this bug as well.
Comment #5 by bugzilla — 2007-11-03T21:41:25Z
Fixed dmd 1.023 and 2.007