Index: lib/sanitizer_common/sanitizer_deadlock_detector1.cc =================================================================== --- lib/sanitizer_common/sanitizer_deadlock_detector1.cc +++ lib/sanitizer_common/sanitizer_deadlock_detector1.cc @@ -121,7 +121,10 @@ DDLogicalThread *lt = cb->lt; uptr path[10]; uptr len = dd.findPathToLock(<->dd, m->id, path, ARRAY_SIZE(path)); - CHECK_GT(len, 0U); // Hm.. cycle of 10 locks? I'd like to see that. + if (len == 0U) { + // Hm.. cycle of 10 locks? I'd like to see that. + return; + } CHECK_EQ(m->id, path[0]); lt->report_pending = true; DDReport *rep = <->rep;