https://issues.dlang.org/show_bug.cgi?id=13416
--- Comment #5 from Martin Nowak <c...@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 --