This bug was fixed in the package gnome-initial-setup - 3.38.1-1ubuntu2
---------------
gnome-initial-setup (3.38.1-1ubuntu2) hirsute; urgency=medium
* Don't cast a GtkLabel into a GisSnapTile.
We populate a GtkFlowBox with tiles representing features snaps. There
might not be exactly enough to fill up the entire number of rows, so the
remaining cells are filled up with blank space, which is actually a
GtkLabel.
When clicking these tiles, we launch Software to the application that's
been clicked. That is done by looking inside the tile to find its
associated snap.
We try to do this 'looking inside' for the blank tiles too. But they
aren't snaps at all - as mentioned above, they are GtkLabels. We illegally
cast to a snap tile, and then operate on it. At best, this leads to a
warning on stderr and Software getting spawned to display a nonsense
application. At worst we crash.
Fix this by altering the callback to check if we have clicked on a snap or
not. In the not case, simply return and do nothing. (LP: #1901548)
-- Iain Lane <[email protected]> Tue, 27 Oct 2020 17:57:59 +0000
** Changed in: gnome-initial-setup (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-initial-setup in Ubuntu.
https://bugs.launchpad.net/bugs/1901548
Title:
gnome-initial-setup SIGSEGV in snapd_snap_get_name()
Status in gnome-initial-setup package in Ubuntu:
Fix Released
Status in gnome-initial-setup source package in Focal:
Fix Committed
Status in gnome-initial-setup source package in Groovy:
Fix Committed
Bug description:
[ Description ]
Clicking on a blank spot on the featured snaps page can lead to a
crash.
[ QA ]
1. With a new user, or by running `/usr/libexec/gnome-initial-setup
--existing-user`, launch g-i-s.
2. Advance through until you get to the last page - the one with the snap
tiles advertising the featured snaps (you need to be online).
3. Go to the last page if there's no blank square on the current page by
clicking the right arrow.
4. Click one of the blank squares a few times.
Either g-i-s will crash, or it will launch Software with a bogus app
and Software will display a notification saying the app is not
supported.
Check the journal or the stderr output and look for the invalid cast
in the bad case: 'invalid cast from 'GtkFlowBoxChild' to
'GisSnapTile''
[ Fix ]
In the callback which handles clicks, check if we're clicking a blank
tile or a real one and simply return in the blank case.
[ Regression potential ]
Perhaps this could break clicking of *any* tile, if we misdetect which
is real and always return false there. Double check that clicking
'good' tiles still launches Software to the right page.
[ Original report ]
The error tracker suggests it's unhappy there but the stacktrace generation
is failing
https://errors.ubuntu.com/problem/1fd67017b65f8d00055dc85eaf7c43195464c467
Browsing the journal extract on the reports there is a warning which
seems likely to be a distro patch issue at least
'invalid cast from 'GtkFlowBoxChild' to 'GisSnapTile''
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-initial-setup/+bug/1901548/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp