The sanitizers require instrumentation of the allocation functions and
are generally not compatible with jemalloc. In a worst case scenario
this could lead to false negative. This diffs disables jemalloc when a
sanitizer is enabled and prints a warning.
Details
Details
- Reviewers
deadalnix - Group Reviewers
Restricted Project - Commits
- rABC62d103aa2e8f: [CMAKE] Prevent using jemalloc with the sanitizers
Should print a warning:
cmake -GNinja .. \ -DENABLE_SANITIZERS=address \ -DUSE_JEMALLOC_EXPERIMENTAL=ON
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- cmake_jemalloc_asan_tsan
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 11195 Build 21034: Default Diff Build & Tests Build 21033: Build without Wallet Build 21032: Build with clang-10 Build 21031: arc lint + arc unit
Event Timeline
Comment Actions
Print a warning and disable jemalloc rather that requiring the user to enter 2 options