-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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/[email protected]/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/[email protected]/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/crash
runtime.throw:+9,+0x37
runtime.sigpanic:+33,+0x223
golang.org/x/tools/gopls/internal/util/persistent.union:+0,+0x0
golang.org/x/tools/gopls/internal/util/persistent.(*Map[...]).Set:+3,+0x14b
golang.org/x/tools/gopls/internal/cache.(*fileMap).set:+1,+0x4f
golang.org/x/tools/gopls/internal/cache.(*fileMap).clone:+26,+0x34b
golang.org/x/tools/gopls/internal/cache.(*Snapshot).clone:+27,+0x33b
golang.org/x/tools/gopls/internal/cache.(*Session).invalidateViewLocked:+25,+0x1c7
golang.org/x/tools/gopls/internal/cache.(*Session).DidModifyFiles:+158,+0xd7f
golang.org/x/tools/gopls/internal/server.(*server).didModifyFiles:+36,+0x317
golang.org/x/tools/gopls/internal/server.(*server).DidChangeWatchedFiles:+13,+0x1fb
golang.org/x/tools/gopls/internal/protocol.serverDispatch:+634,+0x5437
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func4:+5,+0x73
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func5:+52,+0x68f
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xbf
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x8f
golang.org/x/tools/[email protected] 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