Skip to content

main-Avoid-meta-finalize.patch: Leak GJS to work around LP: #1964458

Which is the cause of gnome-shell crashes in jammy live sessions. We also remove some old text that only applied to GNOME 40 (impish).

Leaking is ugly, but:

  1. It's literally at the end of main() so for general memory consumption it makes no difference.
  2. Our best guess of the cause of LP: #1964458 is GJS and the GJS author doesn't yet have any suggestions.
  3. The crash LP: #1964458 doesn't happen in development and doesn't happen even in release if you attach a debugger. We are unable to debug it, only to view incomplete core files from optimized builds running in live sessions.
  4. The expected lifetime of this change is limited as the patch already describes. Efforts to fully clean up the shutdown procedure are expected to land in future GNOME releases.
Edited by Daniel van Vugt

Merge request reports