From 4663d4734164b475563c17298b4c21c31abf59b8 Mon Sep 17 00:00:00 2001 From: Jonas Ådahl Date: Oct 21 2021 10:09:14 +0000 Subject: Work around crashy tear down --- diff --git a/0001-main-Leak-the-GJS-context-and-ShellGlobal.patch b/0001-main-Leak-the-GJS-context-and-ShellGlobal.patch new file mode 100644 index 0000000..bd5146e --- /dev/null +++ b/0001-main-Leak-the-GJS-context-and-ShellGlobal.patch @@ -0,0 +1,31 @@ +From 9a0ecad2b94243fbed5290f78d967d8714c3d3e4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jonas=20=C3=85dahl?= +Date: Wed, 6 Oct 2021 10:00:43 +0200 +Subject: [PATCH] main: Leak the GJS context and ShellGlobal + +There are many crash-on-exit happening as a side effect of destroying +the GJS context. Work around these until we have a better solution by +leaking them. +--- + src/main.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/main.c b/src/main.c +index 3cd9e10a5b..ce56e2a87a 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -570,9 +570,11 @@ main (int argc, char **argv) + + shell_profiler_shutdown (); + ++#if 0 + g_debug ("Doing final cleanup"); + _shell_global_destroy_gjs_context (shell_global_get ()); + g_object_unref (shell_global_get ()); ++#endif + + return ecode; + } +-- +2.31.1 + diff --git a/gnome-shell.spec b/gnome-shell.spec index f3b0969..142abfe 100644 --- a/gnome-shell.spec +++ b/gnome-shell.spec @@ -2,7 +2,7 @@ Name: gnome-shell Version: 41.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Window management and application launching for GNOME License: GPLv2+ @@ -28,6 +28,8 @@ Patch40001: 0001-gdm-Work-around-failing-fingerprint-auth.patch # Fix crash if settings get updated after an entry is destroyed (#2009637) Patch50001: 0001-st-password-entry-Fix-crash-when-DConf-changes-after.patch +# Work around crashy tear down +Patch60001: 0001-main-Leak-the-GJS-context-and-ShellGlobal.patch %define eds_version 3.33.1 %define gnome_desktop_version 3.35.91 @@ -242,6 +244,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/evolution-calendar.de %{_mandir}/man1/gnome-shell.1* %changelog +* Tue Oct 19 2021 Jonas Ådahl - 41.0-5 +- Work around crashy tear down + * Tue Oct 12 2021 Ray Strode - 41.0-4 - Fix StPasswordEntry crash Resolves: #2009637