From c83feff49786af21e2a47052af077227c963c9da Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Fri, 22 Mar 2024 16:02:37 -0700 Subject: [PATCH] Add ThreadSanitizer --- .github/workflows/ci-unix-static-sanitized.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-unix-static-sanitized.yml b/.github/workflows/ci-unix-static-sanitized.yml index fdf15e8302..6894e06c68 100644 --- a/.github/workflows/ci-unix-static-sanitized.yml +++ b/.github/workflows/ci-unix-static-sanitized.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - sanitizer: [ address, undefined ] # TODO(yguyon): Add memory, thread + sanitizer: [ address, thread, undefined ] # TODO(yguyon): Add memory env: CC: clang @@ -92,3 +92,4 @@ jobs: run: ctest -j $(getconf _NPROCESSORS_ONLN) --output-on-failure env: ASAN_OPTIONS: allocator_may_return_null=1 + TSAN_OPTIONS: allocator_may_return_null=1