From a9a9a1243734feeced8c7e9a944f1e7ccc843f44 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sun, 17 Mar 2024 13:56:25 +0000 Subject: [PATCH] Fixed configure error for GHA:sanitize_thread --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e6feb8..463d0db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -263,6 +263,10 @@ jobs: echo 'CXX=clang++' >> $GITHUB_ENV echo "CXXFLAGS=${COMMON_CXXFLAGS} -O0 -fsanitize=thread" >> $GITHUB_ENV echo 'TSAN_OPTIONS=halt_on_error=1' >> $GITHUB_ENV + # [NOTE] + # Set this to avoid following error when running configure. + # "FATAL: ThreadSanitizer: unexpected memory mapping" + sysctl vm.mmap_rnd_bits=28 elif [ "${{ matrix.checktype }}" = "sanitize_others" ]; then echo 'CXX=clang++' >> $GITHUB_ENV echo "CXXFLAGS=${COMMON_CXXFLAGS} -O1 -fsanitize=undefined,implicit-conversion,local-bounds,unsigned-integer-overflow" >> $GITHUB_ENV