Log fuzz crash inputs as base64 for reproducibility - #429
Draft
Saurabh Singh (saurabh500) wants to merge 1 commit into
Draft
Log fuzz crash inputs as base64 for reproducibility#429Saurabh Singh (saurabh500) wants to merge 1 commit into
Saurabh Singh (saurabh500) wants to merge 1 commit into
Conversation
When a fuzz crash is detected the build log recorded only the crash file name (a SHA1); the input bytes lived only in the published pipeline artifact, which can be auth-restricted to download and expires with retention. Echo each crash input as base64 (bounded to 4096 bytes) so crashes stay reproducible from the log alone. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
📊 Code Coverage Report
Diff CoverageDiff: main...HEAD, staged and unstaged changesNo lines with coverage information in this diff. 🔗 Quick Links |
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
When the GH-Rust Fuzz Test pipeline detects a crash, the build log records only the crash file name (a SHA1). The crashing input bytes live only inside the published pipeline artifact, which is not reliably retrievable — artifact downloads can be auth-restricted and pipeline retention expires. Once the artifact is gone or inaccessible, the SHA1 filename alone cannot recreate the input, so the crash cannot be reproduced or turned into a regression test.
This change makes the crash-handling step in
.pipeline/templates/fuzz-template.ymlecho each crash input as base64 into the build log (bounded to 4096 bytes), so every future fuzz crash is reproducible from the log alone, independent of artifact access or retention.Background
This was found while investigating the last fuzz-crash failure in the pipeline: build 164079 (2026-08-01), target
fuzz_token_stream, crashcrash-80c55599ebe9adee81668324e4c6151894a33fbe("libFuzzer: deadly signal").main: reproducing against current HEAD (harness reusing the exact fuzz path with--cfg fuzzing, dev profile with overflow-checks + debug-assertions) found 0 panics across 15.3M random trials (all 256 first-bytes × 60k, lengths 1–48) and a full replay of the committed seed corpus (137/137 inputs).az) — which is exactly the gap this PR closes.Change
.pipeline/templates/fuzz-template.yml: in the crash-found branch of the "Run Fuzzer" step, emitbase64of eachcrash-*file into the log. YAML validated.Testing
yaml.safe_load).Work item: AB#47707
Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com