Bug 2223582

Summary: test-login fails when executed under Fedora's mock
Product: Red Hat Enterprise Linux 8 Reporter: Jacek Migacz <jmigacz>
Component: systemdAssignee: Jacek Migacz <jmigacz>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: low Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, jamacku, jwboyer, systemd-maint
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-239-78.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-14 15:48:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jacek Migacz 2023-07-18 10:19:39 UTC
Description of problem:
test-login fails with SIGABRT

How reproducible:
Run systemd tests under Zuul

Actual results:
>> DEBUG: 239/298 test-login                                FAIL             0.11s   killed by signal 6 SIGABRT
>> DEBUG: >>> MALLOC_PERTURB_=112 SYSTEMD_KBD_MODEL_MAP=/builddir/build/BUILD/systemd-239/src/locale/kbd-model-map SYSTEMD_LANGUAGE_FALLBACK_MAP=/builddir/build/BUILD/systemd-239/src/locale/language-fallback-map PATH=/builddir/build/BUILD/systemd-239/x86_64-redhat-linux-gnu:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin /builddir/build/BUILD/systemd-239/x86_64-redhat-linux-gnu/test-login
>> DEBUG: ――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
>> DEBUG: stderr:
>> DEBUG: /* Information printed is from the live system */
>> DEBUG: sd_pid_get_unit(0, …) → OK / "session-1.scope"
>> DEBUG: sd_pid_get_user_unit(0, …) → ENODATA / "(null)"
>> DEBUG: sd_pid_get_slice(0, …) → OK / "user-1000.slice"
>> DEBUG: sd_pid_get_owner_uid(0, …) → OK / 1000
>> DEBUG: sd_pid_get_session(0, …) → OK / "1"
>> DEBUG: sd_pid_get_cgroup(0, …) → OK / "/user.slice/user-1000.slice/session-1.scope"
>> DEBUG: sd_uid_get_display(1000, …) → ENODATA / "(null)"
>> DEBUG: sd_uid_get_sessions(1000, …) → OK ""
>> DEBUG: sd_uid_get_seats(1000, …) → OK ""
>> DEBUG: Assertion 'r >= 0' failed at ../src/libsystemd/sd-login/test-login.c:118, function test_login(). Aborting.

Expected results:
PASS

Additional info:
n\a

Comment 6 errata-xmlrpc 2023-11-14 15:48:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (systemd bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:7097