Bug 1960 – Thread Class Causes SEGV If Not Started

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2008-03-30T16:43:00Z
Last change time
2015-11-03T19:11:53Z
Keywords
patch
Assigned to
nobody
Creator
bcwhite

Attachments

IDFilenameSummaryContent-TypeSize
630issue1960.patchFix SEGV in std.threadtext/plain574

Comments

Comment #0 by bcwhite — 2008-03-30T16:43:40Z
Creating and destructing an instance of Thread will cause a SEGV if nothing is done in between. -------------------- import std.thread; void main(char[][] argv) { scope Thread t = new Thread(); printf("never mind...\n"); } -------------------- dragon:~/tmp> dmd dtest.d dragon:~/tmp> ./dtest never mind... Segmentation fault
Comment #1 by ibuclaw — 2010-05-15T13:00:29Z
Created attachment 630 Fix SEGV in std.thread This bug is present in the D1 Phobos library too. The fix is trivial in both cases, and attaching a patch. See also Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581700
Comment #2 by bugzilla — 2010-08-13T04:14:15Z
This is now D1 only. D2 doesn't have std.thread anymore, and the problem doesn't seem to exist in core.thread. Also: There is no ICE (Internal Compiler Error) here, so I'm removing the ice-on-valid-code keyword.
Comment #3 by andrei — 2015-11-03T19:11:53Z
It's unlikely this D1 issue will get worked on. If it applies to D2 as well and/or if anyone plans to work on it, please reopen.