www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8849] New: std.parallelism.executeInNewThread with thread priority segfaults

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

           Summary: std.parallelism.executeInNewThread with thread
                    priority segfaults
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: acehreli yahoo.com



import std.parallelism;

void foo()
{}

void main() {
   auto t = task!foo();
   t.executeInNewThread(1);
}

Output from gdb:

Program received signal SIGSEGV, Segmentation fault.
0x0000003016e0839b in pthread_getschedparam () from /lib64/libpthread.so.0
Missing separate debuginfos, use: debuginfo-install
glibc-2.12-1.80.el6_3.5.x86_64
(gdb) bt




Compiling with -m32 causes the same issue with better backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x0011844d in pthread_getschedparam () from /lib/libpthread.so.0
Missing separate debuginfos, use: debuginfo-install
glibc-2.12-1.80.el6_3.5.i686
(gdb) bt




(this=0xf7ee5fe0, priority=1) at
/usr/include/d/dmd/phobos/std/parallelism.d:753







-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 18 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8849




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/d4cce7be56a76c117ded75829d69e6b8603944f9
Fixes Issue 8849:  std.parallelism.executeInNewThread with thread priority
segfaults

https://github.com/D-Programming-Language/phobos/commit/f230a1653fdf412265d54e360563f64fb981abfd


Fix Issue 8849

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 18 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8849


Alex Rønne Petersen <alex lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alex lycus.org
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 18 2012