www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13416] New: frequent auto-tester hangs in core.thread on

https://issues.dlang.org/show_bug.cgi?id=13416

          Issue ID: 13416
           Summary: frequent auto-tester hangs in core.thread on freebsd
                    64
           Product: D
           Version: D2
          Hardware: x86_64
                OS: FreeBSD
            Status: NEW
          Severity: critical
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: braddr puremagic.com

The unit test "obj/64/test_runner core.thread" semi-frequently deadlocks on the
new build server.  It's an 8 core system vs the older boxes 2 core system.

(gdb) bt
#0  0x0000000800a0a7ac in sigsuspend () from /lib/libc.so.7
#1  0x0000000800786db5 in sigsuspend () from /lib/libthr.so.3
#2  0x000000000048c55d in core.thread.thread_suspendHandler() ()
#3  0x000000000048db2c in core.thread.callWithStackShell() ()
#4  0x000000000048c4c9 in thread_suspendHandler ()
#5  <signal handler called>
#6  0x000000080078956c in ?? () from /lib/libthr.so.3
#7  0x000000080078c5f0 in pthread_attr_get_np () from /lib/libthr.so.3
#8  0x000000000048e64d in core.thread.getStackBottom() ()
#9  0x000000000048c34a in thread_entryPoint ()
#10 0x00000008007835e1 in ?? () from /lib/libthr.so.3
#11 0x00007ffffeffa000 in ?? ()
Cannot access memory at address 0x7fffff1fa000

(gdb) thr 2
[Switching to thread 2 (Thread 800c041c0 (LWP 100229 initial thread))]
#0  0x000000080078d64c in ?? () from /lib/libthr.so.3
(gdb) bt
#0  0x000000080078d64c in ?? () from /lib/libthr.so.3
#1  0x000000080078d33c in ?? () from /lib/libthr.so.3
#2  0x00000008007894bd in ?? () from /lib/libthr.so.3
#3  0x000000080078902d in pthread_kill () from /lib/libthr.so.3
#4  0x000000000048db6b in core.thread.suspend() ()
#5  0x000000000048dd67 in thread_suspendAll ()
#6  0x00000000004e565a in gc.gc.Gcx.fullcollect() ()
#7  0x00000000004e3d5b in gc.gc.GC.fullCollect() ()
#8  0x00000000004e7df3 in gc_collect ()
#9  0x000000000048b22d in core.memory.GC.collect() ()
#10 0x000000000048fb5a in core.thread.__unittestL4780_99() ()
#11 0x00000000004900d6 in core.thread.__modtest() ()
#12 0x0000000000472d22 in test_runner.tester() ()
#13 0x000000000048b90a in runModuleUnitTests ()
#14 0x0000000000503903 in rt.dmain2._d_run_main() ()
#15 0x00000000005038b6 in rt.dmain2._d_run_main() ()
#16 0x0000000000503837 in _d_run_main ()
#17 0x0000000000472e53 in main ()

--
Sep 01 2014