From 952845afefe4a6c886cdf4b8b5d8318ebdf5661f Mon Sep 17 00:00:00 2001 From: Vladimir Serov Date: Wed, 8 Dec 2021 12:33:41 +0300 Subject: [PATCH] Suppress data race during ittnotify initialization (#659) Signed-off-by: Serov, Vladimir --- cmake/sanitize.cmake | 4 +++- cmake/suppressions/tsan.suppressions | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 cmake/suppressions/tsan.suppressions diff --git a/cmake/sanitize.cmake b/cmake/sanitize.cmake index 7c0ba15a93..10e3873dfb 100644 --- a/cmake/sanitize.cmake +++ b/cmake/sanitize.cmake @@ -34,7 +34,9 @@ if (NOT ${FLAG_DISPLAY_NAME}) "please try another compiler or omit TBB_SANITIZE variable") endif() -set(TBB_TESTS_ENVIRONMENT ${TBB_TESTS_ENVIRONMENT} "LSAN_OPTIONS=suppressions=${CMAKE_CURRENT_SOURCE_DIR}/cmake/suppressions/lsan.suppressions") +set(TBB_TESTS_ENVIRONMENT ${TBB_TESTS_ENVIRONMENT} + "TSAN_OPTIONS=suppressions=${CMAKE_CURRENT_SOURCE_DIR}/cmake/suppressions/tsan.suppressions" + "LSAN_OPTIONS=suppressions=${CMAKE_CURRENT_SOURCE_DIR}/cmake/suppressions/lsan.suppressions") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TBB_SANITIZE_OPTION}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TBB_SANITIZE_OPTION}") diff --git a/cmake/suppressions/tsan.suppressions b/cmake/suppressions/tsan.suppressions new file mode 100644 index 0000000000..d20fa8caf2 --- /dev/null +++ b/cmake/suppressions/tsan.suppressions @@ -0,0 +1,3 @@ +# TSAN suppression for known issues. +# Possible data race during ittnotify initialization. Low impact. +race:__itt_nullify_all_pointers