Skip to content

runtime: hangs on windows with golang >= 1.14 #48059

Open
@suikast42

Description

@suikast42

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 Output
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\IDE\Programme\go\cache
set GOENV=C:\IDE\Programme\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\IDE\Programme\go\path
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\IDE\Programme\go\go114
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\IDE\Programme\go\go114\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\IDE\Projects_Git\playground\go\examples\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\IDE\Programme\go\tmp\go-build087442934=/tmp/go-build -gno-record-gcc-switches

What did you do?

create a simple hello world program
hello

  • main
    • main.go

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 Output

C:\IDE\Projects_Git\playground\go\hello\main>go run -x main.go
WORK=C:\IDE\Programme\go\tmp\go-build432668794

After this output the run command hangs

What I have testet?

  1. Deinstall MCAfee
  2. Run command as Administrator
  3. Set all path variables to C:\IDE... ( this area is not touched from MCAfee )
  4. Testest not working versions 1.14 - 1.17

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windowscompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Triage Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions