From cc21af171599ffe0419fc32a30edd3ef7d479865 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 10 Apr 2024 12:38:51 +0100 Subject: [PATCH] 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 (cherry picked from commit b5e3470442531717b2457b40ab412740296af1bc) --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) 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