← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1661222] Re: syscall.Getpagesize returns wrong page size on aarch64

 

** Package changed: golang (Ubuntu) => golang-1.6 (Ubuntu)

** Also affects: golang-1.6 (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: golang-defaults (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: golang-1.6 (Ubuntu)
       Status: New => Invalid

** Changed in: golang-defaults (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1661222

Title:
  syscall.Getpagesize returns wrong page size on aarch64

Status in Docker.io:
  New
Status in golang-1.6 package in Ubuntu:
  Invalid
Status in golang-defaults package in Ubuntu:
  Fix Released
Status in golang-1.6 source package in Xenial:
  New
Status in golang-defaults source package in Xenial:
  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@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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/docker.io/+bug/1661222/+subscriptions