[compiler-rt] [TSan][compiler-rt] Defer symbolization of Reports to as late as possible (PR #151120)

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 30 01:04:25 PDT 2025


================
@@ -96,6 +96,7 @@ void ThreadFinalize(ThreadState *thr) {
     ScopedReport rep(ReportTypeThreadLeak);
     rep.AddThread(leaks[i].tctx, true);
     rep.SetCount(leaks[i].count);
+    rep.SymbolizeStackElems();
----------------
dvyukov wrote:

Is there a single case where SymbolizeStackElems shouldn't be called right before before OutputReport, and where calling it would be a bug?
If not, it better be a part of OutputReport to remove duplication and prevent future (or current) bugs.

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


More information about the llvm-commits mailing list