cmd/vet: SIGSEGV in the presence of duplicate function definitions #19656
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Running
go vet
(versiongo1.8 darwin/amd64
) on a package as defined below results in a SIGSEGV panic.What version of Go are you using (
go version
)?go1.8 darwin/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin"
What did you do?
Created a package directory containing two identical files, named
1.go
and2.go
, having the following content:Then ran
go vet {package}
on that package.What did you expect to see?
Ideally a vet error notifying about the duplicate function definition. Alternatively two vet errors warning about the lost context cancel, once for each file. Not a crash.
What did you see instead?
The text was updated successfully, but these errors were encountered: