gnome-shell crashed with SIGSEGV in meta_context_terminate(context=0x0) from process_ice_messages()

Bug #1959937 reported by kgabi
96
This bug affects 12 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Fix Released
Unknown
Mutter
Fix Released
Unknown
gnome-shell (Fedora)
Confirmed
Undecided
mutter (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Committed
Medium
Daniel van Vugt

Bug Description

https://errors.ubuntu.com/problem/fc75ee04fbc965ec925af6675c012cd4e03a770b

---

The error occurred when I ran apt update/upgrade in a terminal window after logging in.

ProblemType: Crash
DistroRelease: Ubuntu 22.04
Package: gnome-shell 41.3-1ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
Uname: Linux 5.15.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu76
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Feb 3 09:03:52 2022
DisplayManager: gdm3
ExecutablePath: /usr/bin/gnome-shell
GsettingsChanges:
 b'org.gnome.shell' b'welcome-dialog-last-shown-version' b"'41.3'"
 b'org.gnome.desktop.input-sources' b'sources' b"[('xkb', 'hu')]"
 b'org.gnome.desktop.interface' b'gtk-im-module' b"'gtk-im-context-simple'"
 b'org.gnome.desktop.notifications' b'application-children' b"['gnome-initial-setup']"
 b'org.gnome.desktop.privacy' b'report-technical-problems' b'true'
InstallationDate: Installed on 2022-02-03 (0 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220202)
ProcCmdline: /usr/bin/gnome-shell
RelatedPackageVersions: mutter-common 41.3-1ubuntu1
Signal: 11
SourcePackage: gnome-shell
StacktraceTop:
 meta_context_terminate () from /lib/x86_64-linux-gnu/libmutter-9.so.0
 ?? () from /lib/x86_64-linux-gnu/libmutter-9.so.0
 g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
Title: gnome-shell crashed with SIGSEGV in meta_context_terminate()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
separator:

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Description of problem:
An application named "Backup" downloaded from the app store finished making back up
of the whole system, then I unplugged the external USB, closed the application, a browser
named "Brave" was running, when issued the command "poweroff" in the terminal, and my
macbook pro 2012 shut down, once I restarted I noticed this error message.

Version-Release number of selected component:
gnome-shell-41.2-1.fc35

Additional info:
reporter: libreport-2.15.2
backtrace_rating: 4
cgroup: 0::/user.slice/user-42.slice/session-c1.scope
cmdline: /usr/bin/gnome-shell
crash_function: meta_context_terminate
executable: /usr/bin/gnome-shell
journald_cursor: s=3036cc978c2c4faca5c818849161ed45;i=1432e;b=de82c8ea70844d16a59c2bf73d776781;m=5a37134;t=5d4495cd257c9;x=9eb7bfee5d98542a
kernel: 5.15.11-200.fc35.x86_64
rootdir: /
runlevel: N 5
type: CCpp
uid: 42

Truncated backtrace:
Thread no. 1 (4 frames)
 #0 meta_context_terminate at ../src/core/meta-context.c:451
 #1 process_ice_messages at ../src/x11/session.c:116
 #5 g_main_context_iterate.constprop.0 at ../glib/gmain.c:4175
 #7 meta_context_run_main_loop at ../src/core/meta-context.c:433

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848679
File: backtrace

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848680
File: core_backtrace

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848681
File: cpuinfo

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848682
File: dso_list

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848683
File: environ

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848684
File: exploitable

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848685
File: limits

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848686
File: maps

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848687
File: mountinfo

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848688
File: open_fds

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848689
File: proc_pid_status

Revision history for this message
In , khoorasan (khoorasan-redhat-bugs) wrote :

Created attachment 1848690
File: var_log_messages

Revision history for this message
In , bkb (bkb-redhat-bugs) wrote :

*** Bug 2039748 has been marked as a duplicate of this bug. ***

Revision history for this message
kgabi (kgabi) wrote :
information type: Private → Public
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 meta_context_terminate (context=0x0) at ../src/core/meta-context.c:451
 process_ice_messages (channel=<optimized out>, condition=<optimized out>, user_data=0x55ee1d0ac460) at ../src/x11/session.c:116
 process_ice_messages (channel=<optimized out>, condition=<optimized out>, user_data=0x55ee1d0ac460) at ../src/x11/session.c:95
 g_main_dispatch (context=0x55ee1cd2e720) at ../../../glib/gmain.c:3413
 g_main_context_dispatch (context=0x55ee1cd2e720) at ../../../glib/gmain.c:4131

tags: removed: need-amd64-retrace
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report.

I too have noticed gnome-shell (from gdm's login screen) leaving crash files since the upgrade to 41. I was hoping we fixed all these in https://launchpad.net/ubuntu/+source/gnome-shell/40.5-1ubuntu2 but obviously not...

Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 meta_context_terminate (context=0x0) at ../src/core/meta-context.c:451
 process_ice_messages (channel=<optimized out>, condition=<optimized out>, user_data=0x55ee1d0ac460) at ../src/x11/session.c:116
 process_ice_messages (channel=<optimized out>, condition=<optimized out>, user_data=0x55ee1d0ac460) at ../src/x11/session.c:95
 g_main_context_check (context=0x55ee1d06aff0, max_priority=1, fds=<optimized out>, n_fds=<optimized out>) at ../../../glib/gmain.c:4111
 ?? ()

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in gnome-shell (Ubuntu):
importance: Undecided → Medium
Revision history for this message
In , awilliam (awilliam-redhat-bugs) wrote :

I'm looking into a problem in one of the openQA tests - the desktop_login test - and it seems related to this crash.

That test tests creating a couple of different user accounts and logging in, logging out, user switching and so on. Sometimes, in F36 and Rawhide, when we try to log out of an account, it takes way longer than expected to actually end the session and go back to GDM - about a minute and a half (usually it's a few seconds).

I grabbed the logs from one such failure and found what looks like this same crash logged right around the time the session finally ended and we returned to GDM:

Thread 1 (Thread 0x7ff8e3f475c0 (LWP 3631)):
#0 meta_context_terminate (context=0x0) at ../src/core/meta-context.c:451
        _g_boolean_var_ = <optimized out>
        priv = 0xffffffffffffffa0
        __func__ = "meta_context_terminate"
#1 0x00007ff8ea67ba86 in process_ice_messages (channel=<optimized out>, condition=<optimized out>, user_data=0x7ff8ed0de6f0) at ../src/x11/session.c:116
        ice_connection = <optimized out>
        connection = <optimized out>
        status = <optimized out>
#2 process_ice_messages (channel=<optimized out>, condition=<optimized out>, user_data=0x7ff8ed0de6f0) at ../src/x11/session.c:95
        ice_connection = 0x7ff8ed0de6f0
        connection = <optimized out>
        status = <optimized out>
#3 0x00007ff8eb2ca1bf in g_main_dispatch (context=0x7ff8ecc614f0) at ../glib/gmain.c:3413
        dispatch = 0x7ff8eb31d950 <g_io_unix_dispatch>
        prev_source = 0x0
        begin_time_nsec = 543677000869
        was_in_call = 0
        user_data = 0x7ff8ed0de6f0
        callback = 0x7ff8ea67ba30 <process_ice_messages>
        cb_funcs = 0x7ff8eb3af3e0 <g_source_callback_funcs>
        cb_data = 0x7ff8ed512480
        need_destroy = <optimized out>
        source = 0x7ff8ecf7b0e0
        current = 0x7ff8ecc9fe60
        i = 0
        __func__ = <optimized out>
#4 g_main_context_dispatch (context=0x7ff8ecc614f0) at ../glib/gmain.c:4131
No locals.
#5 0x00007ff8eb31f2d8 in g_main_context_iterate.constprop.0 (context=0x7ff8ecc614f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4207
        max_priority = 2147483647
        timeout = 102634
        some_ready = 1
        nfds = 13
        allocated_nfds = <optimized out>
        fds = <optimized out>
        begin_time_nsec = 489151985844
#6 0x00007ff8eb2c98ef in g_main_loop_run (loop=0x7ff8ee8c5b50) at ../glib/gmain.c:4405
        self = <optimized out>
        __func__ = "g_main_loop_run"
#7 0x00007ff8ea642289 in meta_context_run_main_loop (context=<optimized out>, error=0x7ffd82a13550) at ../src/core/meta-context.c:433
        priv = 0x7ff8ecc5c000
        __func__ = "meta_context_run_main_loop"
#8 0x00007ff8eb8b8dd1 in main (argc=<optimized out>, argv=<optimized out>) at ../src/main.c:563
        context = 0x7ff8ecc5c060
        error = 0x0
        ecode = 0

I note there's also an Ubuntu bug for a similar traceback:

https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1959937

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Changed in gnome-shell (Fedora):
importance: Unknown → Undecided
status: Unknown → Confirmed
summary: - gnome-shell crashed with SIGSEGV in meta_context_terminate()
+ gnome-shell crashed with SIGSEGV in meta_context_terminate(context=0x0)
+ from process_ice_messages()
Changed in mutter (Ubuntu):
status: New → Confirmed
Changed in gnome-shell:
status: Unknown → New
Changed in mutter (Ubuntu):
status: Confirmed → Fix Committed
no longer affects: gnome-shell (Ubuntu)
tags: added: fixed-in-43.0 fixed-upstream
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
tags: added: rls-jj-incoming
tags: added: fixed-in-43.rc
removed: fixed-in-43.0
Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
Changed in mutter:
status: Unknown → Fix Released
Changed in gnome-shell:
status: New → Fix Released
Revision history for this message
In , dylan.swift (dylan.swift-redhat-bugs) wrote :

*** Bug 2140575 has been marked as a duplicate of this bug. ***

Changed in mutter (Ubuntu Jammy):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Daniel van Vugt (vanvugt)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in mutter (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: fixed-in-mutter-42.8
removed: rls-jj-incoming
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.