From 4d58f014241068ed6d0e1e2fde39baf1f7116a1f Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 1 Mar 2023 16:15:33 +0100 Subject: [PATCH] Add LSAN suppression rules config file. This file has been tested on linux, other platforms may need some tweaks, and/or dedicated files. This is used to suppress errors with builds integrating ASAN sanitazing tools, regarding memleaks detected in some third party libraries. To use it, define the envvar option like that: `LSAN_OPTIONS=print_suppressions=false:suppressions=/path/to/blender/source/tools/config/analysis/lsan.supp` This is especially usefull when running ctest. NOTE: Will also update https://wiki.blender.org/wiki/Tools/Tests/Setup and https://wiki.blender.org/wiki/Tools/Debugging/ASAN_Address_Sanitizer accordingly. --- tools/config/analysis/lsan.supp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tools/config/analysis/lsan.supp diff --git a/tools/config/analysis/lsan.supp b/tools/config/analysis/lsan.supp new file mode 100644 index 00000000000..4210272d719 --- /dev/null +++ b/tools/config/analysis/lsan.supp @@ -0,0 +1,16 @@ +leak:_PyObject_Malloc +leak:_PyObject_Realloc +leak:PyThread_allocate_lock +leak:libpython* +leak:imb_exitopenexr +leak:imb_filetypes_exit +leak:libIlm* +leak: +leak:libX11* +leak:libglib* +leak:libnvidia* +leak:i965_dri +leak:libdrm* +leak:radeon* +leak:libGLX* +leak:libasan*