[compiler-rt] [rtsan] Only print out unique stack traces (PR #110028)
Chris Apple via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 13:10:46 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);
----------------
cjappl wrote:
Currently rtsan is incompatible with all other sanitizers. We will have to keep this in mind for any future interop between us and another runtime.
This inserts into the "global/static stack depot" but some of the sanitizers that place nice with one another have their own (scudo_stackdepot.h, msan_chained_origin/dfsan_chained_origin)
https://github.com/llvm/llvm-project/pull/110028
More information about the llvm-commits
mailing list