-
Notifications
You must be signed in to change notification settings - Fork 1k
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
it will panic fault when Marshal map (go version 1.18) #608
Comments
We are also seeing the same issue. Here is a stack trace:
https://github.com/kubeguard/guard/runs/5581979741?check_suite_focus=true |
This was fixed in golang/go#48238 (comment) After updating the versions, our tests are passing. Thanks! |
Seeing this as well. |
json-iterator <=1.1.11 + go 1.17 ok solution go get -u github.com/json-iterator/go |
same fault in my project 😔 |
The bug in question is json-iterator/go#608
The bug in question is json-iterator/go#608
The bug in question is json-iterator/go#608
our service json-iterator=1.1.12 and go=1.18, but panic still occurs occasionally.
|
json-iterator=1.1.12 and go=1.19 -> works |
|
go version 1.20 and json-iterator = 1.1.11 occurs, but json-iterator=1.1.12 fixed it . |
need to update reflect2: |
go get -u github.com/json-iterator/go solution for me. |
func TestMarshal(t *testing.T) {
m := make(map[string]string)
m["a"] = "sss&aaa"
s, _ := jsoniter.Marshal(m)
fmt.Println(string(s))
}
//output
=== RUN TestMarshal
unexpected fault address 0x0
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x46327f]
goroutine 6 [running]:
runtime.throw({0x5828e5?, 0xc000078ce8?})
/usr/local/go/src/runtime/panic.go:992 +0x71 fp=0xc000078c18 sp=0xc000078be8 pc=0x434fd1
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:825 +0x305 fp=0xc000078c68 sp=0xc000078c18 pc=0x44afc5
The text was updated successfully, but these errors were encountered: