Repository navigation
fix(monitor-fuzz): backport #475 to 2.4 (5 bugs + teardown leak) — closes #494 - #495
Merged
Merged
Conversation
…ng bugs) (#475) The Monitor-Input Fuzz nightly had never passed since it was added (2026-06-08). Fixes 5 pre-existing issues reachable from --monitor-input (external/fuzzed input) plus an impossible job budget: 1. Malformed-command busy-spin -> validate each command with split_command_to_args() at load time (config_types.cpp); fail fast if none valid. 2. Long-command-name buffer overflow / assert abort in print_type_column -> clamp the type-column width (run_stats.cpp). 3. In-flight request leak on teardown (LeakSanitizer exit=42) -> drain m_pipeline in the shard_connection destructor. 4. Fuzz job always cancelled at the 35-min cap -> FUZZ_MAX_SECONDS wall-clock budget + round-robin seeds (fuzz_monitor_input.py + monitor-fuzz.yml). 5. Auth/HELLO replay wedge -> remove the invalid "HELLO 3"/RESP3 protocol-switch line from the auth fuzz seed (replaying a protocol-negotiation command via --monitor-input is not a meaningful workload). Fixing it in the seed rather than the run loop avoids tipping a pre-existing latent UBSan hang (issue #482). Adds a regression test (test_monitor_input_all_unparseable_fails_fast). Co-Authored-By: Claude Opus 4.8 <[email protected]>
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
4 tasks
This was referenced Jun 26, 2026
Merged
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.
Backports #475 to 2.4, fixing 5 pre-existing
--monitor-inputbugs + the in-flight-request teardown leak.Fixes (from #475): malformed-command busy-spin (
config_types.cpp); long-command-name overflow/assert inprint_type_column(run_stats.cpp); in-flight request leak on teardown — drainm_pipelinein~shard_connection; harnessFUZZ_MAX_SECONDSbudget; auth/HELLO seed wedge. Addstest_monitor_input_all_unparseable_fails_fast.Bonus: the
m_pipelinedrain also fixes the cli-fuzzsend_conn_setup_commandsleak that #492 worked around withdetect_leaks=0on the 2.4 leg (verified:--authenticate '' --cluster-modenow clean underdetect_leaks=1). Follow-up: drop that workaround on master once this lands.Cherry-picked cleanly from
e935f80. Verified locally: monitor-fuzz driver 0 failures (120 iters); cli-fuzz leak gone.Part of #494 (fixes the 5 bugs + leak). Does not fully green monitor-fuzz: a separate pre-existing hang (
17_all_command_types.txt>90s, fails on master too) is tracked in #496.🤖 Generated with Claude Code