-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime/race: TestRaceRange is not always detected as a race #10589
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
This is a bug in race runtime. Fixed upstream: |
It would be nice to bring in a new copy of the race runtime for Go 1.6, whether or not #8653 is fixed. |
We need to resolve #8653. The project will benefit is not only me can rebuild the runtime. And even for me it is painful currently. I don't access to any windows nor darwin machines after the move. |
I can answer concrete questions about the build system & gomote, but not "why doesn't the race detector build with gomote?". |
It seems to me that TestRaceRange should always be detected as a race. The code is:
The actual execution is
and the race is between the x = v and the v = a[1].
When Austin tweaked the goroutine scheduler behavior, the race detector stopped detecting this race. Adding a Gosched brought the detection of the race back, but it seems like it should be detected even without a Gosched.
@aclements
The text was updated successfully, but these errors were encountered: