x/tools/gopls: Hover: nil deref in parseDocLink
adonovan opened this issue · 3 comments
adonovan commented
Issue created by stacks.
This stack rKM8Ow was reported by telemetry:
crash/crashruntime.gopanic:+69runtime.panicmem:=262runtime.sigpanic:+9go/types.(*Scope).Lookup:+10golang.org/x/tools/gopls/internal/golang.lookupDocLinkSymbol:+8golang.org/x/tools/gopls/internal/golang.parseDocLink:+58golang.org/x/tools/gopls/internal/golang.hover:+78golang.org/x/tools/gopls/internal/golang.Hover:+4golang.org/x/tools/gopls/internal/server.(*server).Hover:+30golang.org/x/tools/gopls/internal/protocol.serverDispatch:+335golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3:+5golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4:+52golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3runtime.goexit:+0
golang.org/x/tools/gopls@v0.17.0-pre.2 go1.23.2 windows/amd64 other,vscode-insiders (3)
gabyhelp commented
Related Issues
- x/tools/gopls: crash in Hover (telemetry) #69362
- x/tools/gopls: Hover: panic in lookupObjectByName #69616
- x/tools/gopls: Hover bug reported by telemetry [PE4R3g] #64244 (closed)
- x/tools/gopls: panic in hover #52211 (closed)
- gopls: automated issue report (crash) #40464 (closed)
- x/tools/gopls: analysisinternal.ZeroValue crash on (presumably) unsafe.Pointer #70585 (closed)
- x/tools/gopls: nil Signature (?) deref in Completion #70634
- x/tools/gopls: Hover bug reported by telemetry #64239 (closed)
- x/tools/gopls: automated issue report (crash) #44300 (closed)
- x/tools/gopls: automated issue report (crash) #48492 (closed)
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
adonovan commented
Like #69616 (comment), this is another instance where the compiler's pclntab mapping appears to be inconsistent.