[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 12:43:25 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);
+
+ StackDepotHandle handle = StackDepotPut_WithHandle(stack);
----------------
fmayer wrote:
Theoretically, if we run another sanitizer and RTSan at the same time (can you do that?) this will be wrong. Do we need a separate instance of StackDepot for this? Or do we need to keep count separately?
https://github.com/llvm/llvm-project/pull/110028
More information about the llvm-commits
mailing list