infra/helper.py reproduce with centipede?
- Dominant language
- Shell
- Stars
- 12.6k
- Forks
- 2.9k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 62
Description
Does `infra/helper.py reproduce` work with `centipede`?
Seemingly it does not:
```
cd oss-fuzz
git checkout 101cfd72488b96389bb60bfb17025b8f95af6fe8~1
python infra/helper.py build_fuzzers --sanitizer address --engine centipede bitcoin-core
python infra/helper.py reproduce bitcoin-core wallet_notifications ./repr.bin
```
```
INFO:__main__:Running: docker run --rm --privileged --shm-size=2g --platform linux/amd64 -i -e HELPER=True -e ARCHITECTURE=x86_64 -v /root/oss-fuzz/build/out/bitcoin-core:/out -v /root/oss-fuzz/repr.bin:/testcase -t gcr.io/oss-fuzz-base/base-runner reproduce wallet_notifications -runs=100.
+ FUZZER=wallet_notifications
+ shift
+ '[' '!' -v TESTCASE ']'
+ TESTCASE=/testcase
+ '[' '!' -f /testcase ']'
+ export RUN_FUZZER_MODE=interactive
+ RUN_FUZZER_MODE=interactive
+ export FUZZING_ENGINE=libfuzzer
+ FUZZING_ENGINE=libfuzzer
+ export SKIP_SEED_CORPUS=1
+ SKIP_SEED_CORPUS=1
+ run_fuzzer wallet_notifications -runs=100 /testcase
/out/wallet_notifications -rss_limit_mb=2560 -timeout=25 -runs=100 /testcase < /dev/null
Centipede fuzz target runner; argv[0]: /out/wallet_notifications flags: (null)
error: can't open the input file
```
However, in https://oss-fuzz.com/testcase-detail/5189159019741184 it seems that oss-fuzz is able to reproduce with centipede?
Contributor guide
Research direction
Start with infra/helper.py reproduce and the Docker command shown in the report, then trace how the centipede engine reaches the wallet_notifications runner. Reproduce the command with repr.bin and compare its input handling with the linked testcase behavior; done means centipede reproduction accepts the testcase or the limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- infrastructure, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100