Open
Description
#!stacks
"runtime.sigpanic" && "abi.(*Type).Kind" && "reflect.unpackEface" && "reflect.ValueOf"
Issue created by stacks.
More memory corruption:
// unpackEface converts the empty interface i to a Value.
func unpackEface(i any) Value {
e := (*abi.EmptyInterface)(unsafe.Pointer(&i))
// NOTE: don't read e.word until we know whether it is really a pointer or not.
t := e.Type
if t == nil {
return Value{}
}
f := flag(t.Kind()) <-- panics because t is nil
if t.IfaceIndir() {
f |= flagIndir
}
return Value{t, e.Data, f}
}
This stack H6zSwQ
was reported by telemetry:
crash/crash
runtime.throw:+9
runtime.sigpanic:+16
internal/abi.(*Type).Kind:=197
reflect.unpackEface:=164
reflect.ValueOf:=2980
encoding/json.(*decodeState).unmarshal:+1
encoding/json.Unmarshal:+11
golang.org/x/tools/internal/jsonrpc2.wireVersionTag.UnmarshalJSON:+2
golang.org/x/tools/internal/jsonrpc2.(*wireVersionTag).UnmarshalJSON:+0
encoding/json.(*decodeState).literalStore:+10
encoding/json.(*decodeState).value:+31
encoding/json.(*decodeState).object:+163
encoding/json.(*decodeState).value:+17
encoding/json.(*decodeState).unmarshal:+10
encoding/json.Unmarshal:+11
golang.org/x/tools/internal/jsonrpc2.DecodeMessage:+2
golang.org/x/tools/internal/jsonrpc2.(*headerStream).Read:+44
golang.org/x/tools/internal/jsonrpc2.(*conn).run:+4
golang.org/x/tools/internal/jsonrpc2.(*conn).Go.gowrap1:+0
golang.org/x/tools/gopls@v0.18.1 go1.24.3 darwin/arm64 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)