ci: make UBSAN abort on errors

Unfortunately, UBSAN doesn't do this by default. See also the change
I made in Meson for this in October [0].

[0] 7b7d2e060b
This commit is contained in:
Sam James 2024-04-10 12:38:51 +01:00 committed by Lasse Collin
parent 6c095a98fb
commit b5e3470442
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ jobs:
- name: Test with -fsanitize=address,undefined - name: Test with -fsanitize=address,undefined
if: ${{ matrix.os == 'ubuntu-latest' && matrix.build_system == 'autotools' }} if: ${{ matrix.os == 'ubuntu-latest' && matrix.build_system == 'autotools' }}
run: | run: |
export UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1
./build-aux/ci_build.sh -b autotools -p test -f "-fsanitize=address,undefined" -d sandbox ./build-aux/ci_build.sh -b autotools -p test -f "-fsanitize=address,undefined" -d sandbox
cd ../xz_build && make distclean cd ../xz_build && make distclean