Open
Description
#!stacks
"runtime.goPanicSliceAcap" && "frob.(*reader).bytes"
Issue created by stacks.
func (r *reader) bytes(n int) []byte {
v := r.data[:n]
r.data = r.data[n:] // <--- panic
return v
}
This stack MZjt-Q
was reported by telemetry:
crash/crash
runtime.gopanic:+69
golang.org/x/tools/gopls/internal/cache.assert:=10
golang.org/x/tools/gopls/internal/cache.(*packageHandleBuilder).evaluatePackageHandle.func1:+2
runtime.gopanic:+50
runtime.goPanicSliceAcap:+2
golang.org/x/tools/gopls/internal/util/frob.(*reader).bytes:=392
golang.org/x/tools/gopls/internal/util/frob.(*frob).Decode:+6
golang.org/x/tools/gopls/internal/util/frob.Codec[...].Decode:=53
golang.org/x/tools/gopls/internal/cache/typerefs.decode:+2
golang.org/x/tools/gopls/internal/cache/typerefs.Decode:=42
golang.org/x/tools/gopls/internal/cache.(*Snapshot).typerefs:+12
golang.org/x/tools/gopls/internal/cache.(*packageHandleBuilder).evaluatePackageHandle:+53
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/[email protected] go1.23.3 linux/amd64 vscode (1)
Metadata
Metadata
Assignees
Labels
Issues describing a possible bug in the Go implementation.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.This label describes issues relating to any tools in the x/tools repository.Issues related to the Go language server, gopls."can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)