Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] MemorySanitizer and UndefinedSanitizer builds #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package/ci/memorysanitizer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Configuration file for MemorySanitizer running on Travis CI

fun:Corrade::Utility::Directory::fileExists
2 changes: 1 addition & 1 deletion package/ci/travis-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cmake .. \
-DBUILD_TESTS=ON \
-DCMAKE_BUILD_TYPE=Debug
make -j install
ASAN_OPTIONS="color=always" LSAN_OPTIONS="color=always" CORRADE_TEST_COLOR=ON ctest -V
ASAN_OPTIONS="color=always" LSAN_OPTIONS="color=always" UBSAN_OPTIONS="color=always" MSAN_OPTIONS="color=always" CORRADE_TEST_COLOR=ON ctest -V
cd ..

# Examples
Expand Down
17 changes: 16 additions & 1 deletion package/ci/travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ matrix:
compiler: clang
env:
- TARGET=desktop-sanitizers
- CMAKE_CXX_FLAGS="-fsanitize=address"
- CMAKE_CXX_FLAGS="-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
addons:
apt:
sources:
Expand All @@ -30,6 +30,21 @@ matrix:
packages:
- clang-3.8
- cmake
- language: cpp
os: linux
compiler: clang
env:
- TARGET=desktop-sanitizers
# It's either ASan or MSan, can't have both at the same time
- CMAKE_CXX_FLAGS="-fsanitize=memory -fsanitize-memory-track-origins -stdlib=libc++"
addons:
apt:
sources:
- debian-sid
packages:
- libc++-dev
- clang-3.8
- cmake
- language: cpp
os: osx
compiler: clang
Expand Down