-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
runtime/race: race detector misses when copying into an interface #12664
Labels
Milestone
Comments
jbardin
changed the title
runtime/race: race detector misses when copying into an
runtime/race: race detector misses when copying into an interface
Sep 17, 2015
interface{}
Just tested on tip:
produces:
go version devel +d5fe165 Fri Sep 18 07:15:52 2015 +0000 linux/amd64 |
But it in fact reproduces on the provided program. It seems to matter whether a is a global or not. |
CL https://golang.org/cl/14752 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The following is missed by the race detector
But changing the fmt call to
fmt.Printf
where thea
value is copied into the format string triggers a raceThe text was updated successfully, but these errors were encountered: