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

Segmentation fault on 'go get' on Ubuntu LTS #15429

Closed
andreydroid opened this issue Apr 24, 2016 · 6 comments
Closed

Segmentation fault on 'go get' on Ubuntu LTS #15429

andreydroid opened this issue Apr 24, 2016 · 6 comments

Comments

@andreydroid
Copy link

  1. What version of Go are you using (go version)?
    go version xgcc (Ubuntu 4.9.3-0ubuntu4) 4.9.3 linux/amd64
  2. What operating system and processor architecture are you using (go env)?
    GOARCH="amd64"
    GOBIN=""
    GOCHAR="6"
    GOEXE=""
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOOS="linux"
    GOPATH="/home/username/GoProjects"
    GORACE=""
    GOROOT="/usr"
    GOTOOLDIR="/usr/lib/gccgo/tool"
    TERM="dumb"
    CC="gcc"
    GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
    CXX="g++"
    CGO_ENABLED="1"
  3. What did you do?
    go get github.com/linkedin/burrow
  4. What did you expect to see?
    Get an installed package
  5. What did you see instead?
    Segmentation Fault
    Core dump
@davecheney
Copy link
Contributor

It looks like your using Ubuntu's go cgo installation, was that what you intended? On Ubuntu the name of the go distribution is golang-go

On 24 Apr 2016, at 22:58, Andrey Makarov notifications@github.com wrote:

What version of Go are you using (go version)?
go version xgcc (Ubuntu 4.9.3-0ubuntu4) 4.9.3 linux/amd64

What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/username/GoProjects"
GORACE=""
GOROOT="/usr"
GOTOOLDIR="/usr/lib/gccgo/tool"
TERM="dumb"
CC="gcc"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
CXX="g++"
CGO_ENABLED="1"

What did you do?
go get github.com/linkedin/burrow

What did you expect to see?
Get an installed package

What did you see instead?
Segmentation Fault
Core dump


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

@andreydroid
Copy link
Author

Thanks for the quick response. My intention was to install the 'go' command. Looks like gccgo-go was installed by default to resolve this dependency. I've removed gccgo-go and installed golang-go instead as you suggested and the segfault went away.

@davecheney
Copy link
Contributor

Sorry about that, I know it's not ideal.

On 24 Apr 2016, at 23:28, Andrey Makarov notifications@github.com wrote:

Thanks for the quick response. My intention was to install the 'go' command. Looks like gccgo-go was installed by default to resolve this dependency. I've removed gccgo-go and installed golang-go instead as you suggested and the segfault went away.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

@bradfitz
Copy link
Contributor

So there's not a bug? Already fixed in gccgo?

@andreydroid
Copy link
Author

andreydroid commented Apr 25, 2016

The problem is still there in Ubuntu 14.04 LTS. But I was convinced that it's an issue with apt-get's recommendation for golang (gccgo-go package picked instead of golang-go) rather than a bug with Go itself.

The segfault occurs only with gccgo-go

@davecheney
Copy link
Contributor

If you do

[sudo] apt-get install golang-go

That will solve the problem. However, unless you have the trusty-backports
repo enabled, you'll get Go 1.2.1. Can I suggest that you use the tarball
from the golang.org website instead, it is well tested and known to work.

On Mon, Apr 25, 2016 at 6:13 PM, Andrey Makarov notifications@github.com
wrote:

The problem is still there in Ubuntu 14.04 LTS. But I was convinced that
it's an issue with apt-get's recommendation for golang (gccgo-go package
picked instead of golang-go) rather than a bug with Go itself.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#15429 (comment)

@golang golang locked and limited conversation to collaborators Apr 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants