Skip to content
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

x/tools/gopls: automated issue report (crash) #45183

Open
steven-meadows opened this issue Mar 22, 2021 · 3 comments
Open

x/tools/gopls: automated issue report (crash) #45183

steven-meadows opened this issue Mar 22, 2021 · 3 comments

Comments

@steven-meadows
Copy link

@steven-meadows steven-meadows commented Mar 22, 2021

gopls version: v0.6.9
gopls flags:
extension version: 0.23.2
environment: Visual Studio Code linux
initialization error: undefined
manual restart count: 0
total start count: 1

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic: unreachable

goroutine 1894 [running]:
go/types.(*Checker).handleBailout(0xc002aef320, 0xc00207f808)
	  check.go:245  0x9f
panic(0xccdfc0, 0xf3f570)
	  panic.go:965  0x1b9
go/types.unreachable(...)
	  errors.go:25
go/types.(*Checker).assignment(0xc002aef320, 0xc0022a9e40, 0xf54b20, 0xc00260cc00, 0xe147fc, 0xa)
	  assignments.go:29  0x9ef
go/types.(*Checker).initVar(0xc002aef320, 0xc000b84730, 0xc0022a9e40, 0xe147fc, 0xa, 0x40f600, 0xc0028dbcd8)
	  assignments.go:141  0x148
go/types.(*Checker).initVars(0xc002aef320, 0xc0028dbcd0, 0x1, 0x1, 0xc002d09180, 0x1, 0x1, 0x0)
	  assignments.go:264  0x633
go/types.(*Checker).shortVarDecl(0xc002aef320, 0xf517c0, 0xc0028d6c60, 0xc002d09170, 0x1, 0x1, 0xc002d09180, 0x1, 0x1)
	  assignments.go:339  0x27e
go/types.(*Checker).stmt(0xc002aef320, 0x3, 0xf5fea0, 0xc002d12a80)
	  stmt.go:408  0x3d05
go/types.(*Checker).stmtList(0xc002aef320, 0x3, 0xc002d11b80, 0x2, 0x2)
	  stmt.go:120  0xd1
go/types.(*Checker).stmt(0xc002aef320, 0x3, 0xf5ffc0, 0xc002d0e9c0)
	  stmt.go:495  0x480a
go/types.(*Checker).stmt(0xc002aef320, 0x0, 0xf60200, 0xc002d12ac0)
	  stmt.go:750  0x1e6e
go/types.(*Checker).stmtList(0xc002aef320, 0x0, 0xc001248e00, 0x9, 0x10)
	  stmt.go:120  0xd1
go/types.(*Checker).stmt(0xc002aef320, 0x0, 0xf5ffc0, 0xc002d0e9f0)
	  stmt.go:495  0x480a
go/types.(*Checker).stmt(0xc002aef320, 0x0, 0xf60350, 0xc002d12b00)
	  stmt.go:507  0x4b51
go/types.(*Checker).stmtList(0xc002aef320, 0x0, 0xc0015ddc80, 0x5, 0x8)
	  stmt.go:120  0xd1
go/types.(*Checker).stmt(0xc002aef320, 0x0, 0xf5ffc0, 0xc002d0ea20)
	  stmt.go:495  0x480a
go/types.(*Checker).stmt(0xc002aef320, 0x0, 0xf60350, 0xc002d12b40)
	  stmt.go:514  0x4ca5
go/types.(*Checker).stmtList(0xc002aef320, 0x0, 0xc0015dda00, 0x6, 0x8)
	  stmt.go:120  0xd1
go/types.(*Checker).funcBody(0xc002aef320, 0xc00223f4a0, 0xc00297ada8, 0x6, 0xc00260dc80, 0xc002d0ea50, 0x0, 0x0)
	  stmt.go:42  0x1f3
go/types.(*Checker).funcDecl.func1()
	  decl.go:749  0x67
go/types.(*Checker).processDelayed(0xc002aef320, 0x0)
	  check.go:291  0x3e
go/types.(*Checker).checkFiles(0xc002aef320, 0xc002150380, 0x4, 0x4, 0x0, 0x0)
	  check.go:267  0xd0
go/types.(*Checker).Files(...)
	  check.go:250
golang.org/x/tools/internal/lsp/cache.typeCheck(0xf61d78, 0xc0009e7900, 0xc002760340, 0xc00017e460, 0x2, 0xc00193b800, 0x0, 0x0, 0x0)
	  check.go:431  0x1193
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle.func1(0xf61d78, 0xc0009e7900, 0xf50800, 0xc002760340, 0xc0000d0420, 0x0)
	  check.go:101  0x1bc
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc001ea0540, 0xf61d78, 0xc0009e7900, 0xc0021502e0, 0xf50800, 0xc002760340, 0xc00026f920)
	  memoize.go:322  0xab
created by golang.org/x/tools/internal/memoize.(*Handle).run
	  memoize.go:315  0x185
[Error - 5:46:34 PM] 

OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.

NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.

<OPTIONAL: ATTACH LOGS HERE>

@hyangah
Copy link
Contributor

@hyangah hyangah commented Mar 23, 2021

Thanks for the report @steven-meadows
Can you please share the output of the following two commands?
We need to know the go version and the go version used in building your gopls.

$ go version
$ go version -m <path_to_gopls>

And, transferring this issue to gopls issue tracker for followup.

@hyangah hyangah changed the title gopls: automated issue report (crash) x/tools/gopls: automated issue report (crash) Mar 23, 2021
@hyangah hyangah transferred this issue from golang/vscode-go Mar 23, 2021
@gopherbot gopherbot added this to the Unreleased milestone Mar 23, 2021
@stamblerre stamblerre modified the milestones: Unreleased, gopls/v0.6.9 Mar 23, 2021
@stamblerre
Copy link
Contributor

@stamblerre stamblerre commented Mar 24, 2021

/cc @findleyr, though of course we need the Go version to make progress here

@findleyr
Copy link
Contributor

@findleyr findleyr commented Mar 24, 2021

I believe this is #39634, crash #12, which is fixed at tip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants