From a486536925ab7b9615e371ebfcabac64516b4d86 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 22 Jan 2021 00:12:46 -0500 Subject: Remove libc from leak suppression list Every program starts in __libc_start_main, so this would suppress everything. This doesn't happen in practice because asan by default is unable to unwind the stack. Setting ASAN_OPTIONS=fast_unwind_on_malloc=0,malloc_context_size=15 can unwind the stack, and if malloc_context_size is large enough it will indeed suppress everything. --- lsan.supp | 1 - 1 file changed, 1 deletion(-) diff --git a/lsan.supp b/lsan.supp index 04bcd658ee..e3912b41e1 100644 --- a/lsan.supp +++ b/lsan.supp @@ -1,6 +1,5 @@ leak:g_quark_init leak:xdg_mime_init -leak:libc.so leak:libfontconfig.so leak:libEGL_mesa.so leak:iris_dri.so -- cgit v1.2.1 From 0d790505aa6cffc1280afd56037a3c3978970ea5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 22 Jan 2021 00:13:13 -0500 Subject: Force malloc of g_slices in asan build Otherwise leaks could be missed. --- .gitlab-ci/run-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh index 6f6a09258f..1fca1f7a4b 100755 --- a/.gitlab-ci/run-tests.sh +++ b/.gitlab-ci/run-tests.sh @@ -9,6 +9,7 @@ backend=$2 # Ignore memory leaks lower in dependencies export LSAN_OPTIONS=suppressions=$srcdir/lsan.supp +export G_SLICE=always-malloc case "${backend}" in x11) -- cgit v1.2.1