Closed
Description
#!stacks
"runtime.sigpanic" && "checkStructField:+36"
Issue created by stacks.
named := r.pkg.TypesInfo().Defs[spec.Name].Type()
This stack Zepg4g
was reported by telemetry:
crash/crash
runtime.gopanic:+69
runtime.panicmem:=262
runtime.sigpanic:+19
golang.org/x/tools/gopls/internal/golang.(*renamer).checkStructField:+36
golang.org/x/tools/gopls/internal/golang.(*renamer).check:+14
golang.org/x/tools/gopls/internal/golang.(*renamer).checkInLexicalScope:+62
golang.org/x/tools/gopls/internal/golang.(*renamer).checkInPackageBlock:+47
golang.org/x/tools/gopls/internal/golang.(*renamer).check:+12
golang.org/x/tools/gopls/internal/golang.renameObjects:+24
golang.org/x/tools/gopls/internal/golang.renameExported:+56
golang.org/x/tools/gopls/internal/golang.renameOrdinary:+157
golang.org/x/tools/gopls/internal/golang.Rename:+24
golang.org/x/tools/gopls/internal/server.(*server).Rename:+17
golang.org/x/tools/gopls/internal/protocol.serverDispatch:+489
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@v0.17.0 go1.23.3 darwin/arm64 other,vscode (1)
Dups: _A3zlQ
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
gabyhelp commentedon Dec 23, 2024
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
adonovan commentedon Dec 23, 2024
This has essentially the same root cause as #69362.
findleyr commentedon Dec 23, 2024
Thanks. Let's put this in v0.18.0 for now.
Since it is in rename (and likely in the context of a broken build), I think it is not too disruptive to leave it until the v0.18.0 release. Can re-evaluate if we see this frequently.
Of course, we still have no idea how this scenario arises...
adonovan commentedon Jan 3, 2025
This stack
_A3zlQ
was reported by telemetry:crash/crash
runtime.gopanic:+69
runtime.panicmem:=262
runtime.sigpanic:+19
golang.org/x/tools/gopls/internal/golang.(*renamer).checkStructField:+36
golang.org/x/tools/gopls/internal/golang.(*renamer).check:+14
golang.org/x/tools/gopls/internal/golang.renameObjects:+24
golang.org/x/tools/gopls/internal/golang.renameOrdinary:+99
golang.org/x/tools/gopls/internal/golang.Rename:+24
golang.org/x/tools/gopls/internal/server.(*server).Rename:+17
golang.org/x/tools/gopls/internal/protocol.serverDispatch:+489
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
22 remaining items