Skip to content

enconter panic when calling unmarshal() #495

@PearsonCHN

Description

@PearsonCHN

panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x88 pc=0xa0cc93]
--
goroutine 698 [running]:
github.com/goccy/go-json/internal/decoder.(*structDecoder).Decode(0x0, 0xc0019a8100, 0x1e0?, 0xc000faa000?, 0xc000fca000) 	/builds/worker/vendor/github.com/goccy/go-json/internal/decoder/struct.go:760 +0x3f3
github.com/goccy/go-json.unmarshal({0xc000faa000?, 0xc0016ad428?, 0xb287a6?}, {0x1e42420, 0xc000fca000}, {0x0, 0x0, 0x59?}) 	/builds/worker/vendor/github.com/goccy/go-json/decode.go:47 +0x186
github.com/goccy/go-json.Unmarshal(...) 	/builds/worker/vendor/github.com/goccy/go-json/json.go:276

go-json version in go.mod is v0.9.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions