[compiler-rt] [LSAN] Add extra suppressions on Apple Aarch64 (PR #117478)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 24 03:44:19 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Mads Marquart (madsmtm)
<details>
<summary>Changes</summary>
- _fetchInitializingClassList for startup code in dyld.
- dyld4::RuntimeState::_instantiateTLVs for thread locals.
Fixes https://github.com/llvm/llvm-project/issues/115992.
---
Full diff: https://github.com/llvm/llvm-project/pull/117478.diff
1 Files Affected:
- (modified) compiler-rt/lib/lsan/lsan_common.cpp (+7)
``````````diff
diff --git a/compiler-rt/lib/lsan/lsan_common.cpp b/compiler-rt/lib/lsan/lsan_common.cpp
index 7ab9e4ff2ac9fd..56b943fa05b459 100644
--- a/compiler-rt/lib/lsan/lsan_common.cpp
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -120,7 +120,14 @@ static const char kStdSuppressions[] =
# endif // SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT
# if SANITIZER_APPLE
// For Darwin and os_log/os_trace: https://reviews.llvm.org/D35173
+# if SANITIZER_ARM64
+ // Apple Aarch64 leaks on startup in _fetchInitializingClassList and when
+ // using thread locals in dyld4::RuntimeState::_instantiateTLVs.
+ // See https://github.com/llvm/llvm-project/issues/115992.
+ "leak:*_os_trace*\nleak:*_fetchInitializingClassList*\nleak:*dyld4::RuntimeState::_instantiateTLVs*\n"
+# else
"leak:*_os_trace*\n"
+# endif
# endif
// TLS leak in some glibc versions, described in
// https://sourceware.org/bugzilla/show_bug.cgi?id=12650.
``````````
</details>
https://github.com/llvm/llvm-project/pull/117478
More information about the llvm-commits
mailing list