Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935367 - sys-apps/coreutils-9.5 fails tests on 32-bit: XPASS: tests/dd/no-allocate.sh, test-readutmp.c:146: assertion 'first >= now - 157680000' failed
Summary: sys-apps/coreutils-9.5 fails tests on 32-bit: XPASS: tests/dd/no-allocate.sh,...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-07-02 19:46 UTC by matoro
Modified: 2024-07-04 00:49 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (hppa) (build.log.gz,142.13 KB, application/gzip)
2024-07-02 19:47 UTC, matoro
Details
build.log and emerge --info (ppc) (build.log.gz,141.90 KB, application/gzip)
2024-07-02 19:47 UTC, matoro
Details
build.log and emerge --info (arm) (build.log.gz,143.30 KB, application/gzip)
2024-07-02 19:47 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-07-02 19:46:39 UTC
So, all 32-bit has an XPASS for tests/dd/no-allocate.sh, ref bug 928486

Additionally, it looks like there is a test which reads the live utmp file.  This seems very fragile to me as it means test results are no longer reproducible and depend upon the login history of the host, you can see my actual login entries present in the test output.  This failure triggers on hppa and arm but not ppc for me, but given the nature of the test I don't think that's necessarily indicative of anything.

FAIL: test-readutmp
===================

Here are the read_utmp results.
Flags: B = Boot, U = User Process

                                                              Termi‐      Flags
    Time (GMT)             User          Device        PID    nation Exit  B U  Host
------------------- ------------------ ----------- ---------- ------ ----  - -  ----
1970-01-01 00:00:00                                      1790    0     0        
1970-01-01 00:00:00                                         0    0     0        
1970-01-01 00:00:00                                         0    0     0        
1970-01-01 00:00:00                                         0    0     0        
1970-01-01 00:00:00                                         0    0     0        2
1970-01-01 00:00:00                                         0    0     0        
1970-01-01 00:00:00                                         0    0     0        
2024-07-02 18:13:12 reboot             ~                    0    0     0   X    
test-readutmp.c:146: assertion 'first >= now - 157680000' failed
FAIL test-readutmp (exit status: 134)
Comment 1 matoro archtester 2024-07-02 19:47:16 UTC
Created attachment 896815 [details]
build.log and emerge --info (hppa)
Comment 2 matoro archtester 2024-07-02 19:47:37 UTC
Created attachment 896816 [details]
build.log and emerge --info (ppc)
Comment 3 matoro archtester 2024-07-02 19:47:57 UTC
Created attachment 896817 [details]
build.log and emerge --info (arm)
Comment 4 Larry the Git Cow gentoo-dev 2024-07-04 00:49:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc83ede26c54c93ff0cab79f3973814b6820db3c

commit fc83ede26c54c93ff0cab79f3973814b6820db3c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-07-04 00:48:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-07-04 00:48:11 +0000

    sys-apps/coreutils: skip test-readutmp
    
    It reads the host entries.
    
    Closes: https://bugs.gentoo.org/935367
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/coreutils/coreutils-9.5.ebuild                     |  5 ++++-
 .../coreutils/files/coreutils-9.5-skip-readutmp-test.patch  | 13 +++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf0ea1fc1f7b7258baffac031e5c0cfe72fc27d3

commit cf0ea1fc1f7b7258baffac031e5c0cfe72fc27d3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-07-04 00:39:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-07-04 00:39:24 +0000

    sys-apps/coreutils: properly skip dd no-allocate test
    
    It XPASSes sometimes but it's really unreliable under sandbox (even
    segfaults under sandbox when I looked at it last).
    
    Closes: https://bugs.gentoo.org/935367
    Bug: https://bugs.gentoo.org/928486
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/coreutils/coreutils-9.5.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)