New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoding/json: occasional panic while encoding json #25608
Comments
Go 1.8 is quite old. Can you check if it also happens with 1.10? |
Please fill the complete issue template. Thanks. |
runtime error: invalid memory address or nil pointer dereference
|
Thank you. Unfortunately, we still do not have enough info to debug this. You need to fill the complete issue template and try with 1.10.2 and see if it still crashes with it. We need a full working program with the steps to reproduce, not just a snippet. In your code, it is not known what is the value of the Thanks. |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.8
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
What did you see instead?
panic info:
runtime error: invalid memory address or nil pointer dereference
goroutine 293881879 [running]:
xxxxx.glob..func2.1.1(0xf7e7a0, 0xc4209d0000, 0xf7f1e0, 0xc4208888d0)
/home/...../xxx.go:52 +0x15b
panic(0xb23660, 0xfa5c00)
/usr/local/go1.8/src/runtime/panic.go:489 +0x2cf
encoding/json.(*encodeState).marshal.func1(0xc421b15658)
/usr/local/go1.8/src/encoding/json/encode.go:288 +0x159
panic(0xb23660, 0xfa5c00)
/usr/local/go1.8/src/runtime/panic.go:489 +0x2cf
encoding/json.(*encodeState).string(0xc420aa89a0, 0x0, 0xb, 0x1, 0xb)
/usr/local/go1.8/src/encoding/json/encode.go:887 +0x86
encoding/json.stringEncoder(0xc420aa89a0, 0xae7980, 0xc42041dc50, 0x98, 0xc420410100)
/usr/local/go1.8/src/encoding/json/encode.go:608 +0x214
encoding/json.(*mapEncoder).encode(0xc420497260, 0xc420aa89a0, 0xb1e380, 0xc421479a38, 0x195....
The text was updated successfully, but these errors were encountered: