[compiler-rt] [LSAN] Add extra suppressions on Apple Aarch64 (PR #117478)

Mads Marquart via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 24 04:57:41 PST 2024


https://github.com/madsmtm updated https://github.com/llvm/llvm-project/pull/117478

>From dee30702e6a58817b65a0b66005d3bf577a10e6f Mon Sep 17 00:00:00 2001
From: Mads Marquart <mads at marquart.dk>
Date: Sun, 24 Nov 2024 12:28:18 +0100
Subject: [PATCH] [LSAN] Add extra suppressions on Apple Aarch64

- _fetchInitializingClassList for startup code in dyld.
- dyld4::RuntimeState::_instantiateTLVs for thread locals.
---
 compiler-rt/lib/lsan/lsan_common.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/compiler-rt/lib/lsan/lsan_common.cpp b/compiler-rt/lib/lsan/lsan_common.cpp
index 7ab9e4ff2ac9fd..086af95a24e85e 100644
--- a/compiler-rt/lib/lsan/lsan_common.cpp
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -121,6 +121,13 @@ static const char kStdSuppressions[] =
 #  if SANITIZER_APPLE
     // For Darwin and os_log/os_trace: https://reviews.llvm.org/D35173
     "leak:*_os_trace*\n"
+#    if SANITIZER_ARM64
+    // Apple Aarch64 leaks in dyld on startup.
+    // See https://github.com/llvm/llvm-project/issues/115992.
+    "leak:*_fetchInitializingClassList*\n"
+    // Apple Aarch64 leaks when using thread locals.
+    "leak:*dyld4::RuntimeState::_instantiateTLVs*\n"
+#    endif
 #  endif
     // TLS leak in some glibc versions, described in
     // https://sourceware.org/bugzilla/show_bug.cgi?id=12650.



More information about the llvm-commits mailing list