Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ci/jobs/scripts/clickhouse_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,20 @@ def start(self, replica_num=0):
)
tsan_options = env["TSAN_OPTIONS"]
print(f"TSAN_OPTIONS = {tsan_options}")
# With `poison_in_dtor=1` every destructor stores a stack in the MSan stack
# depot. With the default depth of 20 almost every stack is unique, the
# fixed-size depot fills up, and the server slows down during the run.
env["MSAN_OPTIONS"] = " ".join(
filter(
lambda x: x is not None,
[
env.get("MSAN_OPTIONS", None),
"malloc_context_size=8",
],
)
)
msan_options = env["MSAN_OPTIONS"]
print(f"MSAN_OPTIONS = {msan_options}")
proc = subprocess.Popen(
command,
stderr=subprocess.STDOUT,
Expand Down
2 changes: 2 additions & 0 deletions tests/clickhouse-test
Original file line number Diff line number Diff line change
Expand Up @@ -3876,6 +3876,8 @@ class TestCase:
log_opt = " --client_logs_file=" + self.fatal_sanitizer_prefix + " "
client_options += log_opt

# These apply to processes started by the tests (clients, `clickhouse-local`).
# In CI the server gets its sanitizer options in `ci/jobs/scripts/clickhouse_proc.py`.
for env_name in [
"TSAN_OPTIONS",
"ASAN_OPTIONS",
Expand Down
Loading