Go cmd procs hanging in windows after latest update

After latest windows update go cli commands just hang there eating CPU never finishing.
I’ve tried to upgrade to latest 1.15.4, repair install, uninstall -> reinstall. nothing works.

running on windows 10

Adding screenshot
image

I can’t reproduce your issue because you posted an image. POST TEXT.

I would expect output like this:

>go build -x
WORK=C:\Users\petrus\AppData\Local\Temp\go-build237438923
mkdir -p $WORK\b001\

WORK is in a temporary directory obtained from the GetTempPathW function:

GetTempPathW function (fileapi.h)

https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppathw

The GetTempPath function checks for the existence of environment variables in the following order and uses the first path found:

  1. The path specified by the TMP environment variable.
  2. The path specified by the TEMP environment variable.
  3. The path specified by the USERPROFILE environment variable.
  4. The Windows directory

Note that the function does not verify that the path exists, nor does it test to see if the current process has any kind of access rights to the path.

My TMP and TEMP environmemnt variables are

>set TMP
TMP=C:\Users\petrus\AppData\Local\Temp
>set TEMP
TEMP=C:\Users\petrus\AppData\Local\Temp

As expected, they include my user name “petrus”.

Your “picture” is very peculiar. Your user name appears to be “ `”.

Post, AS TEXT, the commands and output on your system for

>set TMP

and

>set TEMP

Thanks for the reply, the reason my pic had a hidden user name is because it’s my company ID which I don’t want to post here on the forum.

The build command does not post any further output on console and hangs on after the WORK var is set, eating CPU and doing nothing

I tried to set my TMP and TEMP vars to Temp folder, but the process still hangs.

Also other commands such as go run and go clean also hang.

You mention beeing on a companies computer, do you have access to more detailed statistics about the execution context? What is it that consumes all the additional CPU?

Can you see any filehandles owned by go?

Perhaps some virus scanner or internet security suite enforced by your company?

I’ve experienced various problems with those security suites and anti virus software and compiler toolchains.

You mention beeing on a companies computer, do you have access to more detailed statistics about the execution context? What is it that consumes all the additional CPU?

  • I can’t see any work done other than the go.exe task taking up CPU - tried to do some windows debug investigating but couldn’t find any other info

Can you see any filehandles owned by go?

  • Where can I find this info?

Perhaps some virus scanner or internet security suite enforced by your company?

  • This is a probable cause, asked around in my company and no one was reporting this issue but it could still be.

With the help and under supervision of your companies IT department you should temporarily disable the AV tooling/security suite and try to build a small program that is known to cause the halting go compiler.

If it works without the AV/ISS, then your IT department has to figure out how and what to whitelist, as this is rather specific to the AV/ISS.