json-iterator / go

A high-performance 100% compatible drop-in replacement of "encoding/json"
http://jsoniter.com/migrate-from-go-std.html
MIT License
13.42k stars 1.03k forks source link

panic (*frozenConfig).MarshalToString #646

Open zhoukangch opened 1 year ago

zhoukangch commented 1 year ago

2022-11-09 20:34:40.460 ERROR logs/recovery.go:75 [RECOVERY] 2022/11/09 - 20:34:40 panic recovered: runtime error: invalid memory address or nil pointer dereference /root/.gvm/gos/go1.19/src/runtime/panic.go:884 (0x4394f1) gopanic: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/go.opentelemetry.io/otel/sdk@v0.19.0/trace/span.go:227 (0x11cdc69) (span).End.func1: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/go.opentelemetry.io/otel/sdk@v0.19.0/trace/span.go:259 (0x11cdb32) (span).End: ??? /root/.gvm/gos/go1.19/src/runtime/panic.go:884 (0x4394f1) gopanic: ??? /root/.gvm/gos/go1.19/src/runtime/panic.go:260 (0x450315) panicmem: ??? /root/.gvm/gos/go1.19/src/runtime/signal_unix.go:835 (0x4502e5) sigpanic: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/modern-go/reflect2@v1.0.1/reflect2.go:157 (0x57f40a) (frozenConfig).Type2: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/modern-go/reflect2@v1.0.1/unsafe_map.go:53 (0x584068) (UnsafeMapType).Key: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_map.go:14 (0x600664) decoderOfMap: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:182 (0x5fa887) _createDecoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:142 (0x5fa55e) createDecoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:124 (0x5fa324) decoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_extension.go:380 (0x5fe11d) describeStruct: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_decoder.go:14 (0x6094d3) decoderOfStruct: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:176 (0x5fa9cf) _createDecoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:142 (0x5fa55e) createDecoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:124 (0x5fa324) decoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_optional.go:11 (0x607b5e) decoderOfOptional: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:184 (0x5faa11) _createDecoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:142 (0x5fa55e) createDecoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:124 (0x5fa324) decoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_extension.go:380 (0x5fe11d) describeStruct: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:18 (0x60fa6a) encoderOfStruct: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:275 (0x5fb4de) _createEncoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:245 (0x5fb07e) createEncoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:227 (0x5fae44) encoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_optional.go:18 (0x607c6c) encoderOfOptional: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:283 (0x5fb525) _createEncoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:245 (0x5fb07e) createEncoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:227 (0x5fae44) encoderOfType: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:202 (0x5fab84) (frozenConfig).EncoderOf: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:96 (0x5fa0cc) (Stream).WriteVal: ??? /root/.gvm/pkgsets/go1.19/global/pkg/mod/github.com/json-iterator/go@v1.1.10/config.go:289 (0x5f1145) (*frozenConfig).MarshalToString: ???