[Issue 13416] dead-lock in FreeBSD suspend handler
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Dec 6 16:26:57 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13416
--- Comment #5 from Martin Nowak <code at dawg.eu> ---
Fairly simple to reproduce the problem.
cat > bug.d << CODE
import core.thread, core.sys.posix.pthread, core.stdc.stdio;
void loop()
{
pthread_attr_t attr;
pthread_attr_init(&attr);
auto thr = pthread_self();
while (true)
pthread_attr_get_np(thr, &attr);
}
void main()
{
auto thr = new Thread(&loop).start();
while (true)
{
thread_suspendAll();
thread_resumeAll();
printf(".");
}
}
CODE
dmd -run bug
--
More information about the Digitalmars-d-bugs
mailing list