www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1960] New: Thread Class Causes SEGV If Not Started

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

           Summary: Thread Class Causes SEGV If Not Started
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: bcwhite pobox.com


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


-- 
Mar 30 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1960



--- Comment #1 from Iain Buclaw <ibuclaw ubuntu.com> 2010-05-15 13:00:29 PDT ---
Created an attachment (id=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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 15 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1960


Lars T. Kyllingstad <bugzilla kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |
                 CC|                            |bugzilla kyllingen.net
            Version|2.012                       |D1


--- Comment #2 from Lars T. Kyllingstad <bugzilla kyllingen.net> 2010-08-13
04:14:15 PDT ---
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.

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