From 7695dd402b99b04cb8b0ade76879b6edff3180a2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 22 Feb 2025 16:48:08 +0000 Subject: [PATCH] asan: Use libunwind for better stack traces Signed-off-by: Michael Tremer --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.5