Public bug reported:

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@docker-build-test:/mnt/src/vielmetti/go-pagesize-test# lsb_release -rd
Description:    Ubuntu 16.04.1 LTS
Release:        16.04

root@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)

** Affects: golang-defaults (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug arm64 third-party-packages uec-images xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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-defaults/+bug/1661222/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to