1
0
Fork 0

Disable unnecessary sanitizers

Clang memory sanitizer needs all linked libraries (including STL) to be
compiled with msan option, otherwise analysis results are practically
unusable.

GCC undefined behaviour sanitizer analysis is already covered by build
running UASAN (undefined behaviour and address sanitizers).
This commit is contained in:
Patryk Obara 2020-03-11 10:05:37 +01:00 committed by Patryk Obara
parent 761f1d977a
commit 4e1dcfafb1

View file

@ -141,15 +141,13 @@ jobs:
matrix:
conf:
- name: Clang
sanitizers: USAN MSAN
sanitizers: USAN
usan: 93
msan: -1 # unstable; does not work with pre-compiled STL
tsan: -1
uasan: -1
- name: GCC
sanitizers: USAN TSAN UASAN
usan: 44
msan: -1
sanitizers: TSAN UASAN
usan: -1
tsan: 0 # our test does not trigger multiple threads yet
uasan: 177
steps:
@ -184,7 +182,6 @@ jobs:
env:
USAN_LOG: ${{ matrix.conf.name }}-logs/${{ matrix.conf.name }}-USAN-EnterExit.log.xz
TSAN_LOG: ${{ matrix.conf.name }}-logs/${{ matrix.conf.name }}-TSAN-EnterExit.log.xz
MSAN_LOG: ${{ matrix.conf.name }}-logs/${{ matrix.conf.name }}-MSAN-EnterExit.log.xz
UASAN_LOG: ${{ matrix.conf.name }}-logs/${{ matrix.conf.name }}-UASAN-EnterExit.log.xz
run: |
# summary
@ -205,12 +202,6 @@ jobs:
xzcat "$TSAN_LOG" | MAX_ISSUES=${{ matrix.conf.tsan }} ./scripts/count-xsan-issues.py -
fi
if [[ -f "$MSAN_LOG" ]] ; then
echo_bold "Memory sanitizer:"
echo
xzcat "$MSAN_LOG" | MAX_ISSUES=${{ matrix.conf.msan }} ./scripts/count-xsan-issues.py -
fi
if [[ -f "$UASAN_LOG" ]] ; then
echo_bold "Undefined Behaviour + Address sanitizers:"
echo