From eb4d7cb69aa3a17aef1095e79f5bf54a503f7ae8 Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Tue, 19 Feb 2019 10:11:37 +0000 Subject: [PATCH] Enable address and UB sanitizers This enables address sanitizer and undefined behaviour sanitizer, but disables leak detection sanitizer. It seema there is an issue in qemu that we are using, which prevents spawning leaksanitizer's tracer thread. But as leak detection is already done by valgrind on x86 build, this functionality is not absolute need at the moment. --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d6d78217..e39ae0ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,21 +57,21 @@ matrix: os: linux services: docker env: - - MAKETARGET="run-functest-all" + - MAKETARGET="run-functest-all run-sanitizer-all" script: - docker run --rm --privileged multiarch/qemu-user-static:register --reset - docker run --rm -v `pwd`:`pwd` -w `pwd` "pqclean/debian-buster-arm" /bin/bash -c "uname -a && - make ${MAKETARGET} && + ASAN_OPTIONS=detect_leaks=0 make ${MAKETARGET} && cd test && python3 -m nose --rednose --verbose" - name: "Run tests on qemu-aarch64 (GCC)" os: linux services: docker env: - - MAKETARGET="run-functest-all" + - MAKETARGET="run-functest-all run-sanitizer-all" script: - docker run --rm --privileged multiarch/qemu-user-static:register --reset - docker run --rm -v `pwd`:`pwd` -w `pwd` "pqclean/debian-buster-aarch64" /bin/bash -c "uname -a && - make ${MAKETARGET} && + ASAN_OPTIONS=detect_leaks=0 make ${MAKETARGET} && cd test && python3 -m nose --rednose --verbose" - name: "MacOS + Clang" os: osx