Description
#!stacks
"bug.Reportf" && "evaluatePackageHandle.func2:+4"
Issue created by stacks.
// Collect reachable nodes.
var reachableNodes []*handleNode
// In the presence of context cancellation, any package may be missing.
// We need all dependencies to produce a key.
reachable.Elems(func(id typerefs.IndexID) {
dh := b.nodes[id]
if dh == nil {
// Previous code reported an error (not a bug) here.
bug.Reportf("missing reachable node for %q", id) <---------- here
} else {
reachableNodes = append(reachableNodes, dh)
}
})
This stack HFIUJQ
was reported by telemetry:
gopls/bug
golang.org/x/tools/gopls/internal/util/bug.report:+35
golang.org/x/tools/gopls/internal/util/bug.Reportf:+1
golang.org/x/tools/gopls/internal/cache.(*packageHandleBuilder).evaluatePackageHandle.func2:+4
golang.org/x/tools/gopls/internal/cache/typerefs.(*PackageSet).Elems:+10
golang.org/x/tools/gopls/internal/cache.(*packageHandleBuilder).evaluatePackageHandle:+140
golang.org/x/tools/gopls/internal/cache.(*Snapshot).getPackageHandles.func2.1:+8
golang.org/x/sync/errgroup.(*Group).Go.func1:+3
runtime.goexit:+0
golang.org/x/tools/gopls@v0.17.1 go1.23.4 linux/amd64 vscode (1)
golang.org/x/tools/gopls@v0.17.1 go1.23.2 linux/amd64 vscode (2)
Dups: UHdPEQ
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
gabyhelp commentedon Jan 20, 2025
Related Issues
master" for standalone file #69331 (closed)(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
adonovan commentedon Apr 10, 2025
We have not demonstrated that this is a memory corruption issue, and thus a child of #71425.
adonovan commentedon Jun 11, 2025
This stack
UHdPEQ
was reported by telemetry:gopls/bug
golang.org/x/tools/gopls/internal/util/bug.report:+35
golang.org/x/tools/gopls/internal/util/bug.Reportf:+1
golang.org/x/tools/gopls/internal/cache.(*packageHandleBuilder).evaluatePackageHandle.func2:+4
golang.org/x/tools/gopls/internal/cache/typerefs.(*PackageSet).Elems-range1:=129
golang.org/x/tools/gopls/internal/cache/typerefs.(*PackageSet).Elems.Sorted[...].func1:=56
golang.org/x/tools/gopls/internal/cache/typerefs.(*PackageSet).Elems:+1
golang.org/x/tools/gopls/internal/cache.(*packageHandleBuilder).evaluatePackageHandle:+140
golang.org/x/tools/gopls/internal/cache.(*Snapshot).getPackageHandles.func2.1:+8
golang.org/x/sync/errgroup.(*Group).Go.func1:+3
runtime.goexit:+0