[all-commits] [llvm/llvm-project] 96c1fd: [tsan] Change personality CHECK to Printf() + Die(...

Thurston Dang via All-commits all-commits at lists.llvm.org
Wed Jun 4 13:24:13 PDT 2025


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

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp

  Log Message:
  -----------
  [tsan] Change personality CHECK to Printf() + Die() (#142821)

Currently, if TSan needs to disable ASLR but is unable to do so, it
aborts with a cryptic message:
```
    ThreadSanitizer: CHECK failed: tsan_platform_linux.cpp:290 "((personality(old_personality | ADDR_NO_RANDOMIZE))) != ((-1))"
```
and a segfault
(https://github.com/google/sanitizers/issues/837#issuecomment-2939267531).

This patch replaces the CHECK with more user-friendly diagnostics and
suggestions via printf, followed by Die().



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