PennState/additional-properties

additional-properties is not thread-safe

Closed this issue · 0 comments

fatal error: concurrent map writesgoroutine 45 [running]:
runtime.throw(0xc8809d, 0x15)
	runtime/panic.go:774 +0x72 fp=0xc00070e050 sp=0xc00070e020 pc=0x42e492
runtime.mapassign_faststr(0xb7c0c0, 0xc00010a120, 0xc00003ba30, 0x7, 0xc0003625a0)
	runtime/map_faststr.go:211 +0x417 fp=0xc00070e0b8 sp=0xc00070e050 pc=0x412ff7
github.com/PennState/additional-properties/pkg/ap.(*additionalPropertiesExtension).DecorateDecoder(0xc0000313c0, 0xf115e0, 0xc00010be30, 0xef1ce0, 0xc000343b00, 0xef1ce0, 0xc000343b00)
	github.com/PennState/additional-properties@v0.10.0/pkg/ap/jsoniter.go:87 +0x64f fp=0xc00070e1e8 sp=0xc00070e0b8 pc=0x7e39df
github.com/json-iterator/go.decoderOfType(0xc00070e2a8, 0xf115e0, 0xc00010be30, 0xc78a80, 0x1)
	github.com/json-iterator/go@v1.1.8/reflect.go:130 +0x1b6 fp=0xc00070e250 sp=0xc00070e1e8 pc=0x7bb756
github.com/json-iterator/go.decoderOfSlice(0xc0003f0de0, 0xf11540, 0xc00071a880, 0x0, 0x0)
	github.com/json-iterator/go@v1.1.8/reflect_slice.go:12 +0x105 fp=0xc00070e2e0 sp=0xc00070e250 pc=0x7cb345
github.com/json-iterator/go._createDecoderOfType(0xc0003f0de0, 0xf11540, 0xc00071a880, 0xc0004094f8, 0xc0000aeea0)
	github.com/json-iterator/go@v1.1.8/reflect.go:180 +0x4ff fp=0xc00070e370 sp=0xc00070e2e0 pc=0x7bbe3f
github.com/json-iterator/go.createDecoderOfType(0xc0003f0de0, 0xf11540, 0xc00071a880, 0x0, 0x0)
	github.com/json-iterator/go@v1.1.8/reflect.go:142 +0x10b fp=0xc00070e3c0 sp=0xc00070e370 pc=0x7bb8cb
github.com/json-iterator/go.decoderOfType(0xc0003f0de0, 0xf11540, 0xc00071a880, 0xc78a80, 0x1)
	github.com/json-iterator/go@v1.1.8/reflect.go:124 +0x78 fp=0xc00070e428 sp=0xc00070e3c0 pc=0x7bb618
github.com/json-iterator/go.describeStruct(0xc00070e9e8, 0xf115e0, 0xc0004fa390, 0x127fc)
	github.com/json-iterator/go@v1.1.8/reflect_extension.go:380 +0xa4f fp=0xc00070e638 sp=0xc00070e428 pc=0x7bfddf
github.com/json-iterator/go.decoderOfStruct(0xc00070e9e8, 0xf115e0, 0xc0004fa390, 0x0, 0x0)
	github.com/json-iterator/go@v1.1.8/reflect_struct_decoder.go:14 +0xb6 fp=0xc00070e850 sp=0xc00070e638 pc=0x7cc0a6
github.com/json-iterator/go._createDecoderOfType(0xc00070e9e8, 0xf115e0, 0xc0004fa390, 0xc0000c9168, 0xc0000aeea0)
	github.com/json-iterator/go@v1.1.8/reflect.go:176 +0x4aa fp=0xc00070e8e0 sp=0xc00070e850 pc=0x7bbdea
github.com/json-iterator/go.createDecoderOfType(0xc00070e9e8, 0xf115e0, 0xc0004fa390, 0x0, 0x0)
	github.com/json-iterator/go@v1.1.8/reflect.go:142 +0x10b fp=0xc00070e930 sp=0xc00070e8e0 pc=0x7bb8cb
github.com/json-iterator/go.decoderOfType(0xc00070e9e8, 0xf115e0, 0xc0004fa390, 0x0, 0x0)
	github.com/json-iterator/go@v1.1.8/reflect.go:124 +0x78 fp=0xc00070e998 sp=0xc00070e930 pc=0x7bb618
github.com/json-iterator/go.(*frozenConfig).DecoderOf(0xc0000c0e60, 0xf114a0, 0xc0004fa2a0, 0xf114a0, 0xc0004fa2a0)
	github.com/json-iterator/go@v1.1.8/reflect.go:114 +0x111 fp=0xc00070ea20 sp=0xc00070e998 pc=0x7bb491
github.com/json-iterator/go.(*Iterator).ReadVal(0xc00060c2d0, 0xc255a0, 0xc000406b40)
	github.com/json-iterator/go@v1.1.8/reflect.go:72 +0x1ce fp=0xc00070ea90 sp=0xc00070ea20 pc=0x7bb10e
github.com/json-iterator/go.(*frozenConfig).Unmarshal(0xc0000c0e60, 0xc00067e000, 0x569, 0x580, 0xc255a0, 0xc000406b40, 0x0, 0x0)
	github.com/json-iterator/go@v1.1.8/config.go:348 +0xd2 fp=0xc00070eb10 sp=0xc00070ea90 pc=0x7b11f2
github.com/PennState/scim-client/pkg/scim.(*User).UnmarshalJSON(0xc000406b40, 0xc00067e000, 0x569, 0x580, 0x7f6d3d6adc88, 0xc000406b40)
	github.com/PennState/scim-client@v0.4.0/pkg/scim/user.go:127 +0x6c fp=0xc00070eb60 sp=0xc00070eb10 pc=0x7eb74c