Bug 2402621

Summary: [abrt] gnome-session: __syscall_cancel_arch(): gnome-session-service killed by SIGABRT after systemd timeout during initial install.
Product: [Fedora] Fedora Reporter: Jeremy Linton <jeremy.linton>
Component: gnome-sessionAssignee: GNOME SIG Unassigned <gnome-sig>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: avovk, awilliam, dwalsh, gnome-sig, jan.public, jeremy.linton, kparal, lruzicka, lvrabec, mcatanza, mclasen, mmalik, omosnacek, pbrobinson, pkoncity, rhughes, robatino, rstrode, vmojzis, zpytela
Target Milestone: ---Keywords: AutomationTriaged
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/ce6890bccf40761c5c615237bb3df87137802df
Whiteboard: abrt_hash:d923eed01c584520473645fc615330131dc23ca8;VARIANT_ID=workstation; RejectedBlocker
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: proc_pid_status
none
File: maps
none
File: limits
none
File: environ
none
File: open_fds
none
File: mountinfo
none
File: os_info
none
File: cpuinfo
none
File: core_backtrace
none
File: dso_list
none
File: backtrace
none
Journalctl logs from the affected machine none

Description Jeremy Linton 2025-10-09 01:55:22 UTC
Description of problem:
Clean install of F43 on orion6. This backtrace generated during testing.

Version-Release number of selected component:
gnome-session-49.0-1.fc43

Additional info:
reporter:       libreport-2.17.15
type:           CCpp
reason:         gnome-session-service killed by SIGABRT
journald_cursor: s=2e77afca33684911a3c797a52137a8b8;i=ac2;b=f81673b005b14a4a9e7c9456d7a58d71;m=886e3ad;t=640ae14e4e5ff;x=56f50d4528b4da59
executable:     /usr/libexec/gnome-session-service
cmdline:        /usr/libexec/gnome-session-service --session=gnome-initial-setup
cgroup:         0::/user.slice/user-60578.slice/user/app.slice/app-gnome\x2dsession\x2dmanager.slice/gnome-session-manager
rootdir:        /
uid:            60578
kernel:         6.17.0-63.fc43.aarch64
package:        gnome-session-49.0-1.fc43
runlevel:       /bin/sh: line 1: runlevel: command not found
backtrace_rating: 4
crash_function: __syscall_cancel_arch
comment:        Clean install of F43 on orion6. This backtrace generated during testing.

Truncated backtrace:
Thread no. 1 (2 frames)
 #0 __syscall_cancel_arch at ../sysdeps/unix/sysv/linux/aarch64/syscall_cancel.S:50
 #1 __internal_syscall_cancel at cancellation.c:49

Comment 1 Jeremy Linton 2025-10-09 01:55:26 UTC
Created attachment 2109083 [details]
File: proc_pid_status

Comment 2 Jeremy Linton 2025-10-09 01:55:27 UTC
Created attachment 2109084 [details]
File: maps

Comment 3 Jeremy Linton 2025-10-09 01:55:33 UTC
Created attachment 2109085 [details]
File: limits

Comment 4 Jeremy Linton 2025-10-09 01:55:34 UTC
Created attachment 2109086 [details]
File: environ

Comment 5 Jeremy Linton 2025-10-09 01:55:36 UTC
Created attachment 2109087 [details]
File: open_fds

Comment 6 Jeremy Linton 2025-10-09 01:55:37 UTC
Created attachment 2109088 [details]
File: mountinfo

Comment 7 Jeremy Linton 2025-10-09 01:55:38 UTC
Created attachment 2109089 [details]
File: os_info

Comment 8 Jeremy Linton 2025-10-09 01:55:39 UTC
Created attachment 2109090 [details]
File: cpuinfo

Comment 9 Jeremy Linton 2025-10-09 01:55:40 UTC
Created attachment 2109091 [details]
File: core_backtrace

Comment 10 Jeremy Linton 2025-10-09 01:55:42 UTC
Created attachment 2109092 [details]
File: dso_list

Comment 11 Jeremy Linton 2025-10-09 01:55:44 UTC
Created attachment 2109093 [details]
File: backtrace

