-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
testing: fuzz corpus collection regression #50913
Comments
@gopherbot fuzz |
Change https://golang.org/cl/381960 mentions this issue: |
@katiehockman @rolandshoemaker After updating Go, I noticed the following in my fuzzing output::
Does it mean that four entries (23-(21-2)) in my corpus were duplicates? And those four entries are duplicates because they are present in both generated corpus and code? That makes sense, but I think that would be a source of questions and should be mentioned in docs. |
This is currently documented at https://go.dev/doc/fuzz under "Command Line Output":
I can see how that output might be a bit confusing. Maybe the total should be the size of the entire corpus, not just the generated corpus. @rolandshoemaker what do you think? |
Yeah making the total the combined size makes sense to me (without looking at the docs that was what I initially assumed that total was.) |
What version of Go are you using (
go version
)?What did you do?
Run fuzzing before and after commit b2dc66c.
What did you expect to see?
More or less the same results.
What did you see instead?
Before that commit
The first run has a baseline coverage of 3 (provided by
f.Add
). The second run starts with a coverage of 21: 3 + 18 from the previous run.After that commit
Notice how the second and the third runs start with 4.
I also noticed that my generated corpus, which was already quite big and did not grow much before that commit, started growing much faster after it. So it seems to be a corpus loading problem, not just a logging problem.
The text was updated successfully, but these errors were encountered: