From: Michael Tremer Date: Sat, 22 Feb 2025 16:48:08 +0000 (+0000) Subject: asan: Use libunwind for better stack traces X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7695dd402b99b04cb8b0ade76879b6edff3180a2;p=pakfire.git asan: Use libunwind for better stack traces Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 2de4c1bd..1a82140a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1250,6 +1250,10 @@ TESTS_ENVIRONMENT = \ PAKFIRE_LOG=debug \ topdir="$(shell pwd)" +# Tune the address sanitizer to use libunwind for better stack traces +TESTS_ENVIRONMENT += \ + ASAN_OPTIONS=detect_leaks=1:fast_unwind_on_malloc=0 + # Test the library we just built TESTS_ENVIRONMENT += \ LD_LIBRARY_PATH=$(top_srcdir)/.libs:$(LD_LIBRARY_PATH)