Skip to content

fix(monitor-fuzz): backport #475 to 2.4 (5 bugs + teardown leak) — closes #494 - #495

Merged
fcostaoliveira merged 1 commit into
2.4from
fix/monitor-fuzz-backport-2.4
Jun 26, 2026
Merged

fcostaoliveira merged 1 commit into
2.4from
fix/monitor-fuzz-backport-2.4

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Jun 26, 2026 •

Copy link
Copy Markdown
Collaborator

Backports #475 to 2.4, fixing 5 pre-existing --monitor-input bugs + the in-flight-request teardown leak.

Fixes (from #475): malformed-command busy-spin (config_types.cpp); long-command-name overflow/assert in print_type_column (run_stats.cpp); in-flight request leak on teardown — drain m_pipeline in ~shard_connection; harness FUZZ_MAX_SECONDS budget; auth/HELLO seed wedge. Adds test_monitor_input_all_unparseable_fails_fast.

Bonus: the m_pipeline drain also fixes the cli-fuzz send_conn_setup_commands leak that #492 worked around with detect_leaks=0 on the 2.4 leg (verified: --authenticate '' --cluster-mode now clean under detect_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

…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-ci

jit-ci Bot commented Jun 26, 2026

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@fcostaoliveira
fcostaoliveira merged commit 0ffaa12 into 2.4 Jun 26, 2026
63 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant