[Bug 1891403] Re: glibc tst-getrandom test needs more entropy causing test failures
Robie Basak
1891403 at bugs.launchpad.net
Wed Sep 2 14:37:23 UTC 2020
Hello Balint, or anyone else affected,
Accepted glibc into focal-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/glibc/2.31-0ubuntu9.1
in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: glibc (Ubuntu Focal)
Status: New => Fix Committed
** Tags added: verification-needed verification-needed-focal
--
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:
New
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