-
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
"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/crashruntime.gopanic:+69golang.org/x/tools/gopls/internal/cache.assert:=10golang.org/x/tools/gopls/internal/cache.(*packageHandleBuilder).evaluatePackageHandle.func1:+2runtime.gopanic:+50runtime.goPanicSliceAcap:+2golang.org/x/tools/gopls/internal/util/frob.(*reader).bytes:=392golang.org/x/tools/gopls/internal/util/frob.(*frob).Decode:+6golang.org/x/tools/gopls/internal/util/frob.Codec[...].Decode:=53golang.org/x/tools/gopls/internal/cache/typerefs.decode:+2golang.org/x/tools/gopls/internal/cache/typerefs.Decode:=42golang.org/x/tools/gopls/internal/cache.(*Snapshot).typerefs:+12golang.org/x/tools/gopls/internal/cache.(*packageHandleBuilder).evaluatePackageHandle:+53golang.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.3 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