mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-24 21:33:51 +03:00
gitlab-ci: Fix llvm-symbolizer
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. Add a wrapper script that invokes llvm-symbolizer with an empty LD_LIBRARY_PATH.
This commit is contained in:
parent
128c0261c6
commit
d767c6bea1
@ -41,6 +41,7 @@ clang:asan:
|
||||
# LeakSanitizer requires SYS_CAP_PTRACE
|
||||
ASAN_OPTIONS: "detect_leaks=0"
|
||||
UBSAN_OPTIONS: "print_stacktrace=1"
|
||||
ASAN_SYMBOLIZER_PATH: "$CI_PROJECT_DIR/.gitlab-ci/llvm-symbolizer"
|
||||
|
||||
# Disabled, MSan seems broken on Ubntu 22.04
|
||||
.clang:msan:
|
||||
|
9
.gitlab-ci/llvm-symbolizer
Executable file
9
.gitlab-ci/llvm-symbolizer
Executable file
@ -0,0 +1,9 @@
|
||||
#!/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 "$@"
|
Loading…
Reference in New Issue
Block a user