Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1392970 - gnome-session-failed segfaults on hard GDM service stop
gnome-session-failed segfaults on hard GDM service stop
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnome-session (Show other bugs)
7.3
x86_64 Unspecified
high Severity high
: rc
: ---
Assigned To: Ray Strode [halfline]
Desktop QE
abrt_hash:4f638432e8ea1a13af56e752389...
: Regression, TestBlocker
: 1397773 1436758 1449380 (view as bug list)
Depends On:
Blocks: 1384256 1449577 1456511 1354032
  Show dependency treegraph
 
Reported: 2016-11-08 09:53 EST by Matěj Cepl
Modified: 2017-08-01 18:57 EDT (History)
12 users (show)

See Also:
Fixed In Version: gnome-session-3.22.3-4.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-01 18:57:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File: backtrace (12.08 KB, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: cgroup (199 bytes, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: core_backtrace (5.72 KB, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: dso_list (6.74 KB, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: environ (493 bytes, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: exploitable (82 bytes, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: limits (1.29 KB, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: machineid (135 bytes, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: maps (30.22 KB, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: open_fds (133 bytes, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: proc_pid_status (1.13 KB, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
File: var_log_messages (157 bytes, text/plain)
2016-11-08 09:54 EST, Matěj Cepl
no flags Details
backtrace (38.81 KB, text/plain)
2017-04-05 04:38 EDT, Jiri Koten
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:2128 normal SHIPPED_LIVE Moderate: gdm and gnome-session security, bug fix, and enhancement update 2017-08-01 15:38:38 EDT

  None (edit)
Description Matěj Cepl 2016-11-08 09:53:56 EST
Version-Release number of selected component:
gnome-session-3.22.1-1.el7

Additional info:
reporter:       libreport-2.1.11.1
backtrace_rating: 4
cmdline:        /usr/libexec/gnome-session-failed --debug --allow-logout
crash_function: _gtk_style_provider_private_get_settings
executable:     /usr/libexec/gnome-session-failed
global_pid:     21790
kernel:         3.10.0-514.el7.x86_64
pkg_vendor:     Fedora Project COPR (klember/rhel-7-gnome-3-22)
reproducible:   Not sure how to reproduce the problem
runlevel:       N 5
type:           CCpp
uid:            42

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 _gtk_style_provider_private_get_settings at /lib64/libgtk-3.so.0
 #1 gtk_css_value_initial_compute at /lib64/libgtk-3.so.0
 #2 gtk_css_static_style_compute_value at /lib64/libgtk-3.so.0
 #3 _gtk_css_lookup_resolve at /lib64/libgtk-3.so.0
 #4 gtk_css_static_style_new_compute at /lib64/libgtk-3.so.0
 #5 gtk_css_static_style_get_default at /lib64/libgtk-3.so.0
 #6 gtk_css_node_init at /lib64/libgtk-3.so.0
 #7 g_type_create_instance at gtype.c:1860
 #8 g_object_new_internal at gobject.c:1783
 #11 gtk_css_widget_node_new at /lib64/libgtk-3.so.0
Comment 1 Matěj Cepl 2016-11-08 09:54:00 EST
Created attachment 1218563 [details]
File: backtrace
Comment 2 Matěj Cepl 2016-11-08 09:54:02 EST
Created attachment 1218564 [details]
File: cgroup
Comment 3 Matěj Cepl 2016-11-08 09:54:03 EST
Created attachment 1218565 [details]
File: core_backtrace
Comment 4 Matěj Cepl 2016-11-08 09:54:06 EST
Created attachment 1218566 [details]
File: dso_list
Comment 5 Matěj Cepl 2016-11-08 09:54:07 EST
Created attachment 1218567 [details]
File: environ
Comment 6 Matěj Cepl 2016-11-08 09:54:09 EST
Created attachment 1218568 [details]
File: exploitable
Comment 7 Matěj Cepl 2016-11-08 09:54:11 EST
Created attachment 1218569 [details]
File: limits
Comment 8 Matěj Cepl 2016-11-08 09:54:12 EST
Created attachment 1218570 [details]
File: machineid
Comment 9 Matěj Cepl 2016-11-08 09:54:14 EST
Created attachment 1218571 [details]
File: maps
Comment 10 Matěj Cepl 2016-11-08 09:54:16 EST
Created attachment 1218572 [details]
File: open_fds
Comment 11 Matěj Cepl 2016-11-08 09:54:18 EST
Created attachment 1218573 [details]
File: proc_pid_status
Comment 12 Matěj Cepl 2016-11-08 09:54:19 EST
Created attachment 1218574 [details]
File: var_log_messages
Comment 14 Vitezslav Humpa 2017-03-16 06:38:05 EDT
This happens on shutting down the session forcibly e.g. with:

systemctl stop gdm.service

A FAF report has also been created for this issue, that contains more info:
http://faf.lab.eng.brq.redhat.com/faf/reports/2421/

A local machine reproducer journal excerpt:

Mar 16 11:31:54 localhost systemd: Stopping GNOME Display Manager...
Mar 16 11:31:54 localhost journal: gnome-shell: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Mar 16 11:31:54 localhost journal: nautilus-desktop: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Mar 16 11:31:54 localhost journal: evolution-alarm-notify: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Mar 16 11:31:54 localhost journal: abrt: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Mar 16 11:31:54 localhost gnome-session-binary[5291]: WARNING: Lost name on bus: org.gnome.SessionManager
Mar 16 11:31:54 localhost journal: gnome-settings-daemon: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Mar 16 11:31:54 localhost gnome-session: gnome-session-binary[5291]: WARNING: Lost name on bus: org.gnome.SessionManager
Mar 16 11:31:54 localhost sealertauto.desktop: seapplet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Mar 16 11:31:54 localhost spice-vdagentd: closed vdagent virtio channel
Mar 16 11:31:54 localhost journal: gnome-software: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Mar 16 11:31:54 localhost journal: Owner of volume monitor org.gtk.vfs.UDisks2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Mar 16 11:31:54 localhost journal: Owner of volume monitor org.gtk.vfs.GPhoto2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Mar 16 11:31:54 localhost journal: Owner of volume monitor org.gtk.vfs.MTPVolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Mar 16 11:31:54 localhost journal: Owner of volume monitor org.gtk.vfs.AfcVolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Mar 16 11:31:54 localhost journal: Owner of volume monitor org.gtk.vfs.GoaVolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Mar 16 11:31:54 localhost tracker-miner-fs.desktop: Received signal:15->'Terminated'
Mar 16 11:31:54 localhost journal: Error while sending AddMatch() message: The connection is closed
Mar 16 11:31:54 localhost journal: Error while sending AddMatch() message: The connection is closed
Mar 16 11:31:54 localhost journal: Error while sending AddMatch() message: The connection is closed
Mar 16 11:31:54 localhost tracker-miner-fs.desktop: OK
Mar 16 11:31:54 localhost gnome-session-binary[5291]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 16 11:31:54 localhost gnome-session: gnome-session-binary[5291]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 16 11:31:54 localhost journal: Owner of volume monitor org.gtk.vfs.UDisks2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Mar 16 11:31:54 localhost journal: Owner of volume monitor org.gtk.vfs.GPhoto2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Mar 16 11:31:54 localhost journal: Owner of volume monitor org.gtk.vfs.MTPVolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Mar 16 11:31:54 localhost journal: Owner of volume monitor org.gtk.vfs.AfcVolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Mar 16 11:31:54 localhost journal: Owner of volume monitor org.gtk.vfs.GoaVolumeMonitor disconnected from the bus; removing drives/volumes/mounts
Mar 16 11:31:54 localhost kernel: gnome-session-f[6253]: segfault at 0 ip 00007f666226bc99 sp 00007fff82b7fe70 error 4 in libgtk-3.so.0.2200.10[7f6661f82000+6f4000]
Mar 16 11:31:54 localhost gnome-session-binary[5291]: WARNING: App 'gnome-settings-daemon.desktop' exited with code 1
Mar 16 11:31:54 localhost gnome-session: gnome-session-binary[5291]: WARNING: App 'gnome-settings-daemon.desktop' exited with code 1
Mar 16 11:31:54 localhost gnome-session: gnome-session-binary[5291]: WARNING: App 'nautilus-classic.desktop' exited with code 1
Mar 16 11:31:54 localhost tracker-miner-apps.desktop: Received signal:15->'Terminated'
Mar 16 11:31:54 localhost tracker-miner-apps.desktop: OK
Mar 16 11:31:54 localhost gnome-session-binary[5291]: WARNING: App 'nautilus-classic.desktop' exited with code 1
Mar 16 11:31:54 localhost abrt-hook-ccpp: Process 6253 (gnome-session-failed) of user 1000 killed by SIGSEGV - dumping core
Mar 16 11:31:54 localhost tracker-extract.desktop: Received signal:15->'Terminated'
Mar 16 11:31:54 localhost tracker-miner-user-guides.desktop: Received signal:15->'Terminated'
Mar 16 11:31:54 localhost tracker-miner-user-guides.desktop: OK
Mar 16 11:31:54 localhost journal: Unable to initialize Clutter: Unable to open display ':0'
Mar 16 11:31:54 localhost journal: Unable to initialize Clutter.
Mar 16 11:31:54 localhost gnome-session-binary[5291]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 16 11:31:54 localhost gnome-session-binary: Unrecoverable failure in required component org.gnome.Shell.desktop
Mar 16 11:31:54 localhost gnome-session: gnome-session-binary[5291]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 16 11:31:54 localhost gnome-session: gnome-session-binary[5291]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Mar 16 11:31:54 localhost gnome-session-binary[5291]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Mar 16 11:31:54 localhost kernel: gnome-session-f[6268]: segfault at 0 ip 00007f34a79abc99 sp 00007fffb3287270 error 4 in libgtk-3.so.0.2200.10[7f34a76c2000+6f4000]
Mar 16 11:31:54 localhost gdm: GLib: g_hash_table_find: assertion 'version == hash_table->version' failed
Mar 16 11:31:54 localhost abrt-hook-ccpp: Process 6268 (gnome-session-failed) of user 1000 killed by SIGSEGV - ignoring (repeated crash)
Mar 16 11:31:54 localhost gdm: (gdm-display.c:1176):gdm_display_dispose: runtime check failed: (self->priv->access_file == NULL)
Mar 16 11:31:54 localhost gdm: Child process 6256 was already dead.
Mar 16 11:31:54 localhost systemd: Stopped GNOME Display Manager.
Mar 16 11:31:54 localhost abrt-hook-ccpp: Saved core dump of pid 6268 to core.6268 at /home/test (1847296 bytes)
Mar 16 11:31:54 localhost abrt-server: Package 'gnome-session' isn't signed with proper key
Mar 16 11:31:54 localhost abrt-server: 'post-create' on '/var/spool/abrt/ccpp-2017-03-16-11:31:54-6253' exited with 1
Mar 16 11:31:54 localhost abrt-server: Deleting problem directory '/var/spool/abrt/ccpp-2017-03-16-11:31:54-6253'
Mar 16 11:31:57 localhost systemd-logind: Removed session 13.
Mar 16 11:31:57 localhost systemd: Removed slice user-1000.slice.
Mar 16 11:31:57 localhost systemd: Stopping user-1000.slice.
Comment 15 Jiri Koten 2017-04-05 04:38 EDT
Created attachment 1268884 [details]
backtrace
Comment 17 Xiaolong Wong 2017-05-18 03:30:21 EDT
Such output was detected on nearly all Intel test platforms with RHEL7.4-alpha (3.10.0-657 kernel), which was not seen with RHEL7.3:
[18685.973511] gnome-session-f[6582]: segfault at 0 ip 00007f5e7fcfbc99 sp 00007fff8dde9300 error 4 in libgtk-3.so.0.2200.10[7f5e7fa12000+6f4000]
Comment 20 Ray Strode [halfline] 2017-05-30 12:55:34 EDT
*** Bug 1397773 has been marked as a duplicate of this bug. ***
Comment 23 Ray Strode [halfline] 2017-06-08 14:13:46 EDT
*** Bug 1436758 has been marked as a duplicate of this bug. ***
Comment 24 Nanda Kishore Chinnaram 2017-06-08 14:25:40 EDT
Ray,
could you please share the root cause details that cause the issue and how it was fixed?

Thanks,
Nanda
Comment 25 Ray Strode [halfline] 2017-06-08 15:24:24 EDT
This particular crash is in the session failure dialog (often called the "fail whale").  The session failure dialog is presented when one or more required components of the session could not be started. 

I believe a crash in the X server was leading to GNOME shell and gnome-settings-daemon exiting and failing to restart (because the X server is no longer running).  This lead gnome-session to try to show the session failure dialog, but, of course, without an X server it can't display the dialog either.  Rather than silently exiting, a bug in error handling lead to the session failure dialog crashing if the X server was unavailable.

So this report is a secondary problem report. Various primary bugs could lead this this crash occurring.

# abrt-cli list

may list a crash from the X server.  Can you post the output of that command here?
Comment 27 Ray Strode [halfline] 2017-06-27 13:41:24 EDT
*** Bug 1449380 has been marked as a duplicate of this bug. ***
Comment 28 errata-xmlrpc 2017-08-01 18:57:55 EDT
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, 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/RHSA-2017:2128

Note You need to log in before you can comment on or make changes to this bug.