Comment 12 Fedora Admin user for bugzilla script actions 2025-10-09 02:05:37 UTC
Bug reports for this component on Red Hat Bugzilla are not actively monitored. Please consider reporting your issue directly to GNOME at https://gitlab.gnome.org/GNOME/ to improve the chances that your issue will be resolved. This issue should only be kept open if it:

1. Relates to Fedora packaging or integration with other Fedora components
2. Is required for Fedora release processes, such as blocker bugs and freeze exceptions

If this issue isn't needed for either of these two reasons, please:

 * create an issue with GNOME
 * add a link to the GNOME issue here
 * close this issue as CLOSED/UPSTREAM

Thank you!

Comment 13 Jeremy Linton 2025-10-16 21:10:15 UTC
Reopen, this might actually be a selinux/etc problem as I'm seeing:

Oct 16 12:30:03 localhost-live systemd[2581]: selinux: avc:  denied  { status } for auid=n/a uid=60578 gid=978 path="/usr/lib/systemd/user/graphical-session-pre.target" cmdline="/usr/libexec/gnome-session-init-worker gnome-initial-setup" function="reply_unit_path" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_unit_file_t:s0 tclass=service permissive=0
Oct 16 12:30:03 localhost-live systemd[2581]: SELinux access check scon=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcon=system_u:object_r:systemd_unit_file_t:s0 tclass=service perm=status state=enforcing function=reply_unit_path path=/usr/lib/systemd/user/graphical-session-pre.target cmdline=/usr/libexec/gnome-session-init-worker gnome-initial-setup: Permission denied

and then a bit later:

Oct 16 12:30:03 localhost-live systemd[2581]: Stopped gnome-initial-setup.service - GNOME Initial Setup.
Oct 16 12:30:03 localhost-live systemd[2581]: gnome-initial-setup.service: Consumed 19.808s CPU time, 629.2M memory peak.
Oct 16 12:30:03 localhost-live systemd[2581]: Stopped target gnome-session - GNOME Session (session: gnome-initial-setup).
Oct 16 12:30:04 localhost-live gnome-shell[2647]: Failed to store screen time limits data: Error opening file “/run/gdm/home/gnome-initial-setup/.local/share/gnome-shell/session-active-history.json”: No such file or directory
Oct 16 12:30:04 localhost-live systemd[2581]: Stopping gnome-session-manager - GNOME Session Manager (session: gnome-initial-setup)...
Oct 16 12:30:49 localhost-live systemd[2581]: gnome-session-manager: State 'stop-sigterm' timed out. Aborting.
Oct 16 12:30:49 localhost-live systemd[2581]: gnome-session-manager: Killing process 2623 (gnome-session-s) with signal SIGABRT.
Oct 16 12:30:50 localhost-live systemd[2581]: gnome-session-manager: Main process exited, code=dumped, status=6/ABRT
Oct 16 12:30:50 localhost-live systemd[2581]: gnome-session-manager: Failed with result 'timeout'.
Oct 16 12:30:50 localhost-live systemd[2581]: Stopped gnome-session-manager - GNOME Session Manager (session: gnome-initial-setup).
Oct 16 12:30:50 localhost-live systemd[2581]: gnome-session-manager: Triggering OnFailure= dependencies.

Comment 14 Jeremy Linton 2025-10-16 21:12:44 UTC
*** Bug 2388184 has been marked as a duplicate of this bug. ***

Comment 15 Jeremy Linton 2025-10-16 21:13:17 UTC
*** Bug 2404593 has been marked as a duplicate of this bug. ***

Comment 16 Jeremy Linton 2025-10-16 21:15:00 UTC
Trolling bugzilla there are 3 other reports which look the same, including on x86 and with F42.

Comment 17 Jeremy Linton 2025-10-16 21:20:28 UTC
And yes, i just duplicated it on F43 1.4 RC with x86 in a virt-manager vm. Default settings. This is likely at least part of that initial lag when gnome is initially starting.

EX: virt-manager->new vm->local install media (use fedora-workstation.iso)
basically default everything.
reboot after install
walk through initial setup, turn off location services, click a timezone, enable 3rd party repositories.
Wait a minute or two after the desktop appears, there is a corefile from gnome-session.

