|
5 | 5 | **Crash Location**: `{{CRASH_LOCATION}}` |
6 | 6 |
|
7 | 7 | **Error Message**: |
| 8 | + |
8 | 9 | ``` |
9 | 10 | {{PANIC_MESSAGE}} |
10 | 11 | ``` |
|
15 | 16 | ``` |
16 | 17 | {{STACK_TRACE_RAW}} |
17 | 18 | ``` |
| 19 | + |
18 | 20 | </details> |
19 | 21 | {% if CLAUDE_ANALYSIS %} |
20 | 22 |
|
|
33 | 35 |
|
34 | 36 | ### Reproduction |
35 | 37 |
|
| 38 | +<details> |
| 39 | + |
36 | 40 | 1. Download the crash artifact: |
37 | 41 | - **Direct download**: {{ARTIFACT_URL}} |
38 | | - - Extract the zip file |
| 42 | + - Extract the zip file (`unzip`) |
| 43 | + - The path should look like `/path/to/{{FUZZ_TARGET}}/{{CRASH_FILE}}` |
| 44 | + - You can create a `./fuzz/artifacts` directory that will be git-ignored in the `vortex` repo |
| 45 | + - Full path would be `./fuzz/artifacts/{{FUZZ_TARGET}}/{{CRASH_FILE}}` |
39 | 46 |
|
40 | 47 | 2. Reproduce locally: |
| 48 | + |
| 49 | +```bash |
| 50 | +cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} /path/to/crash_file -- -rss_limit_mb=0 |
| 51 | +``` |
| 52 | + |
| 53 | +3. Get a backtrace: |
| 54 | + |
41 | 55 | ```bash |
42 | | -cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} {{FUZZ_TARGET}}/{{CRASH_FILE}} -- -rss_limit_mb=0 |
| 56 | +RUST_BACKTRACE=1 cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} /path/to/crash_file -- -rss_limit_mb=0 |
43 | 57 | ``` |
44 | 58 |
|
45 | | -3. Get full backtrace: |
46 | 59 | ```bash |
47 | | -RUST_BACKTRACE=full cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} {{FUZZ_TARGET}}/{{CRASH_FILE}} -- -rss_limit_mb=0 |
| 60 | +RUST_BACKTRACE=full cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} /path/to/crash_file -- -rss_limit_mb=0 |
48 | 61 | ``` |
49 | 62 |
|
| 63 | +</details> |
| 64 | + |
| 65 | +### Workflow Example |
| 66 | + |
| 67 | +Assuming you download the zipfile to `~/Downloads`, and your working directory is the repository |
| 68 | +root, you can follow these steps: |
| 69 | + |
| 70 | +<details> |
| 71 | + |
| 72 | +```bash |
| 73 | +# Create the artifacts directory if you haven't already. |
| 74 | +mkdir -p ./fuzz/artifacts |
| 75 | + |
| 76 | +# Move the zipfile. |
| 77 | +mv ~/Downloads/{{FUZZ_TARGET}}-crash-artifacts.zip ./fuzz/artifacts/ |
| 78 | + |
| 79 | +# Unzip the zipfile. |
| 80 | +unzip ./fuzz/artifacts/{{FUZZ_TARGET}}-crash-artifacts.zip -d ./fuzz/artifacts/ |
| 81 | + |
| 82 | +# You can remove the zipfile now if you want to. |
| 83 | +rm ./fuzz/artifacts/{{FUZZ_TARGET}}-crash-artifacts.zip |
| 84 | +``` |
| 85 | + |
| 86 | +You can now reproduce with: |
| 87 | + |
| 88 | +```bash |
| 89 | +cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} ./fuzz/artifacts/{{FUZZ_TARGET}}/{{CRASH_FILE}} -- -rss_limit_mb=0 |
| 90 | +``` |
| 91 | + |
| 92 | +If you want a backtrace: |
| 93 | + |
| 94 | +```bash |
| 95 | +RUST_BACKTRACE=1 cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} ./fuzz/artifacts/{{FUZZ_TARGET}}/{{CRASH_FILE}} -- -rss_limit_mb=0 |
| 96 | +``` |
| 97 | + |
| 98 | +```bash |
| 99 | +RUST_BACKTRACE=full cargo +nightly fuzz run -D --sanitizer=none {{FUZZ_TARGET}} ./fuzz/artifacts/{{FUZZ_TARGET}}/{{CRASH_FILE}} -- -rss_limit_mb=0 |
| 100 | +``` |
| 101 | + |
| 102 | +</details> |
| 103 | + |
50 | 104 | <!-- seed_hash:{{SEED_HASH}} stack_hash:{{STACK_TRACE_HASH}} message_hash:{{MESSAGE_HASH}} --> |
51 | 105 |
|
52 | 106 | --- |
53 | | -*Auto-created by fuzzing workflow* |
| 107 | + |
| 108 | +_Auto-created by fuzzing workflow_ |
0 commit comments