diff options
author | Sam James <sam@gentoo.org> | 2024-04-10 12:38:51 +0100 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2024-04-11 00:15:35 +0300 |
commit | b5e3470442531717b2457b40ab412740296af1bc (patch) | |
tree | 2b8cd34bd867da4bdbe75d4cd611e727fbe4f099 | |
parent | ci: test Valgrind (diff) | |
download | xz-b5e3470442531717b2457b40ab412740296af1bc.tar.xz |
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] https://github.com/mesonbuild/meson/commit/7b7d2e060b447de9c2642848847370a58711ac1c
-rw-r--r-- | .github/workflows/ci.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9aa4f9aa..ded9b68d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,7 @@ jobs: - name: Test with -fsanitize=address,undefined if: ${{ matrix.os == 'ubuntu-latest' && matrix.build_system == 'autotools' }} 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 cd ../xz_build && make distclean |