From 8277cbfb37f09b6c70f66492d58a9e99156c8376 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 17 Feb 2017 11:51:30 +0300 Subject: [PATCH] Travis CI: Also test with Memory and Unexpected Behavior sanitizers Note: Currently an error found by MSan/UBSan does not cause Travis build to fail, the log should be examined manually for the absence of "MemorySanitizer" and "runtime error" character sequences (the error messages are shown in red). --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index b7c4019..7afe566 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ env: - CSA_CHECK=true CPPCHECK=true - SANITIZE=address + - SANITIZE=memory,undefined matrix: exclude: @@ -37,6 +38,10 @@ matrix: env: SANITIZE=address - os: osx env: SANITIZE=address + - compiler: gcc + env: SANITIZE=memory,undefined + - os: osx + env: SANITIZE=memory,undefined sudo: required @@ -57,6 +62,10 @@ before_install: - if [[ "$SANITIZE" != "" ]]; then CFLAGS_EXTRA="$CFLAGS_EXTRA -fsanitize=$SANITIZE -fno-common -fno-omit-frame-pointer"; fi +# TODO: Issues found by MSan and UBSan do not cause the build to fail by now. +# Travis Linux/clang-3.4 does not accept -fno-sanitize-recover=undefined, +# and the sanitizer runtime does not seem to handle MSAN_OPTIONS="exitcode=1" +# and UBSAN_OPTIONS="halt_on_error=1". install: - ./autogen.sh -- 2.50.0