Skip to content

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

Closed
mei-rune opened this issue Aug 22, 2016 · 2 comments
Closed

go vet is crash #16826

mei-rune opened this issue Aug 22, 2016 · 2 comments

Comments

@mei-rune
Copy link

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version go1.7 windows/amd64
  2. What operating system and processor architecture are you using (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
  3. What did you do?
    I run "go vet"
  4. What did you expect to see?
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(0x68c640, 0xc042d04060)
    c:/go/src/runtime/panic.go:500 +0x1af
go/types.(*Checker).handleBailout(0xc0420942a0, 0xc04285f8d8)
    c:/go/src/go/types/check.go:213 +0xb5
panic(0x68c640, 0xc042d04060)
    c:/go/src/runtime/panic.go:458 +0x251
go/internal/gcimporter.(*importer).declare(0xc042389d40, 0x814620, 0xc04271a460)
    c:/go/src/go/internal/gcimporter/bimport.go:175 +0x183
go/internal/gcimporter.(*importer).obj(0xc042389d40, 0xfffffffffffffffc)
    c:/go/src/go/internal/gcimporter/bimport.go:195 +0x1bb
go/internal/gcimporter.BImportData(0xc0420571d0, 0xc042a78000, 0x1802a, 0x1fe00, 0xc0423db1f1, 0x5, 0x0, 0x5, 0x10, 0x10)
    c:/go/src/go/internal/gcimporter/bimport.go:88 +0x397
go/internal/gcimporter.Import(0xc0420571d0, 0xc0423db1f1, 0x5, 0x6e7604, 0x1, 0xc04211ab40, 0x0, 0x0)
    c:/go/src/go/internal/gcimporter/gcimporter.go:166 +0x558
go/importer.gcimports.ImportFrom(0xc0420571d0, 0xc0423db1f1, 0x5, 0x6e7604, 0x1, 0x0, 0x4, 0x8, 0x0)
    c:/go/src/go/importer/importer.go:70 +0x6e
go/types.(*Checker).collectObjects(0xc0420942a0)
    c:/go/src/go/types/resolver.go:191 +0x82d
go/types.(*Checker).checkFiles(0xc0420942a0, 0xc042085200, 0x29, 0x40, 0x0, 0x0)
    c:/go/src/go/types/check.go:225 +0xb1
go/types.(*Checker).Files(0xc0420942a0, 0xc042085200, 0x29, 0x40, 0xc0424dec90, 0xc04202f960)
    c:/go/src/go/types/check.go:218 +0x50
go/types.(*Config).Check(0xc042117c80, 0xc042005828, 0x8, 0xc0420099c0, 0xc042085200, 0x29, 0x40, 0xc042474870, 0x200, 0xc04201e000, ...)
    c:/go/src/go/types/api.go:344 +0x1aa
main.(*Package).check(0xc042015a40, 0xc0420099c0, 0xc042085200, 0x29, 0x40, 0x0, 0xc04252e500)
    c:/go/src/cmd/vet/types.go:76 +0x377
main.doPackage(0x6e7604, 0x1, 0xc04206a010, 0x29, 0x29, 0x0, 0x1)
    c:/go/src/cmd/vet/main.go:336 +0x9a0
main.main()
    c:/go/src/cmd/vet/main.go:244 +0x34c
exit status 2

@QuentinPerez
Copy link
Contributor

QuentinPerez commented Aug 22, 2016

Same issue with go tool vet --all=true ./pkg on the github.com/scaleway/scaleway-cli repository

$ 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

@minux
Copy link
Member

minux commented Aug 22, 2016 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants