[compiler-rt] [tsan] Don't symbolize stack traces if dl_iterate_phdr is not ready (PR #143199)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 6 13:41:30 PDT 2025


================
@@ -846,7 +846,16 @@ ALWAYS_INLINE USED void PrintCurrentStack(uptr pc, bool fast) {
     ptrace->trace_buffer[i] = ptrace->trace_buffer[ptrace->size - i - 1];
     ptrace->trace_buffer[ptrace->size - i - 1] = tmp;
   }
-  PrintStack(SymbolizeStack(*ptrace));
+
+  if (ready_to_symbolize) {
----------------
fmayer wrote:

Do we need atomics here? Is this on the same thread as the init?

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


More information about the llvm-commits mailing list