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
TestMSSQLCreateInsertDelete fails with "runtime error: cgo argument has Go pointer to Go pointer" #65
Comments
Am I reading this right that it's a bug in cgo that has since been fixed? I am guessing we'll see it in the next release of Go. golang/go#14483 In the meantime, I can still use this library with the Thank you |
Kind of, but not really. I am using current tip that has golang/go#14483 fixed, but I see the above crash just the same. The crash is inside of CGO runtime checker that has been introduce in go1.6 (see https://golang.org/doc/go1.6#cgo for details). And while golang/go#14483 is based on this issue, these two issues are not exactly the same. Perhaps there is more to learn from my crash on the tip for the CGO runtime checker, but I don't have time to chase that. I will try to change my code to silence it instead. I must also point that CGO runtime checker is complaining here for a reason - we have Go memory block that is written by external code long after call into external code returned. This breaks one of new CGO safety rules. But windows syscalls break these rules too, and Go does not have any solution for that yet. A lot of windows programs will break, if Go runtime will start using tricks that CGO "safety" rules are trying to allow. So I am not sure I will employ "proper" solution just yet. I don't know what needs to be done for windows yet.
Yes. That does the trick. But inconvenient. Alex |
To reproduce the issue:
It seems like new Go cgo function parameter checker is unhappy with something.
Alex
The text was updated successfully, but these errors were encountered: