From 3faa64a53c1872847422a3c2ab218c734ac0779a Mon Sep 17 00:00:00 2001 From: Andi Date: Mon, 25 Mar 2024 08:20:55 +0100 Subject: [PATCH] Forbid TSAN with Jemalloc (#1842) --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c02039497..2f89cb3cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -337,6 +337,8 @@ if (ASAN) endif() if (TSAN) + message(WARNING "Disabling jemalloc as it doesn't work well with ASAN") + set(ENABLE_JEMALLOC OFF) # ThreadSanitizer generally requires all code to be compiled with -fsanitize=thread. # If some code (e.g. dynamic libraries) is not compiled with the flag, it can # lead to false positive race reports, false negative race reports and/or @@ -352,7 +354,7 @@ if (TSAN) # By default ThreadSanitizer uses addr2line utility to symbolize reports. # llvm-symbolizer is faster, consumes less memory and produces much better # reports. To use it set runtime flag: - # TSAN_OPTIONS="extern-symbolizer-path=~/llvm-symbolizer" + # TSAN_OPTIONS="extern-symbolizer-path=~/llvm-symbolizer" # For more runtime flags see: https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags endif()