Add a suppression file for the libpython leaks.

This is a big hammer but it seems like the best we can do for now.
Allows "make check" to succeed when address sanitizer is used.
This commit is contained in:
Todd C. Miller
2021-04-26 08:58:00 -06:00
parent 6907376ae9
commit 8a65893435
3 changed files with 4 additions and 1 deletions

View File

@@ -394,6 +394,7 @@ plugins/python/example_debugging.py
plugins/python/example_group_plugin.py plugins/python/example_group_plugin.py
plugins/python/example_io_plugin.py plugins/python/example_io_plugin.py
plugins/python/example_policy_plugin.py plugins/python/example_policy_plugin.py
plugins/python/lsan_suppr.txt
plugins/python/pyhelpers.c plugins/python/pyhelpers.c
plugins/python/pyhelpers.h plugins/python/pyhelpers.h
plugins/python/pyhelpers_cpychecker.h plugins/python/pyhelpers_cpychecker.h

View File

@@ -234,6 +234,7 @@ check: $(TEST_PROGS) check-fuzzer
unset LANG || LANG=; \ unset LANG || LANG=; \
MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \ MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \ MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
LSAN_OPTIONS=suppressions=$(srcdir)/lsan_suppr.txt \
./check_python_examples ".libs/python_plugin.so"; \ ./check_python_examples ".libs/python_plugin.so"; \
fi fi

View File

@@ -0,0 +1 @@
leak:libpython