Closed MarkSonghurst closed 4 years ago
Thank you for reporting this failure.
I doubt the error is race related, but maybe they've improved pointer checking in newer Go versions..?
That is correct. Go compiler now is more strict with unsafe package usage.
I will investigate this issue when I have some free time.
Alex
@MarkSonghurst I just pushed
https://github.com/alexbrainman/odbc/tree/fix144
branch for you to test it. Cam you, please, verify and let me know, And I will merge into master.
Thank you.
Alex
@alexbrainman Thank you for the fast turnaround.
I can confirm the issue is now resolved in branch fix144
Thanks again.
Thank you for the fast turnaround.
No worries.
I can confirm the issue is now resolved in branch
fix144
Thanks for checking. The fix should be on master now.
Alex
Hi When I build my Linux program using the master branch with
go build --race
I'm constantly getting an fatal error. I've tried older branches of the package back to 2018 but they exhibit the same error. I've not had time to try an older version of Go, I'm usinggo version go1.14.2 linux/amd64
The program appears to run fine when built without race detection. I doubt the error is race related, but maybe they've improved pointer checking in newer Go versions..?
According to the trace The crash is occurring within the call to
rows.Next()
my code line 53. I've added a comment in my code snippet below:Looking at the odbc package code, the unsafe pointer conversion being reported by Go is on column.go:144
https://github.com/alexbrainman/odbc/blob/fd264d0ff3809a946737df4b1a0cef2a0baf6c57/column.go#L144
Sorry, this is too low level for me to offer any suggestions in how to fix this.