diff options
| author | Graham Krizek <[email protected]> | 2018-12-28 08:28:00 -0600 |
|---|---|---|
| committer | Graham Krizek <[email protected]> | 2018-12-28 08:28:00 -0600 |
| commit | aa9aca85f1efff69d1d1dbd834ee457960a3fb24 (patch) | |
| tree | 82f8ce2bf72e97062cc7b23e9aba353dbed969c3 | |
| parent | Update Travis base OS to Xenial (diff) | |
| download | discoin-aa9aca85f1efff69d1d1dbd834ee457960a3fb24.tar.xz discoin-aa9aca85f1efff69d1d1dbd834ee457960a3fb24.zip | |
If tests are ran with (ASan + LSan), Docker needs access to ptrace
See https://github.com/google/sanitizers/issues/764 for details
| -rwxr-xr-x | .travis/test_04_install.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.travis/test_04_install.sh b/.travis/test_04_install.sh index 3f7415811..a111387f1 100755 --- a/.travis/test_04_install.sh +++ b/.travis/test_04_install.sh @@ -15,6 +15,8 @@ export UBSAN_OPTIONS="suppressions=${TRAVIS_BUILD_DIR}/test/sanitizer_suppressio env | grep -E '^(BITCOIN_CONFIG|CCACHE_|WINEDEBUG|LC_ALL|BOOST_TEST_RANDOM|CONFIG_SHELL|(ASAN|LSAN|TSAN|UBSAN)_OPTIONS)' | tee /tmp/env if [[ $HOST = *-mingw32 ]]; then DOCKER_ADMIN="--cap-add SYS_ADMIN" +elif [[ $BITCOIN_CONFIG = *--with-sanitizers=*address* ]]; then # If ran with (ASan + LSan), Docker needs access to ptrace (https://github.com/google/sanitizers/issues/764) + DOCKER_ADMIN="--cap-add SYS_PTRACE" fi DOCKER_ID=$(docker run $DOCKER_ADMIN -idt --mount type=bind,src=$TRAVIS_BUILD_DIR,dst=$TRAVIS_BUILD_DIR --mount type=bind,src=$CCACHE_DIR,dst=$CCACHE_DIR -w $TRAVIS_BUILD_DIR --env-file /tmp/env $DOCKER_NAME_TAG) |