fatal error: rt_sigaction failure when run go(1.6) in qemu

Bug #1603846 reported by Gary.Wang on 2016-07-18
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
golang-1.6 (Ubuntu)
Undecided
Unassigned

Bug Description

mkdir -p rootfs/usr/bin/
sudo cp /usr/bin/qemu-aarch64-static rootfs/usr/bin/
sudo debootstrap --arch=arm64 --verbose xenial rootfs

After sudo chroot, add this PPA into the chroot:
1) https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/stable-phone-overlay

2) add "universe" component into sources.list

3) install golang package
    apt-get install golang-go

4) run go -v

     root@ubuntu:/# go -v
fatal error: rt_sigaction failure

runtime stack:
runtime.throw(0xa10d90, 0x14)
        /usr/lib/go-1.6/src/runtime/panic.go:547 +0x80
runtime.setsigstack(0x14800000021)
        /usr/lib/go-1.6/src/runtime/os1_linux.go:344 +0xfc
runtime.initsig(0xc5c100)
        /usr/lib/go-1.6/src/runtime/signal1_unix.go:75 +0x19c
runtime.mstart1()
        /usr/lib/go-1.6/src/runtime/proc.go:1094 +0xf4
runtime.mstart()
        /usr/lib/go-1.6/src/runtime/proc.go:1068 +0x78

goroutine 1 [runnable]:
runtime.main()
        /usr/lib/go-1.6/src/runtime/proc.go:105
runtime.goexit()
        /usr/lib/go-1.6/src/runtime/asm_arm64.s:975 +0x4

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
        /usr/lib/go-1.6/src/runtime/asm_arm64.s:975 +0x4

Michael Hudson-Doyle (mwhudson) wrote :

I have heard reports that this is fixed in upstream qemu. Is it possible for you to try that?

Gary.Wang (gary-wzl77) wrote :

I guess it's related to this one.
https://patchwork.ozlabs.org/patch/605928/
Will do if I can find time slot int this week.
Thanks.

I was (I think) thinking more of this one:
http://comments.gmane.org/gmane.comp.emulators.qemu/412002

On 18 July 2016 at 15:27, Gary.Wang <email address hidden> wrote:
> I guess it's related to this one.
> https://patchwork.ozlabs.org/patch/605928/
> Will do if I can find time slot int this week.
> Thanks.
>
> --
> You received this bug notification because you are subscribed to
> golang-1.6 in Ubuntu.
> https://bugs.launchpad.net/bugs/1603846
>
> Title:
> fatal error: rt_sigaction failure when run go(1.6) in qemu
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/golang-1.6/+bug/1603846/+subscriptions

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in golang-1.6 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers