-
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
runtime: M woken with no P on Windows #35391
Comments
Thanks for the report. Unfortunately I just looked through every code path and I don't see how this is possible. My best guess is that somehow This code has changed slightly on tip, but not in a way that I would expect to make a difference. I guess we will keep this issue open and see if it happens again. |
Observing this issue frequently on a program built with Go 1.16.6 running under Windows Server 2016:
/cc @ianlancetaylor |
@adriansr Since you're getting this frequently, does it reproduce with the most recent releases? (Go 1.17 and/or Go 1.18rc1.) |
Yes, just tested with Go 1.17.6:
I'm wondering why in this case the Will try to test with 1.18rc1 too. |
Same with 1.18rc1
I'll try to figure out what our app is doing at the moment of the error. This is Metricbeat from https://github.com/elastic/beats/ using a huge configuration from the user who reported the issue. |
Since we just saw an issue with the beats seccomp policy (#51315), could you verify that this reproduces with the seccomp policy disabled? Likely unrelated, but it would help to eliminate that possibility. |
Thanks @prattmic. We don't have a seccomp policy on Windows, but indeed this was our fault due to bad lifetime management of Event objects passed to Windows Performance Counter APIs. I left a write up in elastic/beats#30686 in case someone faces a similar issue. |
@adriansr , to clarify, are you saying this was caused by user code, in which case we can go ahead and close this issue? Thanks. |
@aclements , exactly, fault in user code. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not a reproducible scenario unfortunately
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This was a one-off crash seen on our moderately large windows application written in Go. It occurred within a second of startup of the application - not immediately, many of our modules/packages successfully initialised.
Apologies that I can't provide much information to narrow this down. I'm hoping the stacktrace alone is interesting - it looks to me that runtime.wirep shouldn't be called with a nil *p pointer. I suppose I can't rule out heap corruption, but we're not in the midst of seeing lots of one-off crashes in development.
What did you expect to see?
No runtime crash - application completes initialisation
What did you see instead?
Runtime crash midway through application initialisation
The text was updated successfully, but these errors were encountered: