digitalmars.D.bugs - [Issue 17413] New: Deadlock if allocation fails during runtime
- via Digitalmars-d-bugs (51/51) May 19 2017 https://issues.dlang.org/show_bug.cgi?id=17413
https://issues.dlang.org/show_bug.cgi?id=17413 Issue ID: 17413 Summary: Deadlock if allocation fails during runtime initialization Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor Priority: P1 Component: druntime Assignee: nobody puremagic.com Reporter: thecybershadow gmail.com $ echo 'void main() {}' > test.d $ dmd test.d $ ( ulimit -v 16384 ; ./test ) (hangs) Attaching with gdb shows the following stack trace: Thread 1 (Thread 0x7fab23098840 (LWP 31767)): /usr/lib/libpthread.so.0 /usr/lib/libpthread.so.0 ulong, uint) () gc.impl.conservative.gc.ConservativeGC.runLocked!(gc.impl.conservative.gc.ConservativeGC.mallocNoSync(ulong, uint, ref ulong, const(TypeInfo)), gc.impl.conservative.gc.mallocTime, gc.impl.conservative.gc.numMallocs, ulong, uint, ulong, const(TypeInfo)).runLocked(ref ulong, ref uint, ref ulong, ref const(TypeInfo)) () uint, const(TypeInfo)) () () _D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFNlMDFZvZv () --
May 19 2017