-
Notifications
You must be signed in to change notification settings - Fork 18k
go vet is crash #16826
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
Labels
Comments
Same issue with $ go version
go version go1.7 darwin/amd64 $ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/quentinperez/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/5r/_xh_6_fs0h16qgqvrdygnd540000gn/T/go-build825551204=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1" $ go tool vet --all=true ./pkg
panic: inconsistent import:
var bufio.ErrInvalidUnreadByte error
previously imported as:
var ErrInvalidUnreadByte error
[recovered]
panic: inconsistent import:
var bufio.ErrInvalidUnreadByte error
previously imported as:
var ErrInvalidUnreadByte error
goroutine 1 [running]:
panic(0x2734c0, 0xc42066c2d0)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
go/types.(*Checker).handleBailout(0xc4200b6540, 0xc4205d74a0)
/usr/local/go/src/go/types/check.go:213 +0xae
panic(0x2734c0, 0xc42066c2d0)
/usr/local/go/src/runtime/panic.go:458 +0x243
go/internal/gcimporter.(*importer).declare(0xc42006c270, 0x3f44a0, 0xc42065f040)
/usr/local/go/src/go/internal/gcimporter/bimport.go:175 +0x17c
go/internal/gcimporter.(*importer).obj(0xc42006c270, 0xfffffffffffffffc)
/usr/local/go/src/go/internal/gcimporter/bimport.go:195 +0x1b4
go/internal/gcimporter.BImportData(0xc420018fc0, 0xc4204da000, 0x17e41, 0x1fe00, 0xc4207ce811, 0x5, 0x0, 0x5, 0x10, 0x10)
/usr/local/go/src/go/internal/gcimporter/bimport.go:88 +0x390
go/internal/gcimporter.Import(0xc420018fc0, 0xc4207ce811, 0x5, 0xc42022f280, 0xc, 0xc4203570e0, 0x0, 0x0)
/usr/local/go/src/go/internal/gcimporter/gcimporter.go:166 +0x551
go/importer.gcimports.ImportFrom(0xc420018fc0, 0xc4207ce811, 0x5, 0xc42022f280, 0xc, 0x0, 0xc4203ad900, 0x0, 0x0)
/usr/local/go/src/go/importer/importer.go:70 +0x67
go/types.(*Checker).collectObjects(0xc4200b6540)
/usr/local/go/src/go/types/resolver.go:191 +0x826
go/types.(*Checker).checkFiles(0xc4200b6540, 0xc4206ab200, 0x27, 0x40, 0x0, 0x0)
/usr/local/go/src/go/types/check.go:225 +0xaa
go/types.(*Checker).Files(0xc4200b6540, 0xc4206ab200, 0x27, 0x40, 0xc42085cab0, 0xc42043d518)
/usr/local/go/src/go/types/check.go:218 +0x49
go/types.(*Config).Check(0xc420864140, 0xc42025a270, 0x8, 0xc42089a9c0, 0xc4206ab200, 0x27, 0x40, 0xc42085a8c0, 0x0, 0xc4200001a0, ...)
/usr/local/go/src/go/types/api.go:344 +0x1a3
main.(*Package).check(0xc420840420, 0xc42089a9c0, 0xc4206ab200, 0x27, 0x40, 0x0, 0xc42083f180)
/usr/local/go/src/cmd/vet/types.go:76 +0x370
main.doPackage(0xc420294040, 0xc, 0xc4205db400, 0x27, 0x40, 0x0, 0x0)
/usr/local/go/src/cmd/vet/main.go:336 +0x999
main.doPackageDir(0xc420294040, 0xc)
/usr/local/go/src/cmd/vet/main.go:284 +0x606
main.visit(0xc420294040, 0xc, 0x3f34a0, 0xc4208a3a00, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/cmd/vet/main.go:371 +0xf3
path/filepath.walk(0xc420294040, 0xc, 0x3f34a0, 0xc4208a3a00, 0x2f5950, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:351 +0x81
path/filepath.walk(0x7fff5fbff8e0, 0x6, 0x3f34a0, 0xc4200c1ee0, 0x2f5950, 0x0, 0xc4200c1e10)
/usr/local/go/src/path/filepath/path.go:376 +0x344
path/filepath.Walk(0x7fff5fbff8e0, 0x6, 0x2f5950, 0xc, 0xc4200c1e10)
/usr/local/go/src/path/filepath/path.go:398 +0xd5
main.walkDir(0x7fff5fbff8e0, 0x6)
/usr/local/go/src/cmd/vet/main.go:386 +0x41
main.main()
/usr/local/go/src/cmd/vet/main.go:240 +0x2cb |
Dup of #15728.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.7 windows/amd64
go env
)?set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=d:\developing\go\xxx..\3td;d:\developing\go\xxx
set GORACE=
set GOROOT=d:\tools\go_amd64
set GOTOOLDIR=d:\tools\go_amd64\pkg\tool\windows_amd64
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\xxx\AppData\Local\Temp\go-build765068130=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
I run "go vet"
The text was updated successfully, but these errors were encountered: