From a8836f4446fb4780779bf00d14e57bce62b196b6 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 27 Mar 2023 23:14:42 -0700 Subject: [PATCH] ci.yml: use -fno-sanitize-recover when using -fsanitize Unlike ASAN, by default UBSAN doesn't abort the program on error but instead just prints an error message. Use -fno-sanitize-recover to explicitly request the abort-on-error behavior for testing purposes. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e77d7d56..40c8813f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: sudo apt-get update sudo apt-get install -y clang $DEPENDENCIES - run: ./bootstrap - - run: ./configure CC=clang CFLAGS="$DEF_CFLAGS -fsanitize=address" + - run: ./configure CC=clang CFLAGS="$DEF_CFLAGS -fsanitize=address -fno-sanitize-recover=address" - run: make -j8 check V=1 - uses: actions/upload-artifact@v3 if: failure() @@ -94,7 +94,7 @@ jobs: sudo apt-get update sudo apt-get install -y clang $DEPENDENCIES - run: ./bootstrap - - run: ./configure CC=clang CFLAGS="$DEF_CFLAGS -fsanitize=undefined" + - run: ./configure CC=clang CFLAGS="$DEF_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined" - run: make -j8 check V=1 - uses: actions/upload-artifact@v3 if: failure() -- 2.43.0