-
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
"panicdottypeE" && "persistent.(*Map[...]).Get:=182"
Issue created by stacks.
// Get returns the map value associated with the specified key.
// The ok result indicates whether an entry was found in the map.
func (pm *Map[K, V]) Get(key K) (V, bool) {
node := pm.root
for node != nil {
if key < node.key.(K) { <--------- panic
node = node.left
} else if node.key.(K) < key {
node = node.right
} else {
return node.value.value.(V), true
}
}
var zero V
return zero, false
}This stack BPhXeQ was reported by telemetry:
crash/crashruntime.gopanic:+69runtime.panicdottypeE:+1golang.org/x/tools/gopls/internal/util/persistent.(*Map[...]).Get:=182golang.org/x/tools/gopls/internal/cache.(*packageHandleBuilder).evaluatePackageHandle:+2golang.org/x/tools/gopls/internal/cache.(*Snapshot).getPackageHandles.func2.1:+8golang.org/x/sync/errgroup.(*Group).Go.func1:+3runtime.goexit:+0
golang.org/x/tools/gopls@v0.17.1 go1.23.4 linux/amd64 vscode (1)
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