From 2aba3ad0e177d34bfd435823daedca395767acb5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 31 Jan 2021 14:32:55 +0100 Subject: [PATCH] Ignore leak from atk_bridge_adaptor_init() when using ASAN There doesn't seem to be any way to avoid calling it or freeing (multiple) memory blocks allocated by it. --- build/tools/before_install.sh | 2 +- misc/suppressions/lsan | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build/tools/before_install.sh b/build/tools/before_install.sh index 378d9b00b8..a88f9d2987 100755 --- a/build/tools/before_install.sh +++ b/build/tools/before_install.sh @@ -61,7 +61,7 @@ case $(uname -s) in $SUDO apt-get update # Install the symbols to allow LSAN suppression list to work. - $SUDO apt-get install -y libfontconfig1-dbgsym libglib2.0-0-dbgsym libgtk-3-0-dbgsym + $SUDO apt-get install -y libfontconfig1-dbgsym libglib2.0-0-dbgsym libgtk-3-0-dbgsym libatk-bridge2.0-0-dbgsym fi fi ;; diff --git a/misc/suppressions/lsan b/misc/suppressions/lsan index 694ce9f9b6..8d67265369 100644 --- a/misc/suppressions/lsan +++ b/misc/suppressions/lsan @@ -8,3 +8,7 @@ leak:FcLangSetCreate leak:FcPatternObjectInsertElt leak:FcValueListCreate leak:FcValueSave + +# This leak happens during GTK initialization. Requires debug symbols for +# libatk-bridge2.0. +leak:atk_bridge_adaptor_init