x/tools/gopls: ChangeSignature: crash in in inliner (likely due to ill-formed variadic call) #73187
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.
The fix is to do something like what gopls does in gopls/internal/golang/inline.go, but in the
inline
package itself so that all callers (e.g. ChangeSignature) benefit:This stack
nlN-6w
was reported by telemetry:crash/crash
runtime.gopanic:+69
runtime.panicdottypeE:=275
runtime.panicdottypeI:+5
golang.org/x/tools/internal/refactor/inline.(*state).inlineCall:+370
golang.org/x/tools/internal/refactor/inline.(*state).inline:+17
golang.org/x/tools/internal/refactor/inline.Inline:+13
golang.org/x/tools/gopls/internal/golang.inlineAllCalls:+171
golang.org/x/tools/gopls/internal/golang.rewriteCalls:+118
golang.org/x/tools/gopls/internal/golang.ChangeSignature:+142
golang.org/x/tools/gopls/internal/server.(*commandHandler).ChangeSignature.func1:+15
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).ChangeSignature:+2
golang.org/x/tools/gopls/internal/protocol/command.Dispatch:+45
golang.org/x/tools/gopls/internal/server.(*server).ResolveCodeAction:+21
golang.org/x/tools/gopls/internal/protocol.serverDispatch:+46
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3:+5
The text was updated successfully, but these errors were encountered: