-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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" && "reflect.Value.lenNonSlice:+11"
Issue created by stacks.
Crash while loading the length word of a string in an interface value: must be memory corruption.
This stack 2Tlc6w was reported by telemetry:
crash/crashruntime.throw:+9,+0x47runtime.sigpanic:+33,+0x26breflect.Value.lenNonSlice:+11,+0x175reflect.Value.Len:=1828,+0x1385golang.org/x/tools/gopls/internal/util/frob.(*frob).encode:+85,+0x1376golang.org/x/tools/gopls/internal/util/frob.(*frob).encode:+93,+0x15a7golang.org/x/tools/gopls/internal/util/frob.(*frob).encode:+81,+0x10d7golang.org/x/tools/gopls/internal/util/frob.(*frob).encode:+60,+0x162bgolang.org/x/tools/gopls/internal/util/frob.(*frob).encode:+93,+0x15a7golang.org/x/tools/gopls/internal/util/frob.(*frob).encode:+81,+0x10d7golang.org/x/tools/gopls/internal/util/frob.(*frob).encode:+60,+0x162bgolang.org/x/tools/gopls/internal/util/frob.(*frob).encode:+93,+0x15a7golang.org/x/tools/gopls/internal/util/frob.(*frob).Encode:+7,+0x17egolang.org/x/tools/gopls/internal/util/frob.Codec[...].Encode:=51,+0x1abgolang.org/x/tools/gopls/internal/cache/methodsets.(*Index).Encode:=79,+0x14dgolang.org/x/tools/gopls/internal/cache.storePackageResults:+3,+0x13cgolang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).getPackage.func1.gowrap1:+0,+0x2bruntime.goexit:+0,+0x0
golang.org/x/tools/[email protected] go1.25.2 linux/amd64 gopls.client=other,vscode (1)
Use this command to reproduce the executable:
(HOME=$(mktemp -d); GOOS=linux GOARCH=amd64 GOTOOLCHAIN=go1.25.2 go install golang.org/x/tools/[email protected] && find $HOME/go/bin -type f)
To disassemble: go tool objdump exe | less
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