[Issue 17957] D shared library throws asserts when called from C detached pthread but not terminated with dlclose

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 12 15:20:50 UTC 2017


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

--- Comment #3 from Nicolas F. <ajidala at gmail.com> ---
fwiw, you can get rid of the naughty pthread_join call which would result in
undefined behaviour for detached threads by replacing it with a simple
sleep(3), which will result in the same segfault inside the D runtime,
effectively proving that a completely valid C program can call into completely
valid D code and cause a crash because of the D runtime.

--


More information about the Digitalmars-d-bugs mailing list