x/tools/gopls: Package.Path called on nil Package in AddTestForFunc #73687
Labels
BugReport
Issues describing a possible bug in the Go implementation.
gopls/telemetry-wins
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Issue created by stacks.
Another case of calling Obj().Pkg().Path() without checking for nil (unsafe.Pointer or builtin-in error):
This stack
651rTQ
was reported by telemetry:crash/crash
runtime.gopanic:+69
runtime.panicmem:=262
runtime.sigpanic:+19
go/types.(*Package).Path:=34
golang.org/x/tools/gopls/internal/golang.AddTestForFunc.func4:=490
golang.org/x/tools/gopls/internal/golang.AddTestForFunc:+282
golang.org/x/tools/gopls/internal/server.(*commandHandler).AddTest.func1:+4
golang.org/x/tools/gopls/internal/server.(*commandHandler).run.func2:+3
golang.org/x/tools/gopls/internal/server.(*commandHandler).run:+81
golang.org/x/tools/gopls/internal/server.(*commandHandler).AddTest:+2
golang.org/x/tools/gopls/internal/protocol/command.Dispatch:+25
golang.org/x/tools/gopls/internal/server.(*server).ExecuteCommand:+28
golang.org/x/tools/gopls/internal/protocol.serverDispatch:+674
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3:+5
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4:+52
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3
runtime.goexit:+0
The text was updated successfully, but these errors were encountered: