There are a number of open bugs that mention the same error that you are seeing
https://github.com/golang/go/issues?q=is%3Aissue+is%3Aopen+fatal+error%3A+found+bad+pointer+in+Go+heap+%28incorrect+use+of+unsafe+or+cgo%3F%29 So you could try seeing if the issue reproduces with a different go version, say, go 1.19. (per https://github.com/golang/go/issues/64781 ) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/74d9b807-8d28-4d3e-88e9-1060190f8f6bn%40googlegroups.com.