-
Notifications
You must be signed in to change notification settings - Fork 18k
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/gopls: data race in memoize #35995
Comments
Thanks for the report! /cc @ianthehat @heschik for |
No problem. Note the note on version details above, however. i.e. might have been fixed subsequently:
|
Every time I make a concurrency change in response to a review comment I break something :( Fix is simple. |
Change https://golang.org/cl/210077 mentions this issue: |
Late into CL 206879 I started nulling out a handle's function when the handle finished running. That invalidated a previous assumption that the field was immutable. Fix the assumption, and since the case of having multiple computations in flight is at least a little bit possible, try harder to avoid duplicate work. Fixes golang/go#35995. Change-Id: I993fbf1653a219e329bbe0d1a6e39115cce7258f
In our fork of tools at github.com/myitcvforks/tools we also cherry-pick the commit from CL 210077 which contains a fix for the data races (and hence CI failures) we reported as part of: golang/go#35995
In our fork of tools at github.com/myitcvforks/tools we also cherry-pick the commit from CL 210077 which contains a fix for the data races (and hence CI failures) we reported as part of: golang/go#35995
Late into CL 206879 I started nulling out a handle's function when the handle finished running. That invalidated a previous assumption that the field was immutable. Fix the assumption, and since the case of having multiple computations in flight is at least a little bit possible, try harder to avoid duplicate work. Fixes golang/go#35995. Change-Id: I993fbf1653a219e329bbe0d1a6e39115cce7258f
In our fork of tools at github.com/myitcvforks/tools we also cherry-pick the commit from CL 210077 which contains a fix for the data races (and hence CI failures) we reported as part of: golang/go#35995
In our fork of tools at github.com/myitcvforks/tools we also cherry-pick the commit from CL 210077 which contains a fix for the data races (and hence CI failures) we reported as part of: golang/go#35995
What version of Go are you using (
go version
)?Note that
github.com/myitcvforks/tools v0.0.0-20191119111301-0222b4b716c6
andgithub.com/myitcvforks/tools/gopls v0.0.0-20191119111301-0222b4b716c6
correspond to thex/tools
95cb2a1 with 80313e1 cherry picked on top. Reason being, we can't move beyond 95cb2a1 because otherwise we start tripping over the mistmatched versions problem described in #35114Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Was running a
govim
test and I spotted a data race:What did you expect to see?
No data race 😄
What did you see instead?
As above
cc @stamblerre
The text was updated successfully, but these errors were encountered: