print stack trace for UBSAN errors / enabled detect_stack_use_after_return for ASAN (#2252)

This commit is contained in:
Oliver Stöneberg 2019-10-16 13:46:23 +02:00 committed by Daniel Marjamäki
parent 42470d91bb
commit 3db828b46e
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@ env:
# unfortunately we need this to stay within 50min timelimit given by travis.
- CXXFLAGS="${ORIGINAL_CXXFLAGS} -O2 -march=native -Wstrict-aliasing=2 -Werror=strict-aliasing"
- CPPCHECK=${TRAVIS_BUILD_DIR}/cppcheck
- ASAN_OPTIONS=detect_stack_use_after_return=1
- UBSAN_OPTIONS=print_stacktrace=1
matrix:
- CXXFLAGS="${CXXFLAGS} -DCHECK_INTERNAL"
- CXXFLAGS="${CXXFLAGS} -DCHECK_INTERNAL" MAKEFLAGS="HAVE_RULES=yes" MATCHCOMPILER=yes VERIFY=1