-
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: parallel fuzzing hangs with -parallel=1 #50217
Comments
This comment has been minimized.
This comment has been minimized.
Bisected down to b2b6be7 |
cc @golang/fuzzing |
This seems like one of the things that should just be disabled, both within the |
FWIW, in terms of what it could do, the design doc includes:
Certainly seems reasonable to disallow it though, especially for a first version. |
Running seed corpus entries in parallel actually works (as far as I can tell) and is very useful for me. If there is not enough time to fix it for |
|
Change https://golang.org/cl/374054 mentions this issue: |
The c.startParallel channel on the testContext is stuck in t.Parallel() because c.running starts at 1 for the main fuzz parent test, and is causing a deadlock because it is never released. It would normally be released by tRunner, but needs to instead be released by fRunner instead for fuzz tests. Fixes golang#50217 Change-Id: I2d010e9adddfd8e8321ff2f9dd2e43daf46c128f Reviewed-on: https://go-review.googlesource.com/c/go/+/374054 Reviewed-by: Roland Shoemaker <roland@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Trust: Katie Hockman <katie@golang.org> Run-TryBot: Katie Hockman <katie@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
The following test hangs when run with
go test -parallel=1
:It works with
-parallel=2
and other values. I think it should work in any case.Small self-contained example is there: https://github.com/AlekSi/go-bug/tree/master/50217
The text was updated successfully, but these errors were encountered: