dvyukov added a comment. > I wrote that loop to run the tests longer while the signal triggers, and I have found... a deadlock :( Good we caught it now. Replace exceptions with setjmp/longjmp. Calling longjmp from a signal handler should work http://reviews.llvm.org/D20913