-
Notifications
You must be signed in to change notification settings - Fork 36.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Add cov_fuzz target #18107
build: Add cov_fuzz target #18107
Conversation
fa12093
to
faf7d4f
Compare
Strongest possible Concept ACK -- will test :) BTW, I noticed that the fuzzing coverage link is broken on your otherwise excellent coverage statistics page. Will the merge of this fix that? :) |
Which link is broken? https://marcofalke.github.io/btc_cov/ ? Note that the fuzzers were running into a stack overflow, thus unable to produce a result. So for a while that page was a 404. This should now be fixed with 657c5e5 |
@MarcoFalke Ah, then the issue was temporary. Cannot reproduce today :) |
@practicalswift Are you still planning to test? 🤔 |
@MarcoFalke Absolutely :) I ran in to some problems - see below. What versions of
|
@practicalswift Have you applied the workaround? #12602 (comment) |
Other than that I use vanilla |
@MarcoFalke Thanks! Works as expected with workaround applied. |
ACK faf7d4f |
faf7d4f build: Add cov_fuzz target (MarcoFalke) fac71e3 build: link fuzz/test_runner.py for out-of-tree builds (MarcoFalke) faf2c5a build: Remove unused USE_COVERAGE (MarcoFalke) Pull request description: Only libFuzzer is supported right now, so clang is required. Thus, this needs a workaround such as bitcoin#12602 (comment) Can be tested with: ``` mkdir build && cd build ../configure --enable-fuzz --with-sanitizers=fuzzer --enable-lcov --enable-lcov-branch-coverage CC=clang CXX=clang++ make $MAKEJOBS make cov_fuzz ACKs for top commit: practicalswift: ACK faf7d4f Tree-SHA512: 6828f8f81d95f6781713d0b09d7eba2ffdb50217e09ca839db61791a4ed70024859c7a0cb01d9eede79166d574dd57ece01f9d9fe2610d4a72a4ca4a4ce0b838
…zz directory 90bd476 build: make clean removes .gcda and .gcno files from fuzz directory (eugene) Pull request description: I believe these should also be deleted upon invoking `make clean`. It also garbles the coverage file if you try to fuzz the same harness again. ACKs for top commit: practicalswift: ACK 90bd476 -- patch looks correct hebasto: ACK 90bd476, tested with hints from #12602 and #18107. darosior: ACK 90bd476 Tree-SHA512: 4b2eb664f64d18bc0385c5a0040b0b9fa6fe470c941ae39c7cb4544c4283427a8d4985517475fe0295c3ab2794b9a2ad4f76b6a443c05d846c97c966add87ca9
…from fuzz directory 90bd476 build: make clean removes .gcda and .gcno files from fuzz directory (eugene) Pull request description: I believe these should also be deleted upon invoking `make clean`. It also garbles the coverage file if you try to fuzz the same harness again. ACKs for top commit: practicalswift: ACK 90bd476 -- patch looks correct hebasto: ACK 90bd476, tested with hints from bitcoin#12602 and bitcoin#18107. darosior: ACK 90bd476 Tree-SHA512: 4b2eb664f64d18bc0385c5a0040b0b9fa6fe470c941ae39c7cb4544c4283427a8d4985517475fe0295c3ab2794b9a2ad4f76b6a443c05d846c97c966add87ca9
…from fuzz directory 90bd476 build: make clean removes .gcda and .gcno files from fuzz directory (eugene) Pull request description: I believe these should also be deleted upon invoking `make clean`. It also garbles the coverage file if you try to fuzz the same harness again. ACKs for top commit: practicalswift: ACK 90bd476 -- patch looks correct hebasto: ACK 90bd476, tested with hints from bitcoin#12602 and bitcoin#18107. darosior: ACK 90bd476 Tree-SHA512: 4b2eb664f64d18bc0385c5a0040b0b9fa6fe470c941ae39c7cb4544c4283427a8d4985517475fe0295c3ab2794b9a2ad4f76b6a443c05d846c97c966add87ca9
…from fuzz directory 90bd476 build: make clean removes .gcda and .gcno files from fuzz directory (eugene) Pull request description: I believe these should also be deleted upon invoking `make clean`. It also garbles the coverage file if you try to fuzz the same harness again. ACKs for top commit: practicalswift: ACK 90bd476 -- patch looks correct hebasto: ACK 90bd476, tested with hints from bitcoin#12602 and bitcoin#18107. darosior: ACK 90bd476 Tree-SHA512: 4b2eb664f64d18bc0385c5a0040b0b9fa6fe470c941ae39c7cb4544c4283427a8d4985517475fe0295c3ab2794b9a2ad4f76b6a443c05d846c97c966add87ca9
…from fuzz directory 90bd476 build: make clean removes .gcda and .gcno files from fuzz directory (eugene) Pull request description: I believe these should also be deleted upon invoking `make clean`. It also garbles the coverage file if you try to fuzz the same harness again. ACKs for top commit: practicalswift: ACK 90bd476 -- patch looks correct hebasto: ACK 90bd476, tested with hints from bitcoin#12602 and bitcoin#18107. darosior: ACK 90bd476 Tree-SHA512: 4b2eb664f64d18bc0385c5a0040b0b9fa6fe470c941ae39c7cb4544c4283427a8d4985517475fe0295c3ab2794b9a2ad4f76b6a443c05d846c97c966add87ca9
Only libFuzzer is supported right now, so clang is required. Thus, this needs a workaround such as #12602 (comment)
Can be tested with: