-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
[dev.fuzz] cmd/go: hangs in "gathering baseline coverage" #46633
Comments
Maybe inherited from dvyukov/go-fuzz#276 |
/cc @jayconrod |
By the way, from my understanding of the new fuzz implementation, I believe you'd normally want to use |
I believe this is caused by using It's also caused by using |
It's because once a good input is processed the coverage slice becomes non-nil with old coverage information, so the coordinator gets something it likes. |
Change https://golang.org/cl/328650 mentions this issue: |
Call SnapshotCoverage when the fuzzFn panics, or t.Fatal(f) is called. We currently don't use this coverage for anything, but it is necessary to allow the coordinator to continue when loading a corpus that contains an input that causes crashes. We will also probably want this behavior once we allow the fuzzer to continue after finding a crasher, since the input used to find one crasher may be a useful input for further mutation. Fixes #46633 Change-Id: I40ed5440c88fa354d90a4ff4ae2bf8a19bf3254f Reviewed-on: https://go-review.googlesource.com/c/go/+/328650 Trust: Roland Shoemaker <[email protected]> Trust: Katie Hockman <[email protected]> Run-TryBot: Roland Shoemaker <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Katie Hockman <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
Sounds like this is fixed. Gopherbot just didn't realize because the Fixes line should have been |
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run fuzz test:
First output generates crash. Generates file in GOCACHE: 7777bc1fe491b6e2c55af04cf305ec8b045058c3c61be9eaae8be7fb0859e4c3.gz
(gzipped for github)
Restarting the fuzzer appears stuck:
What did you expect to see?
Fuzzer would exit or progress.
What did you see instead?
Fuzzer stuck in "gathering baseline coverage" forever.
The text was updated successfully, but these errors were encountered: