mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-14 16:34:09 +00:00
Add OpenSSL suppression for ThreadSanitizer (#2559)
This commit is contained in:
parent
64c96e89c5
commit
d35b5a8905
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -270,7 +270,7 @@ jobs:
|
||||
elif [ "${{ matrix.checktype }}" = "sanitize_thread" ]; then
|
||||
echo 'CXX=clang++'
|
||||
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]
|
||||
# Set this to avoid following error when running configure.
|
||||
# "FATAL: ThreadSanitizer: unexpected memory mapping"
|
||||
@ -293,7 +293,7 @@ jobs:
|
||||
- name: Build
|
||||
run: |
|
||||
./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
|
||||
|
||||
- name: Test suite
|
||||
|
@ -49,7 +49,7 @@ ALL_TESTS=1 ASAN_OPTIONS='detect_leaks=1,detect_stack_use_after_return=1' make c
|
||||
make clean
|
||||
./configure CXX=clang++ CXXFLAGS="$COMMON_FLAGS -fsanitize=thread"
|
||||
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
|
||||
make clean
|
||||
|
1
test/threadsanitizer_suppressions.txt
Normal file
1
test/threadsanitizer_suppressions.txt
Normal file
@ -0,0 +1 @@
|
||||
race:OPENSSL_sk_free
|
Loading…
Reference in New Issue
Block a user