Index: compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_mac.cpp =================================================================== --- compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_mac.cpp +++ compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_mac.cpp @@ -154,12 +154,10 @@ ®_count); if (err != KERN_SUCCESS) { VReport(1, "Error - unable to get registers for a thread\n"); - // KERN_INVALID_ARGUMENT indicates that either the flavor is invalid, - // or the thread does not exist. The other possible error case, // MIG_ARRAY_TOO_LARGE, means that the state is too large, but it's // still safe to proceed. - return err == KERN_INVALID_ARGUMENT ? REGISTERS_UNAVAILABLE_FATAL - : REGISTERS_UNAVAILABLE; + return err == MIG_ARRAY_TOO_LARGE ? REGISTERS_UNAVAILABLE + : REGISTERS_UNAVAILABLE_FATAL; } buffer->resize(RoundUpTo(sizeof(regs), sizeof(uptr)) / sizeof(uptr));