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

x/tools/gopls: install failed, error obtaining buildID for go tool compile: signal: killed #57239

Closed
hongliang5316 opened this issue Dec 11, 2022 · 6 comments
Labels
FrozenDueToAge GoCommand cmd/go gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@hongliang5316
Copy link

gopls version

go: downloading golang.org/x/tools/gopls v0.10.1

go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/hl/Library/Caches/go-build"
GOENV="/Users/hl/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/hl/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/hl/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io,direct"
GOROOT="/Users/hl/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/hl/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.19.4"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/m_/fq5fc7yn6pv5vv3yhkpx8hzh0000gn/T/go-build1979055502=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

go install -v golang.org/x/tools/gopls@latest
go: downloading golang.org/x/tools/gopls v0.10.1
go: downloading golang.org/x/tools v0.4.0
go: downloading golang.org/x/tools v0.2.1-0.20221101170700-b5bc717366b2
go: downloading github.com/sergi/go-diff v1.1.0
go: downloading honnef.co/go/tools v0.3.3
go: downloading mvdan.cc/gofumpt v0.3.1
go: downloading mvdan.cc/xurls/v2 v2.4.0
go: downloading golang.org/x/mod v0.6.0
go: downloading golang.org/x/text v0.4.0
go: downloading golang.org/x/exp/typeparams v0.0.0-20220722155223-a9213eeb770e
go: downloading github.com/google/go-cmp v0.5.8
go: downloading golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e
go: downloading golang.org/x/sys v0.1.0
go: downloading golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
go: downloading golang.org/x/vuln v0.0.0-20221010193109-563322be2ea9
go: downloading github.com/BurntSushi/toml v1.2.0
go: error obtaining buildID for go tool compile: signal: killed
go: error obtaining buildID for go tool compile: signal: killed
go: error obtaining buildID for go tool compile: signal: killed
go: error obtaining buildID for go tool compile: signal: killed
go: error obtaining buildID for go tool compile: signal: killed
go: error obtaining buildID for go tool compile: signal: killed

@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Dec 11, 2022
@gopherbot gopherbot added this to the Unreleased milestone Dec 11, 2022
@hongliang5316
Copy link
Author

Replaced with v0.9.5 version can be installed successfully,
v0.10.* versions will fail to install.

@bcmills bcmills added the GoCommand cmd/go label Dec 12, 2022
@bcmills
Copy link
Contributor

bcmills commented Dec 12, 2022

signal: killed is usually what we see if a process is killed due to the system running out of memory.

@hongliang5316, is this failure consistently reproducible for you? If so, can you confirm how much free RAM you have while go install is running?

@bcmills bcmills added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Dec 12, 2022
@hongliang5316
Copy link
Author

hongliang5316 commented Dec 13, 2022

@bcmills
Thank you for your answer, it is a must now, the memory can be confirmed to be sufficient, now v0.10.1 can be installed successfully, but the operation will fail 100%

go install -v golang.org/x/tools/gopls@latest                                                                               [9:59:22]
❯ gopls version                                                                                                               [9:59:32]
[1]    94541 bus error  gopls version
❯ gopls version                                                                                                               [9:59:39]
[1]    94546 bus error  gopls version
❯ gopls version                                                                                                               [9:59:40]
[1]    94692 bus error  gopls version
❯ gopls version                                                                                                              [10:01:19]
[1]    94697 bus error  gopls version
❯ go install -v golang.org/x/tools/gopls@v0.9.5                                                                              [10:01:20]
❯ gopls version                                                                                                              [10:01:34]
golang.org/x/tools/gopls v0.9.5
    golang.org/x/tools/gopls@v0.9.5 h1:F3TO5th6TUg40FHrpxZfMkMlVaaTmByeEvylgVHGH2A=
❯ gopls version                                                                                                              [10:01:37]
golang.org/x/tools/gopls v0.9.5
    golang.org/x/tools/gopls@v0.9.5 h1:F3TO5th6TUg40FHrpxZfMkMlVaaTmByeEvylgVHGH2A=
❯

The current operation log is only bus error

go install -v golang.org/x/tools/gopls@v0.10.0                                                                             [10:04:45]
go: downloading golang.org/x/tools/gopls v0.10.0
go: downloading golang.org/x/tools v0.2.1-0.20221028182455-bd7d62852469
❯ gopls version                                                                                                              [10:04:58]
[1]    95061 bus error  gopls version
❯ gopls version                                                                                                              [10:05:07]
[1]    95068 bus error  gopls version
❯ gopls version                                                                                                              [10:05:07]
[1]    95075 bus error  gopls version

v1.10.0 also encountered the same problem

@hyangah
Copy link
Contributor

hyangah commented Dec 16, 2022

@hongliang5316 does it have sufficient memory to load and run gopls?

@hongliang5316
Copy link
Author

@hyangah
Yes, the computer has at least 3GB of free memory when running, I will spend time debugging this later, and I will give feedback in time if there are any problems, thank you.

@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Dec 17, 2022
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge GoCommand cmd/go gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. 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