Skip to content
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

cmd/go: go install -v -i ... hangs indefinitely with Go 1.15.1 but not 1.13.4 #41207

Closed
bullet45 opened this issue Sep 3, 2020 · 5 comments
Closed
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@bullet45
Copy link

bullet45 commented Sep 3, 2020

What version of Go are you using (go version)?

$ go version
go version go1.15.1 windows/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=C:\Google\GOPATH\bin
set GOCACHE=C:\Users\Will2010\AppData\Local\go-build
set GOENV=C:\Users\Will2010\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Google\GOPATH\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Google\GOPATH
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Google\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Google\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
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:\Users\Will2010\AppData\Local\Temp\go-build443042886=/tmp/go-build -gno-record-gcc-switches

What did you do?

In Powershell
go get -v -u gopkg.in/couchbase/gocb.v2

Then I tried
go get -v -u -d gopkg.in/couchbase/gocb.v2
and all packages were downloaded and cursor returned successfully

go install -v -i ...
Hangs indefinitely

What did you expect to see?

download and install packages

What did you see instead?

hangs after download

@davecheney
Copy link
Contributor

Is there any anti virus or firewall software that may be interfering?

@bullet45
Copy link
Author

bullet45 commented Sep 3, 2020

I looked and I don't think so. Plus, I ended up going back a couple versions to
go1.13.4.windows-amd64.msi

And I have NO problems now. Everything is working successfully now including install with go get ...
So I have to believe it is an issue with
go version go1.15.1 windows/amd64
and
go1.15.1.windows-amd64.msi

@dmitshur
Copy link
Contributor

dmitshur commented Sep 3, 2020

go install -v -i ... means to install packages matching the import path pattern ..., which matches all packages. Is that what you were trying to do, or did you mean to install fewer packages (perhaps just the ones in a specific project)?

Maybe it matched many packages and was taking a long time to install them. What was CPU usage? What happens if you run go list ...?

Edit: Or was it go get -v -u gopkg.in/couchbase/gocb.v2 that hung? It's a little hard to tell. Can you please clarify what's the smallest set of commands that reproduces the issue, and provide complete output?

/cc @bcmills @jayconrod @matloob per owners.

@dmitshur dmitshur added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Sep 3, 2020
@dmitshur dmitshur added this to the Backlog milestone Sep 3, 2020
@dmitshur dmitshur changed the title Go Get cmd/go: go install -v -i ... hangs indefinitely with Go 1.15.1 but not 1.13.4 Sep 3, 2020
@cherrymui
Copy link
Member

Maybe related to #36492 ? Could you try setting environment variable GODEBUG=asyncpreemptoff=1 ?

@bullet45
Copy link
Author

bullet45 commented Sep 4, 2020

This is a brand new install on a new laptop and yes I meant to "install" all of the packages I got. (...)
At any rate, I'm working on 1.13 now - and don't have time to debug this. I'll upgrade again with a newer version later. This ticket may be closed.

@bullet45 bullet45 closed this as completed Sep 4, 2020
@golang golang locked and limited conversation to collaborators Sep 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants