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).
- CSA_CHECK=true
CPPCHECK=true
- SANITIZE=address
+ - SANITIZE=memory,undefined
matrix:
exclude:
env: SANITIZE=address
- os: osx
env: SANITIZE=address
+ - compiler: gcc
+ env: SANITIZE=memory,undefined
+ - os: osx
+ env: SANITIZE=memory,undefined
sudo: required
- 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