Commit d2e7ccb1 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Enable LSAN and use-after-scope checks

The former is work in progress.
parent cda8aa39
......@@ -37,7 +37,8 @@ before_install:
sudo apt-get install -y clang-4.0 llvm-4.0;
export CC=clang-4.0;
export CONFIGURE_ARGS="--enable-developer-warnings --enable-debugging-symbols --enable-asan --enable-ubsan";
export ASAN_OPTIONS=detect_odr_violation=1,detect_leaks=0,detect_stack_use_after_return=1,detect_invalid_pointer_pairs=1,abort_on_error=1;
export ASAN_OPTIONS=abort_on_error=1,detect_odr_violation=1,detect_leaks=1,detect_stack_use_after_return=1,detect_invalid_pointer_pairs=1;
export LSAN_OPTIONS=suppressions=$(pwd)/tools/lsan.suppr;
export UBSAN_OPTIONS=halt_on_error=1,print_stacktrace=1,suppressions=$(pwd)/tools/ubsan.suppr;
fi
- ./autogen.sh
......
......@@ -249,7 +249,9 @@ ASAN_CFLAGS=
ASAN_LDFLAGS=
AC_ARG_ENABLE(asan,
AS_HELP_STRING([--enable-asan],[enable address sanitizer (default is NO)]),
ASAN_FLAGS="-fsanitize=address")
ASAN_FLAGS="-fsanitize=address"
AX_CHECK_COMPILE_FLAG([-fsanitize=address -fsanitize-address-use-after-scope],
[ASAN_FLAGS="${ASAN_FLAGS} -fsanitize-address-use-after-scope"]))
MSAN_CFLAGS=
MSAN_LDFLAGS=
......
leak:varnishtest
leak:MCF_ParamConf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment