You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/go: SIGSEGV in modload.Lookup when testing a file list with -covermode=atomic #81406
go1.23.0 test -covermode=atomic main_test.go go.mod
→ named files must be .go files: go.mod (ok)
go1.27.1 test -covermode=atomic main_test.go go.mod
→ SIGSEGV (regression)
Only -covermode=atomic triggers it (set/count/no-cover → clean error). test.go:995 injects sync/atomic via EnsureImport(moduleLoader, ...) before
named-file validation; in file-list mode the module loader is nil →
nil deref in modload.Lookup (load.go:856).
Found via zsh EXTENDED_GLOB: unquoted -bench ^ expands ^ to the whole cwd
file list (incl. go.mod) — exactly this arg shape.
Activity
thepudds commentedon Sep 9, 2026
Probably not super useful in this case, but FWIW this bisected to 49b3ab0:
gopherbot commentedon Sep 13, 2026
Change https://go.dev/cl/831944 mentions this issue:
cmd/go: avoid panic for invalid file lists with atomic coverage