From daaa48108a0156473b4f8d63265df2004977ba93 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 2 Jul 2018 13:39:39 +0200 Subject: [PATCH] Always include frame pointers with address sanitizer This is needed to get proper stack traces with the sanitizer. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6ac9432..eb18403 100644 --- a/configure.ac +++ b/configure.ac @@ -56,7 +56,7 @@ AC_ARG_ENABLE([address-sanitizer], AS_HELP_STRING([--enable-address-sanitizer], [enable AddressSanitizer support for detecting a wide variety of \ memory allocation and deallocation errors]), \ [AC_DEFINE(HAVE_ADDRESS_SANITIZER, 1, [enable AddressSanitizer]) - CFLAGS="$CFLAGS -fsanitize=address" + CFLAGS="$CFLAGS -fsanitize=address -fno-omit-frame-pointer" AC_TRY_COMPILE([],[const int i=0;],[AC_MSG_NOTICE([Address Sanitizer Enabled])], [AC_MSG_ERROR([Address Sanitizer not available])]) ])