]> git.ipfire.org Git - pakfire.git/commitdiff
asan: Use libunwind for better stack traces
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 16:48:08 +0000 (16:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 16:48:08 +0000 (16:48 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am

index 2de4c1bd20d38ab82906f2dc6bf9d8626028e68c..1a82140a56065a94a7885902d1fd8f9cd8c557ac 100644 (file)
@@ -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)