Comment 18 Fedora Blocker Bugs Application 2025-10-16 21:22:42 UTC
Proposed as a Blocker for 43-final by Fedora user jlinton using the blocker tracking app because:

 https://fedoraproject.org/wiki/Fedora_43_Final_Release_Criteria#SELinux_and_crash_notifications

Comment 19 Kamil Páral 2025-10-17 11:48:17 UTC
Jeremy, what exactly is the consequence of this bug? Do you see anything crash, does your user session aborts? Or is there no harmful effect, just a silent crash in the background? Do you see any notification for that crash (perhaps from ABRT?). The cited criterion says "there must be no notification", it doesn't mean there must be no crash or denial (as long as they're silent and doesn't have important negative effects). Thanks.

Comment 20 Kamil Páral 2025-10-17 12:01:47 UTC
(In reply to Jeremy Linton from comment #17)
> EX: virt-manager->new vm->local install media (use fedora-workstation.iso)
> basically default everything.
> reboot after install
> walk through initial setup, turn off location services, click a timezone,
> enable 3rd party repositories.
> Wait a minute or two after the desktop appears, there is a corefile from
> gnome-session.

I reproduced this with F43 Workstation RC 1.4. There's the AVC and gnome-session-service crash. However, no notification ever popped up. ABRT processed it and shows it up in System tab, but didn't show any popup.

Comment 21 Jeremy Linton 2025-10-17 15:05:07 UTC
"Opps looks like a problem occurred" 

I'm guessing you didn't have sufficient permissions to see abrt notifications that wern't generated by your user id.

This by itself is probably a pretty large user interface bug as any crashing system services/etc simply get hidden from the default user.

Comment 22 Peter Robinson 2025-10-19 11:54:04 UTC
I think this is the bug I'm seeing on the Pinebook Pro which is stopping the UX popping up all together.

Comment 23 Kamil Páral 2025-10-20 08:43:05 UTC
(In reply to Jeremy Linton from comment #21)
> I'm guessing you didn't have sufficient permissions to see abrt
> notifications that wern't generated by your user id.

Have you done any local modifications? I'm talking about the default state after F43 Workstation installation and creating the default user (placed in the wheel group).

Comment 24 Peter Robinson 2025-10-20 08:45:45 UTC
At least for me it's vanilla GNOME with a single user created by the initial setup process

Comment 25 Jeremy Linton 2025-10-20 11:35:46 UTC
The easy way to see it, is just to set a root password and login with that.

Comment 26 Lukas Ruzicka 2025-10-20 14:14:42 UTC
I think I can reproduce this when I install a fresh installation of Fedora Workstation 43. The crash can be seen in journalctl and is reported by Abrt, however the system remains fully usable. I reported the bug through Abrt but I cannot see it updated here, so I am going to add my journal.log to this bug.

Comment 27 Lukas Ruzicka 2025-10-20 14:15:43 UTC
Created attachment 2110239 [details]
Journalctl logs from the affected machine

Comment 28 Kamil Páral 2025-10-20 15:10:15 UTC
There are two things here:
1) the crash
2) the blocker proposal

The blocker proposal is only valid if you see an error notification during your first login with the out-of-the-box default settings.

Have you seen a notification, Lukas?

Comment 29 Adam Williamson 2025-10-20 17:10:07 UTC
I'm not really sure https://bugzilla.redhat.com/show_bug.cgi?id=2388184 is a dupe of this. The backtrace is pretty generic, as best as I can understand it, and the description of the circumstances doesn't seem similar.

Comment 30 Adam Williamson 2025-10-20 17:32:38 UTC
As we suspect Peter's pinebook issue may not be caused by the g-i-s crash - at least not as it's reported in this bug report - we've filed https://bugzilla.redhat.com/show_bug.cgi?id=2405144 to track that case separately for now. If the two really do turn out to be the same bug, we can always close it as a dupe later.

Comment 31 Lukas Ruzicka 2025-10-20 18:54:25 UTC
AGREED Delayed Decision (Punt)

