include tools/tesh/set-timeout.tesh
include tools/tesh/setenv.tesh
include tools/tesh/tesh.py
+include tools/thread_sanitizer.supp
include AUTHORS
include CITATION.bib
include CMakeLists.txt
set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/pkg-config/simgrid.pc.in
${CMAKE_CURRENT_SOURCE_DIR}/address_sanitizer.supp
+ ${CMAKE_CURRENT_SOURCE_DIR}/thread_sanitizer.supp
${CMAKE_CURRENT_SOURCE_DIR}/simgrid.supp
${CMAKE_CURRENT_SOURCE_DIR}/simgrid2vite.sed PARENT_SCOPE)
SANITIZER_OPTIONS="-Denable_address_sanitizer=ON -Denable_undefined_sanitizer=OFF -Denable_thread_sanitizer=OFF"
elif [ "${SANITIZER}" = "thread" ]
then
- export TSAN_OPTIONS="memory_limit_mb=1500"
+ export TSAN_OPTIONS="memory_limit_mb=1500 suppressions=$WORKSPACE/tools/thread_sanitizer.supp"
SANITIZER_OPTIONS="-Denable_address_sanitizer=OFF -Denable_undefined_sanitizer=OFF -Denable_thread_sanitizer=ON"
elif [ "${SANITIZER}" = "undefined" ]
then
--- /dev/null
+# Thread sanitizer suppressions for stuff that we cannot control
+
+# Race reported around std::__cxx11::stod / __gnu_cxx::__stoa when the value of
+# errno is saved and restored
+race:ext/string_conversions.h
+
+# False positive seen when simultaneously destroying a CommPtr in s4u-app-masterworkers-parallel
+# For more information, see
+# https://stackoverflow.com/questions/24446561/threadsanitizer-reports-data-race-on-operator-deletevoid-when-using-embedde
+# and more precisely the answer: https://stackoverflow.com/a/49173574
+race:simgrid::kernel::activity::CommImpl::~CommImpl()