[all-commits] [llvm/llvm-project] be9584: [TSan][Darwin][Test-only] Fix crash in write-inter...

Dan Blackwell via All-commits all-commits at lists.llvm.org
Thu Sep 10 13:08:02 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be9584e0dfc480193fa47645b302f630f41fb772
      https://github.com/llvm/llvm-project/commit/be9584e0dfc480193fa47645b302f630f41fb772
  Author: Dan Blackwell <dan_blackwell at apple.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M compiler-rt/test/tsan/Darwin/write-interpose.c

  Log Message:
  -----------
  [TSan][Darwin][Test-only] Fix crash in write-interpose.c test (#222656)

Due to this test running with verbosity turned up, an early 'Report'
happened to get caught by the test's write interceptor, and on newer
macOS versions the interceptor's call to printf was attempting to
allocate before the allocator was initialized - leading to a crash.

This patch instead uses snprintf to a stack allocated buffer in order to
avoid allocating in the interceptor.

rdar://184804426



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