-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: hangs on windows with golang >= 1.14 #48059
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
Comments
This could be an issue with async preemtion of goroutines added in go1.14. Try running your binaries with |
That's works as expected. I found out that's works as well if I set GOMAXPROCS=1. What is the better workaround for that issue? |
Hi, I suggest you to keep this issue open for the Go team to see. Async preemtion not working properly is for sure a bug (in the runtime or OS or somewhere else) and people should not be expected to fall back to workarounds. |
Agree. My bad ;-) |
Maybe related to #36492. @suikast42 Is it always hang or sometimes? Would it be possible for you to capture the program's state when it hangs? |
Somtimes it works :-D
Sure. If you tell me how. |
It could well be the same. #36492 is still broken for me as you can see from #36492 (comment).
@suikast42 what I do is I use You can get Alex |
Here is a dump from Process Explorer. I hope that is what you mean. |
@suikast42 I did not expect you to collect Process Explorer process dump. I will let @cherrymui reply what he expected you to collect. Thank you. Alex |
@mknyszek @cherrymui @alexbrainman |
Does this issue reproduce with the latest release?
Yes.
Works with v <1.14. Last working version is 1.13.15
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
create a simple hello world program
hello
go run main.go runs every time as expected ( with go v 1.13.15)
But with go v > 1.14 it runs rarely. That means 99% of the cases it hangs.
After the hanging I can't interrupt the cmd window with Ctrl+C. So I must kill the cmd process. over the task manager.
I had an eye to the MCAfee Scanner. I let it deinstall from our IT-Department for testing. But the result was the same. Nothing changed.
Windows defender is disabled.
That's my output with the -x flag
go run -x main.go
OutputAfter this output the run command hangs
What I have testet?
The text was updated successfully, but these errors were encountered: