Thread overview
[Issue 13625] AssertError@src/core/thread.d(1652)
Oct 19, 2014
Dicebot
Oct 19, 2014
Dicebot
Dec 17, 2022
Iain Buclaw
Dec 30, 2022
Iain Buclaw
October 19, 2014
https://issues.dlang.org/show_bug.cgi?id=13625

--- Comment #1 from Dicebot <public@dicebot.lv> ---
If I simply disable the assertion resulting test program hangs here:

#0  0x00007ffff7bcd910 in sem_wait () from /usr/lib/libpthread.so.0
#1  0x0000000000422ba0 in core.thread.suspend(core.thread.Thread)
(t=0x7ffff7ec5700) at src/core/thread.d:2490
#2  0x0000000000422d45 in thread_suspendAll () at src/core/thread.d:2577
#3  0x0000000000423677 in core.thread.__unittestL2949_15() () at
src/core/thread.d:2974
#4  0x0000000000427d41 in core.thread.__modtest() ()
#5  0x0000000000432678 in
core.runtime.runModuleUnitTests().__foreachbody3(object.ModuleInfo*) ()
#6  0x00000000004299c8 in object.ModuleInfo.opApply(scope
int(object.ModuleInfo*) delegate).__lambda2(immutable(object.ModuleInfo*)) ()
#7  0x000000000042f93f in rt.minfo.moduleinfos_apply(scope
int(immutable(object.ModuleInfo*)) delegate).__foreachbody2(ref
rt.sections_linux.DSO) ()
#8  0x000000000042faf2 in rt.sections_linux.DSO.opApply(scope int(ref
rt.sections_linux.DSO) delegate) ()
#9  0x000000000042f8d5 in rt.minfo.moduleinfos_apply(scope
int(immutable(object.ModuleInfo*)) delegate) ()
#10 0x00000000004299a1 in object.ModuleInfo.opApply(scope
int(object.ModuleInfo*) delegate) ()
#11 0x000000000043250c in runModuleUnitTests ()
#12 0x000000000042d1cb in rt.dmain2._d_run_main(int, char**, extern(C)
int(char[][]) function*).runAll() ()
#13 0x000000000042d17e in rt.dmain2._d_run_main(int, char**, extern(C)
int(char[][]) function*).tryExec(scope void() delegate) ()
#14 0x000000000042d0f8 in _d_run_main ()
#15 0x0000000000427e35 in main ()
#16 0x00007ffff732f040 in __libc_start_main () from /usr/lib/libc.so.6
#17 0x0000000000420629 in _start ()

--
October 19, 2014
https://issues.dlang.org/show_bug.cgi?id=13625

--- Comment #2 from Dicebot <public@dicebot.lv> ---
It was discovered that deadlock issue was because of GDM bug. Updating it to 3.14.1 did take care of the problem (see also https://issues.dlang.org/show_bug.cgi?id=4890)

Assertion still fires though. It looks like it only works in combined test suite because other threads happen to be created before this test is run.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=13625

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 30, 2022
https://issues.dlang.org/show_bug.cgi?id=13625

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ibuclaw@gdcproject.org
         Resolution|---                         |FIXED

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
See PR, which has been merged. https://github.com/dlang/druntime/pull/1016

--