From 4ddc674846a4d383322030ef69725f8510efc1c6 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Thu, 15 Apr 2021 10:35:00 +0200 Subject: [PATCH] CI: fixed sanitizers errors not been reported --- .github/workflows/ci.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d1a3062..487b2bdd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,11 +32,11 @@ jobs: - gcc: "5" - gcc: "6" - gcc: "7" - cxxflags: -fsanitize=leak + cxxflags: -fsanitize=leak -fno-sanitize-recover=all - gcc: "8" - cxxflags: -fsanitize=undefined + cxxflags: -fsanitize=undefined -fno-sanitize-recover=all - gcc: "9" - cxxflags: -fsanitize=address + cxxflags: -fsanitize=address -fno-sanitize-recover=all - gcc: "10" steps: - name: Install @@ -61,6 +61,8 @@ jobs: run: cmake --build . - name: Test run: ctest --output-on-failure -C Debug . + env: + UBSAN_OPTIONS: print_stacktrace=1 clang: name: Clang @@ -80,11 +82,11 @@ jobs: - clang: "6.0" - clang: "7" - clang: "8" - cxxflags: -fsanitize=leak + cxxflags: -fsanitize=leak -fno-sanitize-recover=all - clang: "9" - cxxflags: -fsanitize=undefined + cxxflags: -fsanitize=undefined -fno-sanitize-recover=all - clang: "10" - cxxflags: -fsanitize=address + cxxflags: -fsanitize=address -fno-sanitize-recover=all steps: - name: Install run: | @@ -108,6 +110,8 @@ jobs: run: cmake --build . - name: Test run: ctest --output-on-failure -C Debug . + env: + UBSAN_OPTIONS: print_stacktrace=1 xcode: name: XCode