-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Data race detection error error occurred #1390
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
Comments
Right Bytes : Bad Bytes: This happens the second time I call this function, the bytes will be modified The above code is an anonymous function, so it is not called continuously |
Please make "minimal reproducible example". |
I find this is XORM issue. sql.RawBytes must not be used after |
I reported it to xorm/xorm#2217. |
Issue description
When I use XORM, there is a data competition detection error.
The underlying database driver of XORM is this project.
Example code
In the above code, go fun is the goroutine I use to test and open according to the basic understanding of sql.Table(src). Find(&result) This code should be returned after the query, not asynchronous, then multiple fmt.Println(result[0]["cache"]). The field will be changed (field type[]byte). The result after the change is about the residual data of the previous field, but there is no data error in the previous field.
Error log
The text was updated successfully, but these errors were encountered: