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: panic in mod.hoverOnModuleStatement #59077

Closed
heliostatic opened this issue Mar 15, 2023 · 2 comments
Closed

x/tools/gopls: panic in mod.hoverOnModuleStatement #59077

heliostatic opened this issue Mar 15, 2023 · 2 comments
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@heliostatic
Copy link

gopls version: v0.11.0 (go1.20.2)
gopls flags:
update flags: proxy
extension version: 0.38.0
go version: 1.20.2
environment: Visual Studio Code darwin
initialization error: undefined
issue timestamp: Wed, 15 Mar 2023 17:20:29 GMT
restart history:
Wed, 15 Mar 2023 17:11:59 GMT: activation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x30 pc=0x100b8976c]

goroutine 160 [running]:
golang.org/x/tools/gopls/internal/lsp/mod.hoverOnModuleStatement({0x1010b5308%3F, 0x14000980bd0%3F}, 0x14000980bd0%3F, 0x1010b5570%3F, {0x1010c1470%3F, 0x1400043a2c0%3F}, {0x1010b5570%3F, 0x1400033c620%3F})
	  hover.go:128  0x3c
golang.org/x/tools/gopls/internal/lsp/mod.Hover({0x1010b5260, 0x140005e2050}, {0x1010c1470, 0x1400043a2c0}, {0x1010b5570, 0x1400033c620}, {0x980a50%3F, 0x140%3F})
	  hover.go:50  0x22c
golang.org/x/tools/gopls/internal/lsp.(*Server).hover(0x14000980a50%3F, {0x1010b5260, 0x140005e2050}, 0x14000980a50)
	  hover.go:25  0x100
golang.org/x/tools/gopls/internal/lsp.(*Server).Hover(0x1400003d180%3F, {0x1010b5260%3F, 0x140005e2050%3F}, 0x100f4f840%3F)
	  server_gen.go:140  0x24
golang.org/x/tools/gopls/internal/lsp/protocol.serverDispatch({0x1010b5260, 0x140005e2050}, {0x1010c4720, 0x140000e2000}, 0x14000980a20, {0x1010b5650, 0x140005543c0})
	  tsserver.go:397  0xa58
golang.org/x/tools/gopls/internal/lsp/protocol.ServerHandler.func1({0x1010b5260, 0x140005e2050}, 0x14000980a20, {0x1010b5650, 0x140005543c0})
	  protocol.go:157  0x6c
golang.org/x/tools/gopls/internal/lsp/lsprpc.handshaker.func1({0x1010b5260, 0x140005e2050}, 0x14000980a20, {0x1010b5650%3F, 0x140005543c0%3F})
	  lsprpc.go:519  0x740
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1({0x1010b5260, 0x140005e2050}, 0x140004ddb78, {0x1010b5650%3F, 0x140005543c0%3F})
	  handler.go:35  0xf0
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	  handler.go:103  0x90
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	  handler.go:100  0x1d8
[Error - 1:20:25 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>

@suzmue suzmue changed the title gopls: automated issue report (crash) x/tools/gopls: panic in mod.hoverOnModuleStatement Mar 16, 2023
@suzmue suzmue transferred this issue from golang/vscode-go Mar 16, 2023
@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Mar 16, 2023
@gopherbot gopherbot added this to the Unreleased milestone Mar 16, 2023
@adonovan
Copy link
Member

Dup of #57625 (fixed)?

@findleyr
Copy link
Contributor

Yes, this is a dupe. Our current release is a big one, and probably won't be out until April. Unfortunately, this panic seemed rare enough to not put out a patch release.

@findleyr findleyr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2023
@golang golang locked and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

4 participants