[compiler-rt] [rtsan] Add support for ReportErrorSummary (PR #116424)

Chris Apple via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 11:23:52 PST 2024


================
@@ -62,8 +62,12 @@ static void OnViolation(const BufferedStackTrace &stack,
   if (UNLIKELY(is_stack_novel)) {
     IncrementUniqueErrorCount();
 
-    PrintDiagnostics(info);
-    stack.Print();
+    {
+      ScopedErrorReportLock l;
----------------
cjappl wrote:

This scope is now bubbled up here to make sure we don't ever separate any of this reporting across threads, we then just assert the lock has been taken in debug mode later in these methods

https://github.com/llvm/llvm-project/pull/116424


More information about the llvm-commits mailing list