]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
suppress leaks on OSX
authorAlan T. DeKok <aland@freeradius.org>
Wed, 31 Mar 2021 15:39:41 +0000 (11:39 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 2 Apr 2021 09:47:21 +0000 (05:47 -0400)
scripts/build/lsan_leaks_osx [new file with mode: 0644]

diff --git a/scripts/build/lsan_leaks_osx b/scripts/build/lsan_leaks_osx
new file mode 100644 (file)
index 0000000..c1fff0a
--- /dev/null
@@ -0,0 +1,14 @@
+#  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