Discussed at the blocker review meeting on 20th Oct. 2025

We didn't reach a clear consensus on this with the folks present in the meeting. vote currently stands at +2 / -4. We have, for now, filed a separate bug for Peter Robinson's Pinebook Pro issue - https://bugzilla.redhat.com/show_bug.cgi?id=2405144 - and we're awaiting further details on that.

https://meetbot.fedoraproject.org/blocker-review_matrix_fedoraproject-org/2025-10-20/f43-blocker-review.2025-10-20-16.02.html

Comment 32 Adam Williamson 2025-10-20 21:52:51 UTC
Did we actually confirm the SELinux denial causes the crash? It should be relatively simple to check: do the first boot with enforcing=0 .

Comment 33 Jeremy Linton 2025-10-21 09:49:51 UTC
selinux=0 does not appear to fix the problem on aarch64.

Comment 34 Zdenek Pytela 2025-10-21 12:40:18 UTC
The only denial I can find in the journal is

Oct 20 15:58:28 localhost-live systemd[2175]: Reached target gnome-session-x11-services.target - GNOME session X11 services.
Oct 20 15:58:28 localhost-live pcscd[1678]: 00000000 ../src/auth.c:166:IsClientAuthorized() Process 2561 (user: 981) is NOT authorized for action: access_pcsc
Oct 20 15:58:28 localhost-live pcscd[1678]: 00000121 ../src/winscard_svc.c:357:ContextThread() Rejected unauthorized PC/SC client
Oct 20 15:58:28 localhost-live systemd[2175]: Starting org.gnome.SettingsDaemon.XSettings.service - GNOME XSettings service...
Oct 20 15:58:28 localhost-live gnome-shell[2320]: GNOME Shell started at Mon Oct 20 2025 15:58:25 GMT+0200 (Central European Summer Time)
Oct 20 15:58:28 localhost-live gnome-shell[2320]: Registering session with GDM
Oct 20 15:58:28 localhost-live systemd[1305]: Stopped gnome-session-monitor.service - Monitor Session leader for GNOME Session.   
Oct 20 15:58:28 localhost-live systemd[1305]: selinux: avc:  denied  { status } for auid=n/a uid=60578 gid=977 path="/usr/lib/systemd/user/graphical-session-pre.target" cmdline="/usr/libexec/gnome-session-init-worker gnome-initial-setup" function="reply_unit_path" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_unit_file_t:s0 tclass=service permissive=0
Oct 20 15:58:28 localhost-live systemd[1305]: SELinux access check scon=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcon=system_u:object_r:systemd_unit_file_t:s0 tclass=service perm=status state=enforcing function=reply_unit_path path=/usr/lib/systemd/user/graphical-session-pre.target cmdline=/usr/libexec/gnome-session-init-worker gnome-initial-setup: Permission denied
Oct 20 15:58:28 localhost-live gnome-session-i[1340]: Could not get unit for graphical-session-pre.target: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access: Permission denied
Oct 20 15:58:28 localhost-live systemd[1305]: Stopped target gnome-session-wayland - GNOME Wayland Session (session: gnome-initial-setup).

Possible solution is to label /usr/lib/systemd/user/graphical-session-pre.target similar to

modules/services/xserver.fc:/usr/lib/systemd/user/.*gnome.*\.(service|target)           --      gen_context(system_u:object_r:xdm_unit_file_t,s0)
modules/services/xserver.fc:/usr/lib/systemd/user/plasma-.*\.(service|target)           --      gen_context(system_u:object_r:xdm_unit_file_t,s0)

see:

f44# sesearch -A -s xdm_t -t systemd_unit_file_t -c service -p status
f44# sesearch -A -s xdm_t -t xdm_unit_file_t -c service -p status
allow xdm_t xdm_unit_file_t:service { start status };

I cannot tell though if it has the power to resolve any of the reported problems.

Comment 35 Adam Williamson 2025-10-23 18:56:37 UTC
It looks to me like what's happening here is basically that gnome-session-manager sends gnome-session-service a SIGTERM, which causes gnome-session-service to attempt some kind of "log out" operation, but that fails, so gnome-session-service doesn't actually terminate. 45 seconds later gnome-session-manager notices gnome-session-service hasn't gone away, and sends it a SIGABRT instead:

