Closed NinjaPerson24119 closed 7 months ago
Actually, segfaults regardless of useZeroValue option
Interesting, so this appears to be a Go 1.22 issue. I downgraded my binary to Go 1.21.7 and it works as expected.
Could you try out the latest main
branch?
go install github.com/jmattheis/goverter/cmd/goverter@e137dd132
go run github.com/jmattheis/goverter/cmd/goverter@e137dd132 [pattern]
go get github.com/jmattheis/goverter@e137dd132
I think I already fixed this one, but it isn't released yet.
Can confirm:
Awesome thanks for trying it. I'll release this on the weekend.
Describe the bug A clear and concise description of what the bug is.
when running with
-g "useZeroValueOnPointerInconsistency yes"
To Reproduce Include the input file that goverter has problems with, and describe the steps you took to trigger the bug
unfortunately I'm not sure what the root cause is, and I can't share my code as it's private
as per usual, this could be an issue on my end as well, but want to raise awareness in case something jumps out to you about a potential cause
Expected behavior A clear and concise description of what you expected to happen.
Not segfault
Partial stacktrace