Installed, popular and featured snaps are loaded in parallel threads can crash
Bug #1716633 reported by
errors.ubuntu.com bug bridge
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-software (Ubuntu) |
Fix Released
|
High
|
Robert Ancell | ||
Xenial |
Fix Released
|
High
|
Robert Ancell | ||
Zesty |
Fix Released
|
High
|
Robert Ancell | ||
Artful |
Fix Released
|
High
|
Robert Ancell | ||
Bionic |
Fix Released
|
High
|
Robert Ancell |
Bug Description
[Impact]
GNOME Software has a cache that can be accessed by multiple threads. This can cause GNOME Software to crash. This seems to have been caused by adding support for featured snaps (bug 1663097) as the popular, featured and installed snaps are all requested on different threads.
[Test Case]
Since this is a random crash there's not a good test case. Could be checked by looking at errors.ubuntu.com crash reports or repeated restarts of GNOME Software to see if it crashes on startup.
[Regression Potential]
Solution is to add a lock around this cache. Some risk of breaking related code.
description: | updated |
Changed in gnome-software (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Robert Ancell (robert-ancell) |
tags: | added: gnome-software-snap |
Changed in gnome-software (Ubuntu Artful): | |
importance: | Undecided → High |
Changed in gnome-software (Ubuntu Zesty): | |
importance: | Undecided → High |
Changed in gnome-software (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in gnome-software (Ubuntu Artful): | |
status: | New → Triaged |
Changed in gnome-software (Ubuntu Zesty): | |
status: | New → Triaged |
Changed in gnome-software (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in gnome-software (Ubuntu Bionic): | |
status: | Confirmed → Triaged |
Changed in gnome-software (Ubuntu Artful): | |
assignee: | nobody → Robert Ancell (robert-ancell) |
Changed in gnome-software (Ubuntu Zesty): | |
assignee: | nobody → Robert Ancell (robert-ancell) |
Changed in gnome-software (Ubuntu Xenial): | |
assignee: | nobody → Robert Ancell (robert-ancell) |
To post a comment you must log in.
The crash is in new code that was added to the Xenial SRU, not a regression in existing code.
The stacktrace doesn't point to an obvious issue that is causing this. It's possible that the hash table has been corrupted by other code gone wrong. I don't think this is worth blocking the SRU on.