gnome-initial-setup SIGSEGV in snapd_snap_get_name()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-initial-setup (Ubuntu) |
Fix Released
|
High
|
Iain Lane | ||
Focal |
Fix Released
|
High
|
Iain Lane | ||
Groovy |
Fix Released
|
High
|
Iain Lane |
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/
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:/
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''
tags: | added: arm64 groovy rls-gg-incoming |
Changed in gnome-initial-setup (Ubuntu): | |
importance: | Undecided → High |
tags: | removed: rls-gg-incoming |
Changed in gnome-initial-setup (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in gnome-initial-setup (Ubuntu Groovy): | |
importance: | Undecided → High |
I looked at the code. I think in on_app_clicked() (in the distro patch) we need to check the child is a snap tile, or do nothing if not.
Will check this tomorrow.