Repository navigation
Conversation
With `poison_in_dtor=1` every destructor stores a call stack in the MSan stack depot. At the default depth of 20 frames almost every stack is unique, the depot (2^20 buckets) fills up, and `StackDepotBase::Put` takes 58-76% of server CPU, growing during the run. MSan stateless shards then hit the 4 hour job timeout. Local measurement on the CI MSan build, same 200 tests before and after 1200 other tests: server CPU 79 s -> 172 s at depth 20, 65 s -> 69 s at depth 8. Use-after-destroy detection stays on; only the "allocated / destroyed here" stack in reports gets shorter. https://s3.amazonaws.com/altinity-build-artifacts/REFs/antalya-26.8/d86c7394783bd27532903f18c7519525a0061307/45729031774/ci_run_report.html Co-Authored-By: Claude Fable 5.2 <[email protected]> Signed-off-by: Mikhail Filimonov <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]> Signed-off-by: Mikhail Filimonov <[email protected]>
k-morozov
approved these changes
Dec 1, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
MSan stateless shards get slower during a run and hit the 4 hour job timeout. This sets
malloc_context_size=8inMSAN_OPTIONSfor the server started byClickHouseProc.start.poison_in_dtor=1stays on.Why
poison_in_dtor=1every destructor stores a call stack in the MSan stack depot. At the default depth of 20 frames almost every stack is unique.trace_logfrom an MSan stateless shard,__sanitizer::StackDepotBase::Puttakes 58% of server CPU after 15 minutes and 76% after 75 minutes.Local measurement (CI MSan build, 12 clients, the same 200
.sqltests before and after 1200 other tests)malloc_context_size=8Risks / notes
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
...
Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run:
🤖 Generated with Claude Code