There might be a deadlock. Can you compile with `--debugger:native` and attach gdb/lldb and do a backtrace if your programs hangs?
Also you can maybe compile with `-d:useMalloc` and use helGrind to try to find threading errors: [http://valgrind.org/docs/manual/hg-manual.html](http://valgrind.org/docs/manual/hg-manual.html)