[compiler-rt] [rtsan] Only print out unique stack traces (PR #110028)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 13:50:49 PDT 2024


================
@@ -49,7 +50,21 @@ static auto OnViolationAction(DiagnosticsInfo info) {
   return [info]() {
     IncrementTotalErrorCount();
 
-    PrintDiagnostics(info);
+    BufferedStackTrace stack;
+    stack.Unwind(info.pc, info.bp, nullptr,
+                 /*request_fast*/ true);
----------------
fmayer wrote:

e.g. hwasan also has a non-fatal mode, but still respects the `on_fatal` flag. so maybe it's fine to just use that.

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


More information about the llvm-commits mailing list