Skip to content

Fuzz --authenticate '' --cluster-mode again: the #450 leak is fixed - #883

Merged
fcostaoliveira merged 3 commits into
masterfrom
fix/cluster-abort-teardown-leak
Oct 26, 2026
Merged

fcostaoliveira merged 3 commits into
masterfrom
fix/cluster-abort-teardown-leak

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #450.

#450's leak (a --connection-stage-timeout abort during cluster setup, under LeakSanitizer) no longer reproduces on master. It was fixed by e935f80 (#475), whose shard_connection destructor change frees requests still queued on a connection. The leaked object was the in-flight AUTH request from send_conn_setup_commands(). The cluster_client itself was always deleted.

Evidence (ASan + UBSan build, ASAN_OPTIONS=detect_leaks=1:abort_on_error=1, no-auth Redis 7.0.15, Ubuntu 24.04 container):

  • The issue's exact reproducer exits 2 with no LSan report in 5/5 runs on master 29f63de.
  • 1142696, from when the issue was filed, exits 134 in 3/3 runs with Direct leak of 96 byte(s) allocated in shard_connection::send_conn_setup_commands.
  • Bisect: 41371a5 still leaks, and e935f80 is the first clean commit.
  • Clean on master, 3 runs each:
    • 4 threads × 4 clients
    • --pipeline=16
    • a real 1-node cluster
    • a password-protected cluster with a wrong password
    • a password-protected cluster with no password
    • --protocol=resp3

The only leftover was in tests/cli_fuzz.py, which discarded the --authenticate '' --cluster-mode argv shape, citing #450. This PR removes that skip and the now-unused assume import, so the nightly CLI fuzz (which runs master with detect_leaks=1) covers that combination again. It also corrects the cli-fuzz-nightly.yml comment that credited the master fix to the #456 refactor: 41371a5 already contains #456 and still leaks, so a 2.4 backport would need #475. No product code changes.

🤖 Generated with Claude Code

fcostaoliveira and others added 2 commits October 25, 2026 11:05
The CLI fuzzer discarded this argv shape because a supervisor abort
during cluster setup leaked the in-flight AUTH request (#450). e935f80
(#475) frees requests still queued on a connection when it is destroyed;
the reproducer has been clean since, so let the fuzzer cover it again
with leak detection on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
master stopped leaking the pending setup request with e935f80 (#475);
41371a5, which already has the #456 refactor, still leaks it. Name the
fix that a 2.4 backport would need.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fcostaoliveira fcostaoliveira added the run-cli-fuzz Triggers CLI Hypothesis fuzz suite on this PR label Oct 25, 2026
@fcostaoliveira
fcostaoliveira merged commit 2647024 into master Oct 26, 2026
58 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-cli-fuzz Triggers CLI Hypothesis fuzz suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cluster_client: supervisor-abort path leaks partial cluster_client state (LSAN flag)

1 participant