[all-commits] [llvm/llvm-project] a178c0: [tsan] Don't symbolize stack traces if dl_iterate_...

Thurston Dang via All-commits all-commits at lists.llvm.org
Mon Jun 9 09:29:37 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a178c06add77bb489005a0de22a3ca0ca2f1c14e
      https://github.com/llvm/llvm-project/commit/a178c06add77bb489005a0de22a3ca0ca2f1c14e
  Author: Thurston Dang <thurston at google.com>
  Date:   2025-06-09 (Mon, 09 Jun 2025)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
    M compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
    M compiler-rt/lib/tsan/rtl/tsan_rtl.h
    M compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp

  Log Message:
  -----------
  [tsan] Don't symbolize stack traces if dl_iterate_phdr is not ready (#143199)

When a CHECK() fails during TSan initialization, it may segfault (e.g., https://github.com/google/sanitizers/issues/837#issuecomment-2939267531). This is because a failed CHECK() will attempt to print a symbolized stack trace, which requires dl_iterate_phdr, but the interceptor may not yet be set up.

This patch fixes the issue by not symbolizing the stack trace if the dl_iterate_phdr interceptor is not ready.



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