For attention of the Ubuntu packaging team:

The "all_apps.patch" in the debian/patches directory of the malcontent
APT package (introduced by Ubuntu to add Snap support) contains a logic
error. When getting the commandline for a Snap, the
g_app_info_get_commandline function is used, which may either return a
string or NULL. However, the output of this is directly passed – without
any checks – into g_strsplit, which can't accept NULL input. This
sometimes results in GNOME Shell crashing due to the assertion failing
in g_strsplit.

Our patch (attached to this comment) simply coalesces the NULL value with an 
empty string when getting the output of g_app_info_get_commandline.
For reference, this patch is built against the malcontent 0.11.1-1ubuntu1.3 
package in Ubuntu 24.04. However, this issue affects all subsequent versions of 
malcontent in newer versions of Ubuntu, including version 25.10 in our testing.

** Patch added: "This patch layers on top of the existing all_apps.patch"
   
https://bugs.launchpad.net/ubuntu/+source/malcontent/+bug/2138768/+attachment/5940575/+files/zorin-Fix-Snap-null-string-error.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2138768

Title:
  Installing edge of OpenStickies (Free) from snap store breaks the
  whole OS even after restart

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorin-os/+bug/2138768/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to