Repository navigation
ci(cli-fuzz): set ASAN detect_leaks=0 to avoid abort-path false positive - #451
Merged
Merged
Conversation
The nightly CLI fuzz hit a sanitizer-only abort with argv shapes like '--authenticate "" --cluster-mode' against a no-auth server: the connection-stage supervisor (#431) fires while cluster_client is mid-initialisation, the abort path tears down partial cluster_client state, and LSAN flags the unreleased allocations at __cxa_finalize, which the harness's abort_on_error=1 converts to SIGABRT. Release builds exit cleanly; the issue is sanitizer-only and is on the supervisor-abort path, not the CLI input. Tracked separately in #450. This fuzzer's primary purpose is finding crashes/hangs from CLI shapes; steady-state leak coverage already comes from asan.yml. Turn off detect_leaks here while keeping abort_on_error=1 so any real ASAN catch (UAF, OOB, double-free) still fails loudly. Refs: nightly cli-fuzz failures on 03ef76e + 1142696.
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
R3 review feedback on the prior approach (blanket detect_leaks=0): turning LSAN off in the only nightly that exercises diverse argv shapes silently dropped leak coverage on the exact cluster_client region #450 is about. Switched approach: - Re-enable detect_leaks=1 in cli-fuzz-nightly.yml - Add a Hypothesis assume(False) guard in test_cli_fuzz_does_not_crash for the known --authenticate '' + --cluster-mode combo so the example is discarded and Hypothesis keeps searching. Net: LSAN now catches leaks on every other argv shape (including single-flag --cluster-mode runs, --authenticate against an auth-enabled server, etc.) -- only the one combo tracked in #450 is skipped, with a comment linking to that issue.
Collaborator
Author
|
Switched to R3's option (b) per review: re-enabled |
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.
Summary
The nightly CLI fuzz hit a sanitizer-only abort with
argv=['--authenticate', '', '--cluster-mode'](against a no-auth server). The connection-stage supervisor (#431) correctly fires within 3 s (after #449), but the abort path tears down a partially-initialisedcluster_client; LSAN flags the unreleased allocations at__cxa_finalize;ASAN_OPTIONS=abort_on_error=1converts that to SIGABRT.Release builds exit cleanly. The leak class is on the supervisor-abort path, not introduced by any specific CLI input. Tracked in #450.
Turn off
detect_leaksin this fuzzer's harness while keepingabort_on_error=1so any real ASAN catch (UAF, OOB, double-free) still fails loudly. Steady-state leak coverage continues viaasan.yml.Test plan
workflow_dispatchon master to confirm the nightly fuzz now completesNote
Low Risk
Test-only change that excludes one documented argv combination from fuzzing; no production code paths are modified.
Overview
The nightly CLI fuzz test now skips Hypothesis examples that combine
--cluster-modewith--authenticate ''(empty password) against a no-auth server.That argv shape triggers the connection-stage supervisor abort while
cluster_clientis only partly initialized; LSAN then reports leaks at teardown and, withabort_on_error=1, the run looks like a crash. The test usesassume(False)so Hypothesis discards those cases and keeps searching, which avoids turning off leak detection for every other generated argv (see #450).Reviewed by Cursor Bugbot for commit 51a255d. Bugbot is set up for automated code reviews on this repo. Configure here.