From b3f9b3808893b2e80c536489c58207fb274f6137 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 10 Jun 2023 16:47:38 +0200 Subject: [PATCH] Make it convenient to use ASAN --- gtk2_ardour/ardev_common.sh.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtk2_ardour/ardev_common.sh.in b/gtk2_ardour/ardev_common.sh.in index 4fe92e8747..1934b90781 100644 --- a/gtk2_ardour/ardev_common.sh.in +++ b/gtk2_ardour/ardev_common.sh.in @@ -48,5 +48,14 @@ export LD_LIBRARY_PATH=$libs/ptformat:$libs/qm-dsp:$libs/vamp-sdk:$libs/surfaces # DYLD_LIBRARY_PATH is for darwin. export DYLD_FALLBACK_LIBRARY_PATH=$LD_LIBRARY_PATH +# allow Ardour to run when configured with --address-sanitizer +# - halt_on_error=0 - why would we? +# Note, static zita-resampler is used by libardour and libalsa_audiobackend +# causing a [false positive] odr-violation at start. +# - new_delete_type_mismatch=0 - because caps plugins do that +# - leak_check_at_exit=0 - without ARDOUR_RUNNING_UNDER_VALGRIND=TRUE there are many false-positives +# besides, instant.xml leaks somewhat intentionally +export ASAN_OPTIONS=halt_on_error=0:leak_check_at_exit=0:new_delete_type_mismatch=0${ASAN_OPTIONS:+:$ASAN_OPTIONS} + ARDOURVERSION=@VERSION@ EXECUTABLE=@EXECUTABLE@