-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/memory-corruption"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)gopls/telemetry-wins
Milestone
Description
#!stacks
"sigpanic" &&
("persistent.union:+0,+0x0" ||/* union */
"persistent.(*mapNode).forEach:+0,+0x0")
Issue created by stacks.
TEXT golang.org/x/tools/gopls/internal/util/persistent.union(SB) /Users/adonovan/go/pkg/mod/golang.org/x/tools/gopls@v0.19.1/internal/util/persistent/map.go
map.go:222 0x100762760 f9400b90 MOVD 16(R28), R16 <---- panic
map.go:222 0x100762764 eb3063ff CMP R16, RSP
map.go:222 0x100762768 540017e9 BLS 191(PC)
...
TEXT golang.org/x/tools/gopls/internal/util/persistent.(*mapNode).forEach(SB) /Users/adonovan/go/pkg/
mod/golang.org/x/tools/gopls@v0.19.1/internal/util/persistent/map.go
map.go:171 0x1007626c0 f9400b90 MOVD 16(R28), R16 <--- panic
map.go:171 0x1007626c4 eb3063ff CMP R16, RSP
map.go:171 0x1007626c8 54000429 BLS 33(PC)
...
This stack C2gvcQ was reported by telemetry:
crash/crashruntime.throw:+9,+0x37runtime.sigpanic:+33,+0x223golang.org/x/tools/gopls/internal/util/persistent.union:+0,+0x0golang.org/x/tools/gopls/internal/util/persistent.(*Map[...]).Set:+3,+0x14bgolang.org/x/tools/gopls/internal/cache.(*fileMap).set:+1,+0x4fgolang.org/x/tools/gopls/internal/cache.(*fileMap).clone:+26,+0x34bgolang.org/x/tools/gopls/internal/cache.(*Snapshot).clone:+27,+0x33bgolang.org/x/tools/gopls/internal/cache.(*Session).invalidateViewLocked:+25,+0x1c7golang.org/x/tools/gopls/internal/cache.(*Session).DidModifyFiles:+158,+0xd7fgolang.org/x/tools/gopls/internal/server.(*server).didModifyFiles:+36,+0x317golang.org/x/tools/gopls/internal/server.(*server).DidChangeWatchedFiles:+13,+0x1fbgolang.org/x/tools/gopls/internal/protocol.serverDispatch:+634,+0x5437golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func4:+5,+0x73golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func5:+52,+0x68fgolang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xbfgolang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x8f
golang.org/x/tools/gopls@v0.19.1 go1.24.4 darwin/arm64 other (1)
Dups: q291Zg
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/memory-corruption"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)gopls/telemetry-wins