Oct 23 10:33:16 fedora systemd[1685]: Stopping gnome-session-manager - GNOME Session Manager (session: gnome-initial-setup)...
Oct 23 10:33:16 fedora gnome-session-service[1743]: Failed to log out: Logout has been locked down
Oct 23 10:34:02 fedora systemd[1685]: gnome-session-manager: State 'stop-sigterm' timed out. Aborting.
Oct 23 10:34:02 fedora audit[1743]: ANOM_ABEND auid=60578 uid=60578 gid=977 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=1743 comm="gnome-session-s" exe="/usr/libexec/gnome-session-service" sig=6 res=1
Oct 23 10:34:02 fedora systemd[1685]: gnome-session-manager: Killing process 1743 (gnome-session-s) with signal SIGABRT.

and that's the thing we track as a 'crash':

Oct 23 10:34:02 fedora systemd-coredump[4635]: Process 1743 (gnome-session-s) of user 60578 terminated abnormally with signal 6/ABRT, processing...
Oct 23 10:34:02 fedora systemd-coredump[4636]: Process 1743 (gnome-session-s) of user 60578 dumped core.

etc. etc.

Comment 36 Adam Williamson 2025-10-23 18:59:02 UTC
Discussed in the 2025-10-23 Fedora 43 go/no-go meeting, acting as a blocker review meeting: https://meetbot-raw.fedoraproject.org/meeting_matrix_fedoraproject-org/2025-10-23/f43-final-go-no-go-meeting.2025-10-23-17.01.html . Rejected as a blocker on the basis there's no solid evidence this causes any practical consequences that violate any release criteria; it seems to just be a relatively harmless 'crash' on teardown of the g-i-s environment which is only visible in the journal, coredumpctl or gnome-abrt 'system' view.

Comment 37 Adam Williamson 2025-10-23 19:03:17 UTC
hmm, although, that "Failed to log out: Logout has been locked down" message looks like it really is just a message...the code execution should continue. It's at https://gitlab.gnome.org/GNOME/gnome-session/-/blob/main/gnome-session/service-main.c?ref_type=heads#L86 , and that `term_or_int_signal_cb` function looks like it should still complete after that message is logged. So, I'm not sure why the process isn't going away?

Comment 38 Adam Williamson 2025-10-23 19:07:21 UTC
ah, hmm, I think the `gsm_manager_logout` call is intended to ultimately cause the process to exit...and the log message is printed if that call doesn't work. I wonder why logout is locked down at this point...and when this started happening...

Comment 39 Michael Catanzaro 2025-10-23 20:01:49 UTC
(In reply to Adam Williamson from comment #38)
> I wonder why logout is locked down at this point...and when
> this started happening...

Educated guess: systemd inhibitor, systemd 257

Comment 40 Danilo Marques 2025-11-01 15:28:33 UTC
Not sure whether the machine was in the process of entering suspend or resume, or possibly trying to log in to GDM.


reporter:       libreport-2.17.15
type:           CCpp
reason:         gnome-session-service killed by SIGABRT
journald_cursor: s=e6d6609fd76342fbb43520dc88447602;i=d0c;b=2684fdae751047cb906b98c1b2fdacc0;m=792bf89;t=642796054c50e;x=254456f0bfc388b8
executable:     /usr/libexec/gnome-session-service
cmdline:        /usr/libexec/gnome-session-service --session=gnome-initial-setup
cgroup:         0::/user.slice/user-60578.slice/user/app.slice/app-gnome\x2dsession\x2dmanager.slice/gnome-session-manager
rootdir:        /
uid:            60578
kernel:         6.17.1-300.fc43.x86_64
package:        gnome-session-49.1-1.fc43
runlevel:       /bin/sh: line 1: runlevel: command not found
backtrace_rating: 4
crash_function: __syscall_cancel_arch
comment:        Not sure whether the machine was in the process of entering suspend or resume, or possibly trying to log in to GDM.