[all-commits] [llvm/llvm-project] acb658: [TSan] Defer symbolization in AddStack and AddSlee...
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Sat Oct 3 18:02:45 PDT 2026
Branch: refs/heads/users/vitalybuka/spr/tsan-defer-symbolization-in-addstack-and-addsleep-to-symbolizestackelems
Home: https://github.com/llvm/llvm-project
Commit: acb65827e0f484316e2e7840c44727a96c88e2a0
https://github.com/llvm/llvm-project/commit/acb65827e0f484316e2e7840c44727a96c88e2a0
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2026-10-03 (Sat, 03 Oct 2026)
Changed paths:
M compiler-rt/lib/tsan/rtl/tsan_report.h
M compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp
Log Message:
-----------
[TSan] Defer symbolization in AddStack and AddSleep to SymbolizeStackElems
PR #151495 delayed symbolization for memory accesses, locations,
threads, and mutexes until OutputReport (after ThreadRegistryLock is
released), but missed ScopedReport::AddStack and ScopedReport::AddSleep.
As a result, ReportRace (via AddSleep) and ReportMutexMisuse,
ReportDeadlock, and ReportDestroyLocked (via AddStack) still invoked the
symbolizer while holding ThreadRegistryLock.
Store the unsymbolized stack traces and sleep stack ID in ReportDesc and
symbolize them in ScopedReport::SymbolizeStackElems().
Assisted-by: Gemini
Pull Request: https://github.com/llvm/llvm-project/pull/228795
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list