[Issue 10351] [GC] GC deadlocks in thread_suspendAll()

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jun 18 04:28:09 PDT 2017


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

tetyys at tetyys.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tetyys at tetyys.com

--- Comment #6 from tetyys at tetyys.com ---
Having this issue only under profile build (dub --build=profile)

(gdb) bt
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x00000000011bbc4e in thread_suspendAll ()
#2  0x00000000011a22e1 in gc.impl.conservative.gc.Gcx.fullcollect() ()
#3  0x00000000011a078e in gc.impl.conservative.gc.Gcx.bigAlloc() ()
#4  0x00000000011a4659 in
gc.impl.conservative.gc.ConservativeGC.__T9runLockedS79_D2gc4impl12conservative2gc14ConservativeGC12mallocNoSyncMFNbmkKmxC8TypeInfoZPvS40_D2gc4impl12conservative2gc10mallocTimelS40_D2gc4impl12conservative2gc10numMallocslTmTkTmTxC8TypeInfoZ.runLocked()
()
#5  0x000000000119dd4a in gc.impl.conservative.gc.ConservativeGC.malloc() ()
#6  0x000000000113ba6b in gc_malloc ()
#7  0x000000000113e8db in _d_newclass ()
#8  0x0000000000ff21f8 in
vibe.core.drivers.libevent2.Libevent2Driver.connectTCP() (this=0x6de2dda2b500,
bind_addr=..., addr=...)
    at
../.dub/packages/vibe-d-0.8.0-beta.8/vibe-d/core/vibe/core/drivers/libevent2.d:347
#9  0x000000000104a60a in vibe.core.net.connectTCP() (bind_address=...,
addr=...)
    at ../.dub/packages/vibe-d-0.8.0-beta.8/vibe-d/core/vibe/core/driver.d:33
#10 0x0000000000a560fc in handle.GetRTXmlResponse() (Xml=1187,
__Xml_8=0x1247e2a <_TMP9856>)
    at ../.dub/packages/vibe-d-0.8.0-beta.8/vibe-d/core/vibe/core/net.d:145
#11 0x0000000000a538af in app._sharedStaticCtor13() () at source/app.d:215
#12 0x0000000000a55db5 in app.__modsharedctor() ()
#13 0x00000000011a8f42 in
rt.minfo.__T14runModuleFuncsS442rt5minfo11ModuleGroup8runCtorsMFZ9__lambda2Z.runModuleFuncs()
()
#14 0x00000000011a8bd5 in rt.minfo.ModuleGroup.runCtors() ()
#15 0x00000000011a8ded in rt.minfo.rt_moduleCtor() ()
#16 0x0000000001143341 in rt.sections_elf_shared.DSO.opApply() ()
#17 0x00000000011a8dbd in rt_moduleCtor ()
#18 0x00000000011a637b in rt_init ()
#19 0x000000000113da52 in rt.dmain2._d_run_main() ()
#20 0x000000000113d9f8 in rt.dmain2._d_run_main() ()
#21 0x000000000113d968 in _d_run_main ()
#22 0x0000000000a6ce70 in main ()

(gdb) info threads
  Id   Target Id         Frame
* 1    Thread 0x6de2ddb2dc00 (LWP 4036) "rtsrtorrentrela" sem_wait ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85

Occurs early when running the program

--


More information about the Digitalmars-d-bugs mailing list