Skip to content
Snippets Groups Projects
Commit 9001c7f5542b authored by Nick Wellnhofer's avatar Nick Wellnhofer
Browse files

gitlab-ci: Reenable MSan and LeakSanitizer

parent 075286e51f9a
No related merge requests found
...@@ -24,7 +24,9 @@ ...@@ -24,7 +24,9 @@
clang:asan: clang:asan:
extends: .test extends: .test
tags:
- asan
variables: variables:
CONFIG: "--without-python" CONFIG: "--without-python"
CC: clang CC: clang
CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined,unsigned-integer-overflow,implicit-conversion -fno-sanitize-recover=all -Wno-error=cast-align" CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined,unsigned-integer-overflow,implicit-conversion -fno-sanitize-recover=all -Wno-error=cast-align"
...@@ -27,7 +29,5 @@ ...@@ -27,7 +29,5 @@
variables: variables:
CONFIG: "--without-python" CONFIG: "--without-python"
CC: clang CC: clang
CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined,unsigned-integer-overflow,implicit-conversion -fno-sanitize-recover=all -Wno-error=cast-align" CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined,unsigned-integer-overflow,implicit-conversion -fno-sanitize-recover=all -Wno-error=cast-align"
# LeakSanitizer requires SYS_CAP_PTRACE
ASAN_OPTIONS: "detect_leaks=0"
UBSAN_OPTIONS: "print_stacktrace=1" UBSAN_OPTIONS: "print_stacktrace=1"
...@@ -33,2 +33,3 @@ ...@@ -33,2 +33,3 @@
UBSAN_OPTIONS: "print_stacktrace=1" UBSAN_OPTIONS: "print_stacktrace=1"
ASAN_SYMBOLIZER_PATH: "$CI_PROJECT_DIR/.gitlab-ci/llvm-symbolizer"
...@@ -34,4 +35,3 @@ ...@@ -34,4 +35,3 @@
# Disabled, MSan seems broken on Ubntu 22.04 clang:msan:
.clang:msan:
extends: .test extends: .test
...@@ -37,6 +37,4 @@ ...@@ -37,6 +37,4 @@
extends: .test extends: .test
only:
- schedules
variables: variables:
CONFIG: "--without-python --without-zlib --without-lzma --without-crypto" CONFIG: "--without-python --without-zlib --without-lzma --without-crypto"
CC: clang CC: clang
...@@ -40,7 +38,8 @@ ...@@ -40,7 +38,8 @@
variables: variables:
CONFIG: "--without-python --without-zlib --without-lzma --without-crypto" CONFIG: "--without-python --without-zlib --without-lzma --without-crypto"
CC: clang CC: clang
CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=memory -Wimplicit-int-conversion -Wno-error=cast-align" CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=memory -Wno-error=cast-align"
MSAN_SYMBOLIZER_PATH: "$CI_PROJECT_DIR/.gitlab-ci/llvm-symbolizer"
.mingw: .mingw:
tags: tags:
......
#!/bin/sh
# Newer versions of llvm-symbolizer require libxml2 themselves. Running
# a test program with LD_LIBRARY_PATH set to .libs makes llvm-symbolizer
# pick up the tested development version of libxml2 which breaks
# completely if the build is instrumented with ASan. This wrapper script
# invokes llvm-symbolizer with an empty LD_LIBRARY_PATH.
LD_LIBRARY_PATH='' llvm-symbolizer "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment