FATAL error:segmentation violation when marshal map
sensejoy opened this issue · 1 comments
sensejoy commented
go version: go1.18.3
test code:
package main
import (
"github.com/json-iterator/go"
)
func main() {
var req = map[string]interface{}{
"a": "b",
}
jsoniter.Marshal(req)
}
got:
unexpected fault address 0xb01dfacedebac1e
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x105b8df]
...