]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
ci: make UBSAN abort on errors
authorSam James <sam@gentoo.org>
Wed, 10 Apr 2024 11:38:51 +0000 (12:38 +0100)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 10 Apr 2024 21:15:35 +0000 (00:15 +0300)
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

.github/workflows/ci.yml

index 9aa4f9aa706896d210fe2f48935826d0d4b86548..ded9b68dc1cef463e05ce6d811342522cedb365b 100644 (file)
@@ -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