From d0d7f948f06c0de7ba6b09b23ec407a8d9d1f5c0 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sun, 1 May 2022 14:32:25 +0800 Subject: [PATCH] Enable UBSan on GitHub CI --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b569fc88a..18b22fabd9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,13 +4,15 @@ on: branches: [ main ] pull_request: branches: [ main ] +env: + UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1 jobs: build-clang: strategy: matrix: flags: - 'LDFLAGS=-fuse-ld=mold' - - 'CXXFLAGS="-fsanitize=address -g -Og" LDFLAGS="-fuse-ld=mold -fsanitize=address" USE_MIMALLOC=0' + - 'CXXFLAGS="-fsanitize=address -fsanitize=undefined -g -Og" LDFLAGS="-fuse-ld=mold -fsanitize=address -fsanitize=undefined" USE_MIMALLOC=0' - 'CXXFLAGS="-fsanitize=thread -g -Og" LDFLAGS="-fuse-ld=mold -fsanitize=thread" USE_MIMALLOC=0' runs-on: ubuntu-20.04 steps: