https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64350
--- Comment #2 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- (In reply to Dmitry Vyukov from comment #1) > I've fixed a bunch of bugs in deadlock detector just few hours ago. > > Please re-test with these fixes: > > http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/ > sanitizer_deadlock_detector.h?r1=224518&r2=224517&pathrev=224518 > http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/ > sanitizer_deadlock_detector.h?r1=224519&r2=224518&pathrev=224519 > > I've also added a random stress test, and I think I saw your crash during > testing. It does not happen for me with the fixes. Yes Dimitry, your patch fixed it for me too. Thanks, Bernd.