-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: "negative WaitGroup counter" panic in diagnoseChangedViews #71177
Comments
I can't explain this. Calls to Add and Done are strictly paired and the Done always happens after the Add. There are no other salient uses of the WaitGroup. Paging compiler and runtime folks. @prattmic |
I agree, this use of WaitGroup looks straightforward and bug free to me. |
I think the symptom must indicate one of these causes:
|
I don't know what to do with this, so moving it to the backlog rather than next release milestone. |
I think we should send it to the runtime folks, since there's nothing we can do in gopls. |
This came from the same report as #71355, which is similarly inexplicable. In both cases, it was a one-off report. |
Issue created by stacks.
This stack
OKWeGA
was reported by telemetry:crash/crash
runtime.gopanic:+69
sync.(*WaitGroup).Add:+19
sync.(*WaitGroup).Done:=89
golang.org/x/tools/gopls/internal/server.(*server).diagnoseChangedViews.func1:+16
golang.org/x/tools/gopls/internal/server.(*server).diagnoseChangedViews.gowrap1:+16
runtime.goexit:+0
The text was updated successfully, but these errors were encountered: