-
Notifications
You must be signed in to change notification settings - Fork 18k
Go test/generate/get running endlessly #43192
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 isn't enough information to figure out what's going on. Please provide a way to reproduce the hang. |
I have this issue on my business computer - I tried to reproduce on my private PC but there everything works as expected. I try to investigate with our IT department what has changed and might have caused this. Anyway could you point me to some information how I can analyze this in more detail? Is there a way that go itself is writing trace files or how I can obtain any other information about it? go test -trace does not write anything as it is the runtime which hangs, not my tests. |
you could try |
sorry for my limited capability to express the problem: |
If many go commands hang forever, that sounds like something is very wrong at a low level, perhaps with the system. Maybe try using a tool like cc @ianlancetaylor in case he has other ideas, but I still think this issue needs to be labelled WaitingForInfo because I don't see any actionable bug. |
If you can, try disabling your antivirus and see if that helps. |
only thread shown there which looks a little different is
searching for "mfehcinj" showed this result: #42528 |
so it seems to be caused by McAfee - but why does it only affect go, everything else is working fine... |
Antivirus software have a track record of not liking Go programs at all, perhaps because of the runtime and unique compiler. There is not much you can do about it other than report the false positives, because there is nothing wrong with the binaries. |
I finally could verify it works fine again once the virus scanner got disabled. Now the issue is reported to the vendor and I'm waiting for a new version. Thanks for the support! |
As per McAfee this issue is realted to usage of WSL/WSL2... |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go test in a folder not related to go does just output: package .: no Go files in
go test in a folder with go files just runs endlessly
same with go generate
same with go get
windows task manager -> "Analyze Wait chain" -> Displays go.exe is waithing for some of iths own threads endlessly
What did you expect to see?
something, at least an error message
What did you see instead?
nothing - it just runs endless
The text was updated successfully, but these errors were encountered: