Attempt to circumvent ASLR issues with ThreadSanitizer #191
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As of 2024-11-08, CircleCI uses a base system with kernel 6.5 instead of 5.15: https://discuss.circleci.com/t/docker-executor-infrastructure-upgrade/52282 That makes the TSan job to fail because it hits google/sanitizers#1716 .
sysctl vm.mmap_rnd_bits=28
,echo 0 | tee /proc/sys/kernel/randomize_va_space
) work because the filesystem is readonly on the Docker image.ThreadSanitizer: CHECK failed: tsan_platform_linux.cpp:282 "((personality(old_personality | ADDR_NO_RANDOMIZE))) != ((-1))" (0xffffffffffffffff, 0xffffffffffffffff)
. This problem however seems so rare that there's nothing to be found for it, except TSan/MSan builds failures ClickHouse/ClickHouse#64086 where I have no idea what could I do in order to fix this. There it's related to getauxval, so maybe in my case it's related to CPU dispatch? Ifunc isn't used with sanitizers, tho, and disabling CPU dispatch completely for sanitizer builds will just lead to a xz-level security nightmare.