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) #40433

Closed
rana opened this issue Jul 27, 2020 · 1 comment
Closed

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

rana opened this issue Jul 27, 2020 · 1 comment
Labels
Milestone

Comments

@rana
Copy link

@rana rana commented Jul 27, 2020

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

Please attach the stack trace from the crash.
A window with the error message should have popped up in the lower half of your screen.
Please copy the stack trace from that window and paste it in this issue.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x17193af]

goroutine 87 [running]:
golang.org/x/tools/internal/lsp.modLinks(0x1a68300, 0xc0001ee600, 0x1a7b400, 0xc001ab1700, 0x1a6c1c0, 0xc0000f34a0, 0x1a7b400, 0xc001ab1700, 0x1a6c1c0, 0xc0000f34a0, ...)
/Users/rian/go/pkg/mod/golang.org/x/tools@v0.0.0-20200708181441-6004c8539734/internal/lsp/link.go:64 +0x25f
golang.org/x/tools/internal/lsp.(*Server).documentLink(0xc0002a1800, 0x1a68300, 0xc0001ee600, 0xc00e4a93b0, 0xc00e4a93b0, 0x0, 0x0, 0x0, 0xc00e82fe40)
/Users/rian/go/pkg/mod/golang.org/x/tools@v0.0.0-20200708181441-6004c8539734/internal/lsp/link.go:34 +0x387
golang.org/x/tools/internal/lsp.(*Server).DocumentLink(0xc0002a1800, 0x1a68300, 0xc0001ee600, 0xc00e4a93b0, 0xc00e4a93b0, 0x0, 0x0, 0x1a66980, 0xc000132120)
/Users/rian/go/pkg/mod/golang.org/x/tools@v0.0.0-20200708181441-6004c8539734/internal/lsp/server_gen.go:72 +0x4d
golang.org/x/tools/internal/lsp/protocol.serverDispatch(0x1a68300, 0xc0001ee600, 0x1a82780, 0xc0002a1800, 0xc00e4a9380, 0x1a68540, 0xc0001ee540, 0x0, 0x0, 0xbfbfdfab16761770)
/Users/rian/go/pkg/mod/golang.org/x/tools@v0.0.0-20200708181441-6004c8539734/internal/lsp/protocol/tsserver.go:339 +0x3036
golang.org/x/tools/internal/lsp/protocol.ServerHandler.func1(0x1a68300, 0xc0001ee600, 0xc00e4a9380, 0x1a68540, 0xc0001ee540, 0x0, 0x0)
/Users/rian/go/pkg/mod/golang.org/x/tools@v0.0.0-20200708181441-6004c8539734/internal/lsp/protocol/protocol.go:62 +0xc0
golang.org/x/tools/internal/lsp/lsprpc.handshaker.func1(0x1a68300, 0xc0001ee600, 0xc00e4a9380, 0x1a68540, 0xc0001ee540, 0x0, 0x0)
/Users/rian/go/pkg/mod/golang.org/x/tools@v0.0.0-20200708181441-6004c8539734/internal/lsp/lsprpc/lsprpc.go:509 +0x40e
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1(0x1a68300, 0xc0001ee600, 0xc000133180, 0x1a68540, 0xc0001ee540, 0x0, 0x0)
/Users/rian/go/pkg/mod/golang.org/x/tools@v0.0.0-20200708181441-6004c8539734/internal/jsonrpc2/handler.go:35 +0xd3
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc00030c060, 0xc00008a0c0, 0xc00028bc90, 0x1a68300, 0xc0001ee600, 0xc000133180, 0x1a68540, 0xc0001ee540)
/Users/rian/go/pkg/mod/golang.org/x/tools@v0.0.0-20200708181441-6004c8539734/internal/jsonrpc2/handler.go:103 +0x86
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
/Users/rian/go/pkg/mod/golang.org/x/tools@v0.0.0-20200708181441-6004c8539734/internal/jsonrpc2/handler.go:100 +0x171
[Error - 9:56:12 AM] Connection to server got closed. Server will not be restarted.
[Error - 9:56:12 AM] Request textDocument/documentLink failed.
Error: Connection got disposed.
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:904:25)
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:74:35)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2309:42)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/main.js:155:15)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2296:18)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:240:26)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at StreamMessageReader.fireClose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket. (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:208:15)
at Pipe. (net.js:588:12)
[Error - 9:56:12 AM] Request textDocument/documentLink failed.
Error: Connection got disposed.
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:904:25)
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:74:35)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2309:42)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/main.js:155:15)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2296:18)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:240:26)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at StreamMessageReader.fireClose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket. (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:208:15)
at Pipe. (net.js:588:12)
[Error - 9:56:12 AM] Request textDocument/foldingRange failed.
Error: Connection got disposed.
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:904:25)
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:74:35)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2309:42)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/main.js:155:15)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2296:18)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:240:26)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at StreamMessageReader.fireClose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket. (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:208:15)
at Pipe. (net.js:588:12)
[Error - 9:56:12 AM] Request textDocument/foldingRange failed.
Error: Connection got disposed.
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:904:25)
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:74:35)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2309:42)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/main.js:155:15)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2296:18)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:240:26)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at StreamMessageReader.fireClose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket. (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:208:15)
at Pipe. (net.js:588:12)
[Error - 9:56:12 AM] Request textDocument/codeLens failed.
Error: Connection got disposed.
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:904:25)
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:74:35)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2309:42)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/main.js:155:15)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2296:18)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:240:26)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at StreamMessageReader.fireClose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket. (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:208:15)
at Pipe. (net.js:588:12)
[Error - 9:56:12 AM] Request textDocument/codeLens failed.
Error: Connection got disposed.
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:904:25)
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:74:35)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2309:42)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/main.js:155:15)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2296:18)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:240:26)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at StreamMessageReader.fireClose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket. (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:208:15)
at Pipe. (net.js:588:12)
[Error - 9:56:12 AM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:904:25)
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:74:35)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2309:42)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/main.js:155:15)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2296:18)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:240:26)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at StreamMessageReader.fireClose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket. (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:208:15)
at Pipe. (net.js:588:12)
[Error - 9:56:12 AM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:904:25)
at Object.dispose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:74:35)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2309:42)
at LanguageClient.handleConnectionClosed (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/main.js:155:15)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-languageclient/lib/client.js:2296:18)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at closeHandler (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/main.js:240:26)
at CallbackList.invoke (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/events.js:121:36)
at StreamMessageReader.fireClose (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket. (/Users/rian/.vscode/extensions/golang.go-0.15.2/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:208:15)
at Pipe. (net.js:588:12)

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>

@stamblerre stamblerre transferred this issue from golang/vscode-go Jul 27, 2020
@gopherbot gopherbot added the gopls label Jul 27, 2020
@stamblerre stamblerre changed the title gopls: automated issue report (crash) x/tools/gopls: automated issue report (crash) Jul 27, 2020
@gopherbot gopherbot added the Tools label Jul 27, 2020
@gopherbot gopherbot added this to the Unreleased milestone Jul 27, 2020
@gopherbot
Copy link

@gopherbot gopherbot commented Jul 27, 2020

Change https://golang.org/cl/244840 mentions this issue: internal/lsp: handle nil pointer in go.mod links

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
3 participants
You can’t perform that action at this time.