원클릭으로
reproduce-fuzz-crash
// Reproduce AFL++ fuzz crashes from GitHub Actions. Use when user provides a GitHub Actions fuzz run URL and wants to reproduce and analyze the crash locally.
// Reproduce AFL++ fuzz crashes from GitHub Actions. Use when user provides a GitHub Actions fuzz run URL and wants to reproduce and analyze the crash locally.
| name | reproduce-fuzz-crash |
| description | Reproduce AFL++ fuzz crashes from GitHub Actions. Use when user provides a GitHub Actions fuzz run URL and wants to reproduce and analyze the crash locally. |
| argument-hint | <github-actions-run-url> |
| allowed-tools | Bash, Read, Grep, Glob, Write |
Given a GitHub Actions fuzz run URL, download crash artifacts, triage them
with fuzz/triage_crashes.sh, and produce a crash analysis report.
Input: $ARGUMENTS — a GitHub Actions run URL like:
https://github.com/dragonflydb/dragonfly/actions/runs/22906484769
or with query params like ?pr=6855.
Extract owner/repo and run_id from the URL.
https://github.com/{owner}/{repo}/actions/runs/{run_id}[?...]
Strip any query parameters from run_id.
List crash artifacts via the GitHub API, then download each as a .zip directly:
IMPORTANT: Run each command as a separate Bash tool call (no && chaining)
to ensure auto-approval works with the user's permission patterns.
# List artifacts — filter for names containing "crash"
gh api repos/{owner}/{repo}/actions/runs/{run_id}/artifacts
# Create output directory
mkdir -p /tmp/fuzz-repro-{run_id}
# Download each crash artifact by ID (separate command)
gh api repos/{owner}/{repo}/actions/artifacts/{artifact_id}/zip > /tmp/fuzz-repro-{run_id}/<artifact-name>.zip
This gives real .zip files that the triage script can consume directly.
If no crash artifacts are found, report that the run has no crash artifacts and stop.
Note: there may be duplicate artifact names (same name, different IDs) from retried jobs. Download the most recent one (highest artifact ID).
Infer the protocol mode from the artifact name:
memcacherespCheck if the debug binary already exists and runs:
./build-dbg/dragonfly --version
Only build if the binary doesn't exist or fails to run:
ninja -C build-dbg dragonfly
If build-dbg doesn't exist, run ./helio/blaze.sh first.
For each zip file, run:
./fuzz/triage_crashes.sh ./build-dbg/dragonfly <mode> /tmp/fuzz-repro-{run_id}/<artifact-name>.zip
Capture the full output.
Parse the triage output for confirmed crashes. For each confirmed crash:
Print a structured report:
## Fuzz Crash Report
**Run**: {url}
**Artifacts**: {number} crash(es) found
---
### Crash NNNNNN
**Reproduced**: Yes / No (false positive)
**Signal**: SIGABRT (6) / SIGSEGV (11) / etc.
**Stack trace**:
\```
<stack trace from triage output>
\```
**Analysis**:
<1-3 sentences explaining the likely root cause based on the stack trace,
the assertion message, and the crash input. Identify the source file and
line number. Suggest what to investigate.>
--rename_command flags to avoid false positives from
commands like DEBUG SLEEP that the fuzzer might generate./tmp/fuzz-repro-{run_id}/ — the user may want to inspect it.gh run download fails with permissions, suggest the user authenticate
with gh auth login.