[Bug 1891403] Re: glibc tst-getrandom test needs more entropy causing test failures

Launchpad Bug Tracker 1891403 at bugs.launchpad.net
Wed Sep 2 17:12:22 UTC 2020


This bug was fixed in the package glibc - 2.31-0ubuntu11

---------------
glibc (2.31-0ubuntu11) groovy; urgency=medium

  [ Michael Hudson-Doyle ]
  * Mark tst-getpw as XFAIL on arm64. (LP: #1869364)

  [ Balint Reczey ]
  * debian/control: Add Vcs-* pointing to Ubuntu packaging repository
  * debian/gbp.conf: Add initial configuration
  * debian/debhelper.in/libc.preinst: Fix setting LDCONFIG_NOTRIGGER
  * debian/control.in/main: Add Vcs-* pointing to Ubuntu packaging repository
  * Fall back to calling nanosleep syscall when __clock_nanosleep returns EINVAL
    (LP: #1871240)
  * debian/testsuite-xfail-debian.mk: XFAIL stdlib/tst-strtod-round on riscv64
  * debian/testsuite-xfail-debian.mk: XFAIL tst-getpw on armhf, too
  * debian/watch: Use HTTPS and download xz-compressed tarball
  * debian/watch: Use upstream's signing key to verify the tarball
  * XFAIL stdlib/tst-getrandom (LP: #1891403)

  [ Dimitri John Ledkov ]
  * debian/patches/powerpc: Cherrypick upstream patches to support POWER10
    optimized library loading. (LP: #1887989)

  [ Aurelien Jarno ]
  * debian/patches/any/submitted-selinux-deprecations.diff: proposed patch to
    ignore the selinux deprecations introduced in libselinux (>= 3.1), fixing
    an FTBFS. (Closes: #965941)

 -- Balint Reczey <rbalint at ubuntu.com>  Thu, 27 Aug 2020 23:36:39 +0200

** Changed in: glibc (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1891403

Title:
  glibc tst-getrandom test needs more entropy causing test failures

Status in Auto Package Testing:
  Fix Committed
Status in launchpad-buildd:
  Triaged
Status in glibc package in Ubuntu:
  Fix Released
Status in glibc source package in Focal:
  Fix Committed

Bug description:
  [Impact]

   * Builds and autpkgtests frequently fail due to failing tst-getrandom
  probably due to insufficient source of entropy on Launchpad. This
  causes extra work by requiring retriggering failing builds and
  autopkgtests.

  [Test Case]

  * Observe tst-getrandom tests being marked XFAIL in build logs.

  [Regression Potential]

  * The fix does not change run-time behaviour of glibc, just ignores a
  test. This lets potential breakages in getrandom()'s implementation or
  in kernel's random source being undetected, but the test results can
  still be observed in the logs if needed and the random implementation
  is also most likely exercised in other tests, too.

  [Other Info]

  The issue can be reproduced locally in a built glibc package tree
  without haveged or any other good entropy source installed:

  rbalint at gaia:~/projects/deb/build-area/glibc-2.31$ for i in $(seq 1000); do ./build-tree/amd64-libc/stdlib/tst-getrandom; done
  Timed out: killed the child process
  Termination time: 2020-08-12T21:05:28.234517252
  Last write to standard output: 2020-08-12T21:05:04.069616637
  Timed out: killed the child process
  Termination time: 2020-08-12T21:05:48.337084141
  Last write to standard output: 2020-08-12T21:05:28.069616637
  Timed out: killed the child process
  Termination time: 2020-08-12T21:06:08.439695563
  Last write to standard output: 2020-08-12T21:05:48.069616637
  Timed out: killed the child process
  Termination time: 2020-08-12T21:06:28.542962616
  Last write to standard output: 2020-08-12T21:06:08.069616637
  Timed out: killed the child process
  ...

  With haveged installed the tests pass quickly and without error:

  rbalint at gaia:~/projects/deb/build-area/glibc-2.31$ for i in $(seq 1000); do ./build-tree/amd64-libc/stdlib/tst-getrandom; done
  rbalint at gaia:~/projects/deb/build-area/glibc-2.31$

  An other way of fixing the issue would be installing better entropy
  sources in the build and autopkgtest infrastructure.

To manage notifications about this bug go to:
https://bugs.launchpad.net/auto-package-testing/+bug/1891403/+subscriptions



More information about the foundations-bugs mailing list