Skip to content

test: Fuzz on macOS - #27932

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2306-fuzz-mac-
Jun 29, 2023
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2306-fuzz-mac-

Conversation

@maflcko

@maflcko maflcko commented Jun 22, 2023

Copy link
Copy Markdown
Member

Any reason not to?

@DrahtBot

DrahtBot commented Jun 22, 2023 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK jamesob, dergoegge
Concept ACK brunoerg, kevkevinpal

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot added the Tests label Jun 22, 2023
@maflcko maflcko changed the title test: Run fuzz tests on macOS test: Run fuzz on macOS Jun 22, 2023
@maflcko maflcko changed the title test: Run fuzz on macOS test: Fuzz on macOS Jun 22, 2023
@maflcko

maflcko commented Jun 22, 2023

Copy link
Copy Markdown
Member Author

Looks like this fails https://cirrus-ci.com/task/6065266690359296?logs=ci#L3616

Run banman with args ['/private/var/folders/s0/b8snf7qj1479hhmzr90n5s4m0000gn/T/cirrus-ci-build/ci/scratch/build/bitcoin-arm64-apple-darwin/src/test/fuzz/fuzz', PosixPath('/private/var/folders/s0/b8snf7qj1479hhmzr90n5s4m0000gn/T/cirrus-ci-build/ci/scratch/qa-assets/fuzz_seed_corpus/banman')]Assertion failed: (banmap == banmap_read), function banman_fuzz_target, file banman.cpp, line 112.
Error processing input "/private/var/folders/s0/b8snf7qj1479hhmzr90n5s4m0000gn/T/cirrus-ci-build/ci/scratch/qa-assets/fuzz_seed_corpus/banman/f02775f613ebc1b9ff595d4b3129407deac65bfc"
Assertion failed: (banmap == banmap_read), function banman_fuzz_target, file banman.cpp, line 112.
Error processing input "/private/var/folders/s0/b8snf7qj1479hhmzr90n5s4m0000gn/T/cirrus-ci-build/ci/scratch/qa-assets/fuzz_seed_corpus/banman/f02775f613ebc1b9ff595d4b3129407deac65bfc"
Target ['/private/var/folders/s0/b8snf7qj1479hhmzr90n5s4m0000gn/T/cirrus-ci-build/ci/scratch/build/bitcoin-arm64-apple-darwin/src/test/fuzz/fuzz', PosixPath('/private/var/folders/s0/b8snf7qj1479hhmzr90n5s4m0000gn/T/cirrus-ci-build/ci/scratch/qa-assets/fuzz_seed_corpus/banman')] failed with exit code 1

@dergoegge

Copy link
Copy Markdown
Member

Concept ACK

Would there be any value in making this a separate task?

@brunoerg

Copy link
Copy Markdown
Contributor

Concept ACK

Also, fix a few bugs:

* Error: RPC command "enumeratesigners" not found in RPC_COMMANDS_SAFE_FOR_FUZZING or RPC_COMMANDS_NOT_SAFE_FOR_FUZZING. Please update test/fuzz/rpc.cpp.
* in run_once: ...format(" ".join(result.args), ... TypeError: sequence item 2: expected str instance, PosixPath found
@maflcko

maflcko commented Jun 22, 2023

Copy link
Copy Markdown
Member Author

Would there be any value in making this a separate task?

Not unless there is a benefit.

@kevkevinpal

Copy link
Copy Markdown
Contributor

Concept ACK

@jamesob jamesob left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github ACK fae7c50

Adds fuzzing to a new architecture, right? Seems like an easy win?

@dergoegge dergoegge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK fae7c50

@fanquake
fanquake merged commit 3d51f7c into bitcoin:master Jun 29, 2023
@maflcko
maflcko deleted the 2306-fuzz-mac- branch June 29, 2023 14:22
@bitcoin bitcoin locked and limited conversation to collaborators Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants