#!stacks
"sigpanic" && "reflect.(*rtype).common" && "reflect.(*rtype).Implements"
func (t *rtype) Implements(u Type) bool {
if u == nil {
panic("reflect: nil type passed to Type.Implements")
}
if u.Kind() != Interface {
panic("reflect: non-interface type passed to Type.Implements")
}
return implements(u.common(), t.common()) // <--- panics because u is nil (or SP is corrupt), but u cannot be nil
}
func (t *rtype) common() *abi.Type {
return &t.t // <--- panic
}
golang.org/x/tools/gopls@v0.19.1 go1.24.4 darwin/arm64 other,vscode (1)
Issue created by stacks.
This stack
2veB9Awas reported by telemetry:crash/crashruntime.throw:+9,+0x37runtime.sigpanic:+33,+0x223reflect.(*rtype).common:=324,+0x58reflect.(*rtype).Implements:+7,+0x44encoding/json.newTypeEncoder:+5,+0x73encoding/json.typeEncoder:+23,+0x15bencoding/json.typeFields:+206,+0x567encoding/json.cachedTypeFields:+4,+0xdbencoding/json.(*decodeState).object:+48,+0x20fencoding/json.(*decodeState).value:+17,+0x3fencoding/json.(*decodeState).unmarshal:+10,+0xffencoding/json.(*Decoder).Decode:+24,+0x117golang.org/x/tools/go/packages.(*golistState).createDriverResponse:+32,+0x227golang.org/x/tools/go/packages.goListDriver:+71,+0x6c3golang.org/x/tools/go/packages.defaultDriver.func1:+1,+0x43golang.org/x/tools/go/packages.callDriverOnChunks.func1:+1,+0x5fgolang.org/x/sync/errgroup.(*Group).add.func1:+32,+0x87