Skip to content

Commit 817edfb

Browse files
committed
Merge bitcoin/bitcoin#32245: doc: Updates how to reproduce fuzz CI failure locally
8fe001d doc: Updates how to reproduce fuzz CI failure locally (Sergi Delgado Segura) Pull request description: The current version of the doc does not explain how to reproduce a recent fuzzing CI failure (not yet part of the corpora). Add instructions on how to manually create a crash file based on a report. ACKs for top commit: maflcko: lgtm ACK 8fe001d glozow: ACK 8fe001d Tree-SHA512: 7436d71a30bbbffc34770027f1deeacca2de528d8d1b333431d6070c2ba779ecfcdaf25dc791d2154ba4dd37824d06aed2695a8412d7ca1f29e5bd1796d42aeb
2 parents b2bb27f + 8fe001d commit 817edfb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/fuzzing.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ Patience is useful; even with improved throughput, libFuzzer may need days and
136136
- run the fuzzer with the case number appended to the seed corpus path:
137137
`FUZZ=process_message build_fuzz/bin/fuzz
138138
qa-assets/fuzz_corpora/process_message/1bc91feec9fc00b107d97dc225a9f2cdaa078eb6`
139+
- If the file does not exist, make sure you are checking out the exact same commit id
140+
for the qa-assets repo. If the file was found while running the fuzz engine in the CI,
141+
you should be able to reproduce the crash locally with the same (or a similar input)
142+
within a few minutes. Alternatively, you can use the base64 encoded file from the CI log,
143+
if it exists. e.g.
144+
`echo "Nb6Fc/97AACAAAD/ewAAgAAAAIAAAACAAAAAoA==" |
145+
base64 --decode > qa-assets/fuzz_corpora/process_message/1bc91feec9fc00b107d97dc225a9f2cdaa078eb6`
139146
140147
## Submit improved coverage
141148

0 commit comments

Comments
 (0)