Skip to content

Latest commit

 

History

History
98 lines (66 loc) · 2.28 KB

File metadata and controls

98 lines (66 loc) · 2.28 KB

Fuzzing Crash Report

Analysis

Crash Location: {{CRASH_LOCATION}}

Error Message:

{{PANIC_MESSAGE}}
Stack Trace
{{STACK_TRACE_RAW}}
{% if CLAUDE_ANALYSIS %}

Root Cause Analysis

{{CLAUDE_ANALYSIS}} {% endif %}

Summary

  • Target: {{FUZZ_TARGET}}
  • Crash File: {{CRASH_FILE}}
  • Branch: {{BRANCH}}
  • Commit: {{COMMIT}}
  • Crash Artifact: {{ARTIFACT_URL}}

Reproduce

cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} ./fuzz/artifacts/{{FUZZ_TARGET}}/{{CRASH_FILE}} -- -rss_limit_mb=0
Reproduction Steps
  1. Download the crash artifact: {{ARTIFACT_URL}}

  2. Assuming you download the zipfile to ~/Downloads, and your working directory is the repository root:

# Create the artifacts directory if you haven't already.
mkdir -p ./fuzz/artifacts

# Move the zipfile.
mv ~/Downloads/{{FUZZ_TARGET}}-crash-artifacts.zip ./fuzz/artifacts/

# Unzip the zipfile.
unzip ./fuzz/artifacts/{{FUZZ_TARGET}}-crash-artifacts.zip -d ./fuzz/artifacts/

# You can remove the zipfile now if you want to.
rm ./fuzz/artifacts/{{FUZZ_TARGET}}-crash-artifacts.zip
  1. Reproduce the crash:
cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} ./fuzz/artifacts/{{FUZZ_TARGET}}/{{CRASH_FILE}} -- -rss_limit_mb=0

If you want a backtrace:

RUST_BACKTRACE=1 cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} ./fuzz/artifacts/{{FUZZ_TARGET}}/{{CRASH_FILE}} -- -rss_limit_mb=0
RUST_BACKTRACE=full cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} ./fuzz/artifacts/{{FUZZ_TARGET}}/{{CRASH_FILE}} -- -rss_limit_mb=0
Single command to get a backtrace
mkdir -p ./fuzz/artifacts
mv ~/Downloads/{{FUZZ_TARGET}}-crash-artifacts.zip ./fuzz/artifacts/
unzip ./fuzz/artifacts/{{FUZZ_TARGET}}-crash-artifacts.zip -d ./fuzz/artifacts/
rm ./fuzz/artifacts/{{FUZZ_TARGET}}-crash-artifacts.zip
RUST_BACKTRACE=1 cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} ./fuzz/artifacts/{{FUZZ_TARGET}}/{{CRASH_FILE}} -- -rss_limit_mb=0

Auto-created by fuzzing workflow