[Bug 1661222] Re: syscall.Getpagesize returns wrong page size on aarch64
Michael Hudson-Doyle
michael.hudson+lp at canonical.com
Sat Feb 11 10:02:49 UTC 2017
https://code.launchpad.net/~gophers/+archive/ubuntu/archive/+packages has
1.8~rc3 already, will have 1.8 when that's done. I could add the patch to
the 1.7 in that PPA too (but not today)
On 11 February 2017 at 05:38, Edward Vielmetti <edward.vielmetti at gmail.com>
wrote:
> @mwhudson - when you are ready to test the PPA I am very interested in
> giving it a spin on a dedicated ARMv8 test server.
>
> --
> You received this bug notification because you are subscribed to golang
> in Ubuntu.
> https://bugs.launchpad.net/bugs/1661222
>
> Title:
> syscall.Getpagesize returns wrong page size on aarch64
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/golang/+bug/
> 1661222/+subscriptions
>
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang in Ubuntu.
https://bugs.launchpad.net/bugs/1661222
Title:
syscall.Getpagesize returns wrong page size on aarch64
Status in golang package in Ubuntu:
New
Status in golang-defaults package in Ubuntu:
New
Bug description:
syscall.Getpagesize returns wrong page size on aarch64.
The code at https://github.com/vielmetti/go-pagesize-test exercises
the issue.
This is fixed upstream at 1.8 with
https://github.com/golang/go/commit/1b9499b06989d2831e5b156161d6c07642926ee1
Downstream, this affects Docker and Kubernetes on aarch64,
specifically at
https://github.com/docker/docker/issues/27384 for Docker (overlay2
filesystem).
Please consider a backport of the page size fix to 1.6 version of Go
that is part of 16.04 LTS.
thanks
Ed
root at docker-build-test:/mnt/src/vielmetti/go-pagesize-test# lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
root at docker-build-test:/mnt/src/vielmetti/go-pagesize-test# apt-cache policy golang
golang:
Installed: 2:1.6-1ubuntu4
Candidate: 2:1.6-1ubuntu4
Version table:
*** 2:1.6-1ubuntu4 500
500 http://ports.ubuntu.com/ubuntu-ports xenial/main arm64 Packages
100 /var/lib/dpkg/status
What I expected to happen:
C.getpagesize()) and syscall.Getpagesize() return the same value
What happened instead:
On aarch64,
✗ go reports correct pagesize
(in test file go-pagesize-test.bats, line 3)
`[ "$status" -eq 0 ]' failed
OS page size = 4096 ; go reports 65536
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: golang 2:1.6-1ubuntu4
ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
Uname: Linux 4.4.0-38-generic aarch64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: arm64
Date: Thu Feb 2 11:44:31 2017
PackageArchitecture: all
ProcEnviron:
TERM=screen.xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: golang-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang/+bug/1661222/+subscriptions
More information about the foundations-bugs
mailing list