testing,internal/fuzz: improve detection and reporting of deadlocks during fuzzing #48591
Labels
FrozenDueToAge
fuzz
Issues related to native fuzzing support
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run the test below with
go test -fuzz=. -fuzztime=30s
:What did you expect to see?
Either an explicit error from the fuzzer indicating that the test deadlocked, or a hang until some timeout expired — either way, resulting in a nonzero exit code.
#48157 is also very relevant, but would not help in this case if the per-test timeout is set close to (or higher than)
-fuzztime
.What did you see instead?
(Note that the
execs
count got stuck — and the reported throughput started dropping — as soon as the deadlock was found.)The text was updated successfully, but these errors were encountered: