From: Alan T. DeKok Date: Mon, 26 Apr 2021 14:54:24 +0000 (-0400) Subject: move OSX leak suppression to code X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd2511f602f33b3c4d77464985e93dc76056a006;p=thirdparty%2Ffreeradius-server.git move OSX leak suppression to code --- diff --git a/scripts/build/lsan_leaks_osx b/scripts/build/lsan_leaks_osx deleted file mode 100644 index c1fff0ad3e5..00000000000 --- a/scripts/build/lsan_leaks_osx +++ /dev/null @@ -1,14 +0,0 @@ -# OSX has all kinds of leaks in its' system files -# -# Note that you MUST include the `pwd`, otherwise LSAN looks in a directory relative -# to the binary, which is most definitely not what we want. -# -#export LSAN_OPTIONS="suppressions=`pwd`/scripts/lsan_leaks_osx fast_unwind_on_malloc=0 print_suppressions=0" -#export CC="/usr/local/opt/llvm/bin/clang" -#export ASAN_OPTIONS="malloc_context_size=50 detect_leaks=1 symbolize=1" -#export ASAN_SYMBOLIZER_PATH="/usr/local/opt/llvm/bin/llvm-symbolizer" - -leak:libsystem_notify -leak:getpwuid_r -leak:_st_tzset_basic -leak:newlocale diff --git a/src/lib/util/debug.c b/src/lib/util/debug.c index 5feaf740cf0..515fd14f5b6 100644 --- a/src/lib/util/debug.c +++ b/src/lib/util/debug.c @@ -161,12 +161,16 @@ char const CC_HINT(used) *__lsan_default_suppressions(void) "leak:CRYPTO_THREAD_lock_new\n" /* OpenSSL init leak - reported by heaptrack */ #if defined(__APPLE__) "leak:getaddrinfo\n" + "leak:getpwuid_r\n" "leak:*gmtsub*\n" "leak:tzsetwall_basic\n" "leak:ImageLoaderMachO::doImageInit\n" "leak:libSystem_atfork_child\n" "leak:fork\n" "leak:tzset\n" + "leak:_st_tzset_basic\n" + "leak:newlocale\n" + "leak:libsystem_notify\n" /* Perl >= 5.32.0 - Upstream bug, tracked by https://github.com/Perl/perl5/issues/18108 */ "leak:perl_construct" #elif defined(__linux__)