www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20615] New: GC spinlock crash

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

          Issue ID: 20615
           Summary: GC spinlock crash
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: mrsmith33 yandex.ru

Thread 2 received signal SIGSEGV, Segmentation fault.
(gdb) backtrace


    undef_name=undef_name entry=0x7ffff7678b0f
"_D4core6atomic__T10atomicLoadVEQBdQBb11MemoryOrderi0TmZQBmFNaNbNiNfKOxmZm",
new_hash=new_hash entry=447189232, 
    old_hash=old_hash entry=0x7ffff7fe2080, ref=0x7ffff74feda0, 
    result=result entry=0x7ffff7fe2090, scope=0x7ffff7ffe428, i=0, version=0x0,
flags=5, 
    skip=0x0, type_class=1, undef_map=0x7ffff7ff6000) at dl-lookup.c:338

    undef_name=0x7ffff7678b0f
"_D4core6atomic__T10atomicLoadVEQBdQBb11MemoryOrderi0TmZQBmFNaNbNiNfKOxmZm",
undef_map=0x7ffff7ff6000, ref=ref entry=0x7ffff7fe2128, 
    symbol_scope=0x7ffff7ff6358, version=0x0, type_class=type_class entry=1,
flags=5, 
    skip_map=<optimized out>) at dl-lookup.c:813

out>)
    at ../elf/dl-runtime.c:112

    at ../sysdeps/x86_64/dl-trampoline.h:125

   from /home/user/dlang/dmd-2.087.1/linux/lib64/libphobos2.so.0.87

_D2gc4impl12conservativeQw3Gcx__T11ToScanStackTSQBuQBuQBsQCdQBi__T9ScanRangeVbi0ZQpZQBz9popLockedMFNbNiKQCfZb
()
   from /home/user/dlang/dmd-2.087.1/linux/lib64/libphobos2.so.0.87

_D2gc4impl12conservativeQw3Gcx__T4markVbi0Vbi1ZQoMFNbNlSQCcQCcQCaQClQBq__T9ScanRangeVbi0ZQpZv
()
   from /home/user/dlang/dmd-2.087.1/linux/lib64/libphobos2.so.0.87

_D2gc4impl12conservativeQw3Gcx__T21pullFromScanStackImplVbi0ZQBcMFNbZv () from
/home/user/dlang/dmd-2.087.1/linux/lib64/libphobos2.so.0.87

()
   from /home/user/dlang/dmd-2.087.1/linux/lib64/libphobos2.so.0.87

_D4core6thread20createLowLevelThreadFNbNiDFNbZvkDFNbZvZ20thread_lowlevelEntryUNbPvZQd
() from /home/user/dlang/dmd-2.087.1/linux/lib64/libphobos2.so.0.87

pthread_create.c:463

../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Happens while running lots of unittests at random moments, sometimes it doesn't
crash at all.

--
Feb 26 2020