From 867cde17e79c134fe35c423b5755c467c4b71719 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Mon, 18 Mar 2024 16:39:03 -0500 Subject: [PATCH] Fix TSAN (#423) See https://github.com/google/sanitizers/issues/1716 --- .github/workflows/build-test-cplusplus.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-test-cplusplus.yml b/.github/workflows/build-test-cplusplus.yml index 0a85683ef..2b324e4ff 100644 --- a/.github/workflows/build-test-cplusplus.yml +++ b/.github/workflows/build-test-cplusplus.yml @@ -76,6 +76,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + # See: https://github.com/google/sanitizers/issues/1716 + # Fixes `FATAL: ThreadSanitizer: unexpected memory mapping 0x70498d8ae000-0x70498dd00000` type errors + - name: Adjust mmap_rnd_bits on ubuntu + run: | + sudo sysctl vm.mmap_rnd_bits=28 + - name: cmake, RunTests with thread sanitizer on Ubuntu run: | mkdir build-tsan