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
x/tools/go/loader: data race in Config.Load #20718
Comments
Just to be sure, what version of |
Should be the latest. This laptop is only 3 weeks old. I can check when I'm
at my computer later.
…On Sun, Jun 18, 2017, 9:00 AM Daniel Martí ***@***.***> wrote:
Just to be sure, what version of go/loader is this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20718 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADCcyAmF27bq30lArKS6olLoFRzmrqUoks5sFR95gaJpZM4N9ZUy>
.
|
@griesemer and @alandonovan, this looks like legit usage. Flagging Go 1.9 at least until we understand what's at fault. It might be in go/build or go/types in std. |
Thanks for the report, Nate. I can reproduce the race, and though I haven't yet identified the root cause, the problem clearly lies in go/loader, not in go/types or any other std package. |
The root cause (thanks Heschi!) is that go/loader is calling |
"benign data race" |
Yes, a benign data race: an assignment |
CL https://golang.org/cl/46071 mentions this issue. |
Please answer these questions before submitting your issue. Thanks!
What did you do?
create these two tests in a _test.go file:
then run
go test -race
What did you expect to see?
Tests pass.
What did you see instead?
System details
The text was updated successfully, but these errors were encountered: