Skip to content

Commit 4a1855f

Browse files
committed
[LSAN] Add extra suppressions on Apple Aarch64
- _fetchInitializingClassList for startup code in dyld. - dyld4::RuntimeState::_instantiateTLVs for thread locals.
1 parent c4d656a commit 4a1855f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

compiler-rt/lib/lsan/lsan_common.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,14 @@ static const char kStdSuppressions[] =
120120
# endif // SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT
121121
# if SANITIZER_APPLE
122122
// For Darwin and os_log/os_trace: https://reviews.llvm.org/D35173
123+
# if SANITIZER_ARM64
124+
// Apple Aarch64 leaks on startup in _fetchInitializingClassList and when
125+
// using thread locals in dyld4::RuntimeState::_instantiateTLVs.
126+
// See https://github.com/llvm/llvm-project/issues/115992.
127+
"leak:*_os_trace*\nleak:*_fetchInitializingClassList*\nleak:*dyld4::RuntimeState::_instantiateTLVs*\n"
128+
# else
123129
"leak:*_os_trace*\n"
130+
# endif
124131
# endif
125132
// TLS leak in some glibc versions, described in
126133
// https://sourceware.org/bugzilla/show_bug.cgi?id=12650.

0 commit comments

Comments
 (0)