Repository navigation
Closed
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
Go version
go1.25.0 darwin/arm64
Output of go env in your module/workspace:
AR='ar'
CC='clang'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='clang++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/Users/elia.battiston/Library/Caches/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/Users/elia.battiston/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/9_/ds0mpwns1nx7lw0mpwl4klk40000gq/T/go-build2080843811=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD='/Users/elia.battiston/git/go-1.25.0-fuzztime-bug/go.mod'
GOMODCACHE='/Users/elia.battiston/go/pkg/mod'
GONOPROXY='github.com'
GONOSUMDB='github.com'
GOOS='darwin'
GOPATH='/Users/elia.battiston/go'
GOPRIVATE='github.com'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/elia.battiston/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.darwin-arm64'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/elia.battiston/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/Users/elia.battiston/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.darwin-arm64/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.25.0'
GOWORK=''
PKG_CONFIG='pkg-config'What did you do?
I created a fuzz test on a function that cannot fail.
I then repeatedly executed fuzz testing with a maximum duration of 5s, with the following command:
go test . -fuzz="FuzzImpossibleFailure" -fuzztime=5s
The minimal example to reproduce the issue can be found here: https://github.com/erap320/go-1.25.0-fuzztime-bug
What did you see happen?
After many executions, one of them fails with the following output:
ok fuzztest 5.307s
fuzz: elapsed: 0s, gathering baseline coverage: 0/3 completed
fuzz: elapsed: 0s, gathering baseline coverage: 3/3 completed, now fuzzing with 10 workers
fuzz: elapsed: 3s, execs: 1026946 (342299/sec), new interesting: 0 (total: 3)
fuzz: elapsed: 5s, execs: 1755480 (346861/sec), new interesting: 0 (total: 3)
--- FAIL: FuzzImpossibleFailure (5.10s)
context deadline exceeded
FAIL
exit status 1
FAIL fuzztest 5.314s
This seems related to #72104
What did you expect to see?
I would not expect the fuzzing process to fail unless the tested function fails
Reacted by Emanuele Leyland, Andrea Arteaga, Lucio Bordonaro, Lars Walen, Denys Sedchenko, Gabriel Vasile, Evan Gibler, WGH, Ainar Garipov, Daniel Erat and 7 more
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Activity
gabyhelp commentedon Oct 8, 2025
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
[-]testing/fuzz.go: Fuzz testing with `fuzztime` flag sometimes fails incorrectly[/-][+]cmd/go: Fuzz testing with `fuzztime` flag sometimes fails incorrectly with "context deadline exceeded"[/+][-]cmd/go: Fuzz testing with `fuzztime` flag sometimes fails incorrectly with "context deadline exceeded"[/-][+]testing: Fuzz testing with `fuzztime` flag sometimes fails incorrectly with "context deadline exceeded"[/+]prattmic commentedon Oct 8, 2025
cc @adonovan @neild @golang/fuzzing
karalabe commentedon Jan 7, 2026
I've also started seeing this today.
desertwitch commentedon Jan 30, 2026
I'm also seeing this with:
TomSellers commentedon May 4, 2026
Seeing this constantly on different fuzzers in a a script that I use to loop over all of the 400+ fuzzers in my codebase. Its rarely the same fuzzer that triggers this. I've seen it when using
fuzztimeof 3 seconds all the way up to 10s of minutes. It's causing our scheduled fuzzing runs to fail in various places.go version go1.26.2 linux/amd64EDIT:
Adding
go version go1.26.2 darwin/arm64With a
fuzztime=5sgopherbot commentedon May 5, 2026
Change https://go.dev/cl/774140 mentions this issue:
internal/fuzz: fix race between context deadline and error suppressionfix(ci): retry fuzz smoke once on the spurious fuzztime deadline (#63)
TomSellers commentedon Jul 22, 2026
How do we get this fix on someone's radar? It has been breaking workflows for months.
@golang/fuzzing
klauspost commentedon Jul 22, 2026
Yeah. Seems we'll have to wait another cycle. For what it's worth I'm using
-fuzztime=1000000xand similar until the CL is merged.TomSellers commentedon Jul 22, 2026
Thanks for the update and PR @klauspost
My workflow loops over several hundred fuzz tests and then does so again in 32 bit (
GOARCH=386). It does so for a specified amount of time. Breaking mid-way through a loop is super frustrating.57 remaining items
ci: avoid fuzz duration deadline flake
test: cover accept recovery and late-connection shutdown cleanup (#60)
fix(ci): avoid fuzz deadline race with execution budgets
feat(enable): support RFC 6855 UTF8=ACCEPT via optional UTF8Mailbox (#…
fix(test): rerun a fuzz target once on the golang/go#75804 false failure
fix(test): rerun a fuzz target once on the golang/go#75804 false failure
ci(#513): run the fuzz jobs on Go 1.27.3 until go.mod has the golang/…
Use bounded fuzz iterations for reliable release gates
ci(fuzz): ignore the spurious fuzztime deadline error from Go 1.26 (#…
ci: retry a fuzz target once on a spurious deadline error (#22)
ci(fuzz): tolerate Go's spurious -fuzztime deadline failure (#14)
build: Go 1.27.3
build: Go 1.27.3 (fixes the false fuzz deadline failures) (#1063)
ci: fuzz smoke survives the Go fuzz engine's end-of-window race