Add OpenSSL suppression for ThreadSanitizer (#2559)

This commit is contained in:
Andrew Gaul 2024-10-22 19:52:27 +09:00 committed by GitHub
parent 64c96e89c5
commit d35b5a8905
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -270,7 +270,7 @@ jobs:
elif [ "${{ matrix.checktype }}" = "sanitize_thread" ]; then elif [ "${{ matrix.checktype }}" = "sanitize_thread" ]; then
echo 'CXX=clang++' echo 'CXX=clang++'
echo "CXXFLAGS=${COMMON_CXXFLAGS} -O0 -fsanitize=thread" echo "CXXFLAGS=${COMMON_CXXFLAGS} -O0 -fsanitize=thread"
echo 'TSAN_OPTIONS=halt_on_error=1' echo 'TSAN_OPTIONS=halt_on_error=1,suppressions=threadsanitizer_suppressions.txt'
# [NOTE] # [NOTE]
# Set this to avoid following error when running configure. # Set this to avoid following error when running configure.
# "FATAL: ThreadSanitizer: unexpected memory mapping" # "FATAL: ThreadSanitizer: unexpected memory mapping"
@ -293,7 +293,7 @@ jobs:
- name: Build - name: Build
run: | run: |
./autogen.sh ./autogen.sh
/bin/sh -c "CXX=${CXX} CXXFLAGS=\"${CXXFLAGS}\" LDFLAGS=\"${LDFLAGS}\" ./configure --prefix=/usr --with-openssl" /bin/sh -c "CXX=${CXX} CXXFLAGS=\"${CXXFLAGS}\" LDFLAGS=\"${LDFLAGS}\" TSAN_OPTIONS=\"\" ./configure --prefix=/usr --with-openssl"
make make
- name: Test suite - name: Test suite

View File

@ -49,7 +49,7 @@ ALL_TESTS=1 ASAN_OPTIONS='detect_leaks=1,detect_stack_use_after_return=1' make c
make clean make clean
./configure CXX=clang++ CXXFLAGS="$COMMON_FLAGS -fsanitize=thread" ./configure CXX=clang++ CXXFLAGS="$COMMON_FLAGS -fsanitize=thread"
make --jobs="$(nproc)" make --jobs="$(nproc)"
ALL_TESTS=1 TSAN_OPTIONS='halt_on_error=1' make check -C test/ ALL_TESTS=1 TSAN_OPTIONS='halt_on_error=1,suppressions=threadsanitizer_suppressions.txt' make check -C test/
# run tests under UndefinedBehaviorSanitizer, https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html # run tests under UndefinedBehaviorSanitizer, https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
make clean make clean

View File

@ -0,0 +1 @@
race:OPENSSL_sk_free