ARM chroot issues: fatal error: rt_sigaction failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
golang (Ubuntu) |
Fix Released
|
High
|
Michael Hudson-Doyle | ||
Trusty |
Invalid
|
Undecided
|
Unassigned | ||
Wily |
Fix Released
|
Medium
|
Chris J Arges |
Bug Description
SRU Justification:
[Impact]
Users of go programs compiled for arm and running on x86_64 will be unable to emulate their programs with qemu.
[Test Case]
1)
echo "package main
import "fmt"
func main() {
fmt.Println("Hi")
}
">test.go
2) GOARCH=arm go build test.go
3) qemu-arm test
[Regression Potential]
This patch is upstream and in Xenial. The change affects golang runtime only.
-
Trying to create an ARM snap with snapcraft using an ARM chroot as advised:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Pulling integration
Building integration
cp --preserve=all -R icon.svg /snap_spider_
Staging integration
Snapping integration
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
fatal error: rt_sigaction failure
runtime stack:
runtime.
/usr/lib/
runtime.
/usr/lib/
runtime.initsig()
/usr/lib/
mstart()
/usr/lib/
runtime.mstart()
/usr/lib/
goroutine 1 [runnable]:
runtime.main()
/usr/lib/
runtime.goexit()
/usr/lib/
Reproduced it two different machines.
Reproducing it:
- qemu-debootstrap --arch=armhf vivid ~/vivid/
- set up the right sources.list
- apt-get install software-
- sudo add-apt-repository ppa:snappy-
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get install snappy-tools bzr
- snapcrafting any source will end up in a similar output
Changed in snapcraft: | |
status: | New → Invalid |
Changed in qemu (Ubuntu): | |
assignee: | nobody → Chris J Arges (arges) |
Changed in golang (Ubuntu): | |
assignee: | nobody → Michael Hudson-Doyle (mwhudson) |
no longer affects: | qemu (Ubuntu) |
Changed in golang (Ubuntu): | |
importance: | Undecided → High |
affects: | snapcraft → ubuntu |
no longer affects: | ubuntu |
tags: | added: vivid |
It's a long-standing qemu bug. See https:/ /groups. google. com/forum/ #!topic/ golang- nuts/MqKTX_ XIOKE for example.