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()