cmd/go: go run hangs for a few minutes from windows command line #22055
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\dglass\go
set GORACE=
set GOROOT=C:\go
set GOTOOLDIR=C:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\dglass\AppData\Local\Temp\go-build241023583=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
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
Windows 7 Enterprise
Service Pack 1
64-bit operating system
Intel(R)Core(TM)i5-5300U CPU @2.30GHz 2.30 GHz
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
From the Windows command line (CMD), I used go run to run a hello world program like https://play.golang.org/p/v3rrZLwEUC
go run hello.go
What did you expect to see?
I expected the program to return to the command line immediately.
What did you see instead?
The program hung for a few minutes after it appeared to be done (e.g. after the last output was written).
And, it could not be interrupted with Control-C.
Note that the problem (delay) does not seem to occur with a compiled version of the program, just with go run.
The text was updated successfully, but these errors were encountered: