[all-commits] [llvm/llvm-project] d8f326: [TSan] Defer symbolization in AddStack and AddSlee...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Sat Oct 3 19:07:34 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: d8f326867cfd8cddbd803a3d1ac211157f467baf
      https://github.com/llvm/llvm-project/commit/d8f326867cfd8cddbd803a3d1ac211157f467baf
  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