c5ed892b1b
Unfortunately just adding suppressions isn't enough; the build of Expat we have in our CI system does not have frame pointers, so ASan's fast unwinder can't see through it. This means that the suppressions we've added won't be taken into account. For now, disable the fast unwinder for the Xwayland test only. Disabling it globally is not practical as it massively increases the per-test runtime, so here (to avoid polluting the build system), we use a per-test wrapper to selectively choose the unwinder. Signed-off-by: Daniel Stone <daniels@collabora.com>
21 lines
553 B
Bash
Executable File
21 lines
553 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# When running Debian's Xwayland and fontconfig, we hit memory leaks which
|
|
# aren't visible on other setups. We do have suppressions for these tests, but
|
|
# regrettably ASan can't see through omitted frame pointers in Expat, so for
|
|
# Xwayland specifically, we disable fast-unwind.
|
|
#
|
|
# Doing it globally makes the other tests far, far, too slow to run.
|
|
case "$1" in
|
|
*xwayland*)
|
|
export ASAN_OPTIONS="detect_leaks=0,fast_unwind_on_malloc=0"
|
|
;;
|
|
*)
|
|
export ASAN_OPTIONS="detect_leaks=0"
|
|
;;
|
|
esac
|
|
|
|
export ASAN_OPTIONS
|
|
|
|
exec "$@"
|