gccgo-go segfaults, something related to alternatives

Bug #1275620 reported by Dave Cheney
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gccgo-go (Ubuntu)
Invalid
High
Unassigned
Trusty
New
Undecided
Unassigned
Utopic
Won't Fix
Undecided
Unassigned

Bug Description

When executed via $PATH, ie

   $ go

The command segfaults during an early mmap operation

futex(0x3fffabd2a49c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("go", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
mmap(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = -1 ENODEV (No such device)

When executed with the full command line, ie

  $ /usr/bin/go

Everything works and the command is hunky dory

open("/usr/bin/go", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
mmap(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3fff7c563000
munmap(0x3fff7c563000, 4096) = 0

/usr/bin/go is redirected via an alternative

ubuntu@winton-02:~$ stat $(which go)
  File: ‘/usr/bin/go’ -> ‘/etc/alternatives/go’
  Size: 20 Blocks: 0 IO Block: 4096 symbolic link
Device: 800h/2048d Inode: 36858 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2014-02-03 04:59:56.513098574 +0000
Modify: 2014-02-03 04:58:26.423103413 +0000
Change: 2014-02-03 04:58:26.443103413 +0000
 Birth: -

Revision history for this message
James Page (james-page) wrote :

This should be resolved once the next gccgo-go upload builds across all archs with 4.9 as default gccgo.

Changed in gccgo-go (Ubuntu):
importance: Undecided → High
status: New → In Progress
Revision history for this message
Dave Cheney (dave-cheney) wrote : Re: [Bug 1275620] Re: gccgo-go segfaults, something related to alternatives

Oh dear, same problem with gccgo-go 4.9

ubuntu@juju-hp-machine-1:~$ go get -v launchpad.net/juju-core/...
Segmentation fault (core dumped)

full path and it works

ubuntu@juju-hp-machine-1:~$ /usr/bin/go get -v launchpad.net/juju-core/...
launchpad.net/juju-core (download)

ii gccgo 4:4.9-1ubuntu4 amd64
              Go compiler, based on the GCC backend
ii gccgo-go 1.2-0ubuntu5 amd64
              Go tool for use with gccgo

On Tue, Feb 18, 2014 at 1:28 AM, James Page <email address hidden> wrote:

> This should be resolved once the next gccgo-go upload builds across all
> archs with 4.9 as default gccgo.
>
> ** Changed in: gccgo-go (Ubuntu)
> Importance: Undecided => High
>
> ** Changed in: gccgo-go (Ubuntu)
> Status: New => In Progress
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1275620
>
> Title:
> gccgo-go segfaults, something related to alternatives
>
> Status in "gccgo-go" package in Ubuntu:
> In Progress
>
> Bug description:
> When executed via $PATH, ie
>
> $ go
>
> The command segfaults during an early mmap operation
>
> futex(0x3fffabd2a49c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
> open("go", O_RDONLY|O_CLOEXEC) = 3
> fcntl(3, F_SETFD, FD_CLOEXEC) = 0
> mmap(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = -1 ENODEV (No such
> device)
>
> When executed with the full command line, ie
>
> $ /usr/bin/go
>
> Everything works and the command is hunky dory
>
> open("/usr/bin/go", O_RDONLY|O_CLOEXEC) = 3
> fcntl(3, F_SETFD, FD_CLOEXEC) = 0
> mmap(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3fff7c563000
> munmap(0x3fff7c563000, 4096) = 0
>
> /usr/bin/go is redirected via an alternative
>
> ubuntu@winton-02:~$ stat $(which go)
> File: '/usr/bin/go' -> '/etc/alternatives/go'
> Size: 20 Blocks: 0 IO Block: 4096 symbolic link
> Device: 800h/2048d Inode: 36858 Links: 1
> Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
> Access: 2014-02-03 04:59:56.513098574 +0000
> Modify: 2014-02-03 04:58:26.423103413 +0000
> Change: 2014-02-03 04:58:26.443103413 +0000
> Birth: -
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/gccgo-go/+bug/1275620/+subscriptions
>

Changed in gccgo-go (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Matthias Klose (doko) wrote :

gccgo-go is removed in vivid, superseded by gccgo-5

Changed in gccgo-go (Ubuntu):
status: Fix Committed → Invalid
Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

This is especially annoying, as if Go is not installed, typing "go" proposes to install "gccgo", at least in Trusty, instead of the official "golang" package.

Rolf Leggewie (r0lf)
Changed in gccgo-go (Ubuntu Utopic):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.