Remove tsan-suppressions.

This commit is contained in:
Nikolai Kochetov 2019-07-08 16:29:26 +03:00
parent e0362c5216
commit 865f403227
5 changed files with 5 additions and 51 deletions

View File

@ -18,9 +18,9 @@ if (SANITIZE)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libmsan") set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libmsan")
endif () endif ()
elseif (SANITIZE STREQUAL "thread") elseif (SANITIZE STREQUAL "thread")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SAN_FLAGS} -fsanitize=thread -fsanitize-blacklist=${CMAKE_CURRENT_SOURCE_DIR}/cmake/tsan-suppressions.txt") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SAN_FLAGS} -fsanitize=thread")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SAN_FLAGS} -fsanitize=thread -fsanitize-blacklist=${CMAKE_CURRENT_SOURCE_DIR}/cmake/tsan-suppressions.txt") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SAN_FLAGS} -fsanitize=thread")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=thread -fsanitize-blacklist=${CMAKE_CURRENT_SOURCE_DIR}/cmake/tsan-suppressions.txt") set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=thread")
if (MAKE_STATIC_LIBRARIES AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if (MAKE_STATIC_LIBRARIES AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libtsan") set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libtsan")
endif () endif ()

View File

@ -1,23 +0,0 @@
# Wrappers for boost lockfree.
# https://github.com/boostorg/lockfree/issues/22
# https://stackoverflow.com/questions/53996201/boost-lock-free-queue-is-triggering-clangs-thread-sanitizer
race:DB::PipelineExecutor::TaskQueue::push
race:DB::PipelineExecutor::TaskQueue::pop
race:dbms/src/Processors/Executors/PipelineExecutorTaskQueue.cpp
race:../dbms/src/Processors/Executors/PipelineExecutorTaskQueue.cpp
race:/build/obj-x86_64-linux-gnu/../contrib/boost/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp
race:../contrib/boost/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp
race:contrib/boost/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp
race:boost/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp
race:boost/lockfree/detail/tagged_ptr_ptrcompression.hpp
race:lockfree/detail/tagged_ptr_ptrcompression.hpp
race:detail/tagged_ptr_ptrcompression.hpp
race:tagged_ptr_ptrcompression.hpp
race:/build/obj-x86_64-linux-gnu/../contrib/boost/boost/lockfree/detail/freelist.hpp
race:../contrib/boost/boost/lockfree/detail/freelist.hpp
race:contrib/boost/boost/lockfree/detail/freelist.hpp
race:boost/boost/lockfree/detail/freelist.hpp
race:boost/lockfree/detail/freelist.hpp
race:lockfree/detail/freelist.hpp
race:detail/freelist.hpp
race:freelist.hpp

View File

@ -1,23 +0,0 @@
# Wrappers for boost lockfree.
# https://github.com/boostorg/lockfree/issues/22
# https://stackoverflow.com/questions/53996201/boost-lock-free-queue-is-triggering-clangs-thread-sanitizer
race:DB::PipelineExecutor::TaskQueue::push
race:DB::PipelineExecutor::TaskQueue::pop
race:dbms/src/Processors/Executors/PipelineExecutorTaskQueue.cpp
race:../dbms/src/Processors/Executors/PipelineExecutorTaskQueue.cpp
race:/build/obj-x86_64-linux-gnu/../contrib/boost/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp
race:../contrib/boost/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp
race:contrib/boost/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp
race:boost/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp
race:boost/lockfree/detail/tagged_ptr_ptrcompression.hpp
race:lockfree/detail/tagged_ptr_ptrcompression.hpp
race:detail/tagged_ptr_ptrcompression.hpp
race:tagged_ptr_ptrcompression.hpp
race:/build/obj-x86_64-linux-gnu/../contrib/boost/boost/lockfree/detail/freelist.hpp
race:../contrib/boost/boost/lockfree/detail/freelist.hpp
race:contrib/boost/boost/lockfree/detail/freelist.hpp
race:boost/boost/lockfree/detail/freelist.hpp
race:boost/lockfree/detail/freelist.hpp
race:lockfree/detail/freelist.hpp
race:detail/freelist.hpp
race:freelist.hpp

View File

@ -17,7 +17,7 @@ CMD dpkg -i package_folder/clickhouse-common-static_*.deb; \
dpkg -i package_folder/clickhouse-client_*.deb; \ dpkg -i package_folder/clickhouse-client_*.deb; \
dpkg -i package_folder/clickhouse-test_*.deb; \ dpkg -i package_folder/clickhouse-test_*.deb; \
ln -s /usr/lib/llvm-8/bin/llvm-symbolizer /usr/bin/llvm-symbolizer; \ ln -s /usr/lib/llvm-8/bin/llvm-symbolizer /usr/bin/llvm-symbolizer; \
echo "TSAN_OPTIONS='verbosity=1000 halt_on_error=1 history_size=7 suppressions=/usr/share/clickhouse-test/config/tsan-suppressions.txt'" >> /etc/environment; \ echo "TSAN_OPTIONS='verbosity=1000 halt_on_error=1 history_size=7'" >> /etc/environment; \
echo "TSAN_SYMBOLIZER_PATH=/usr/lib/llvm-8/bin/llvm-symbolizer" >> /etc/environment; \ echo "TSAN_SYMBOLIZER_PATH=/usr/lib/llvm-8/bin/llvm-symbolizer" >> /etc/environment; \
echo "UBSAN_OPTIONS='print_stacktrace=1'" >> /etc/environment; \ echo "UBSAN_OPTIONS='print_stacktrace=1'" >> /etc/environment; \
echo "ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer" >> /etc/environment; \ echo "ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer" >> /etc/environment; \

View File

@ -45,7 +45,7 @@ CMD dpkg -i package_folder/clickhouse-common-static_*.deb; \
ln -s /usr/share/clickhouse-test/config/strings_dictionary.xml /etc/clickhouse-server/; \ ln -s /usr/share/clickhouse-test/config/strings_dictionary.xml /etc/clickhouse-server/; \
ln -s /usr/share/clickhouse-test/config/decimals_dictionary.xml /etc/clickhouse-server/; \ ln -s /usr/share/clickhouse-test/config/decimals_dictionary.xml /etc/clickhouse-server/; \
ln -s /usr/lib/llvm-8/bin/llvm-symbolizer /usr/bin/llvm-symbolizer; \ ln -s /usr/lib/llvm-8/bin/llvm-symbolizer /usr/bin/llvm-symbolizer; \
echo "TSAN_OPTIONS='verbosity=1000 halt_on_error=1 history_size=7 suppressions=/usr/share/clickhouse-test/config/tsan-suppressions.txt'" >> /etc/environment; \ echo "TSAN_OPTIONS='verbosity=1000 halt_on_error=1 history_size=7'" >> /etc/environment; \
echo "UBSAN_OPTIONS='print_stacktrace=1'" >> /etc/environment; \ echo "UBSAN_OPTIONS='print_stacktrace=1'" >> /etc/environment; \
echo "ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer" >> /etc/environment; \ echo "ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer" >> /etc/environment; \
echo "UBSAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer" >> /etc/environment; \ echo "UBSAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer" >> /etc/environment; \