[all-commits] [llvm/llvm-project] 0a2a31: [rtsan] Make sure rtsan gets initialized on mac (#...

Chris Apple via All-commits all-commits at lists.llvm.org
Sun Aug 11 15:59:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a2a319ea6c8dc59fd3f0e284766361b8deca51c
      https://github.com/llvm/llvm-project/commit/0a2a319ea6c8dc59fd3f0e284766361b8deca51c
  Author: Chris Apple <cja-private at pm.me>
  Date:   2024-08-11 (Sun, 11 Aug 2024)

  Changed paths:
    M compiler-rt/lib/rtsan/rtsan.cpp
    M compiler-rt/lib/rtsan/rtsan.h
    M compiler-rt/lib/rtsan/rtsan_interceptors.cpp

  Log Message:
  -----------
  [rtsan] Make sure rtsan gets initialized on mac (#100188)

Intermittently on my mac I was getting the same nullptr crash in dlsym.

We need to make sure rtsan gets initialized on mac between when the
binary starts running, and the first intercepted function is called.
Until that point we should use the DlsymAllocator.



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