gnome-software crashed with SIGSEGV in as_format_get_kind()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
appstream-glib (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Zesty |
Won't Fix
|
High
|
Unassigned | ||
Artful |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
errors.ubuntu.com [1] is showing a high crash rate in GNOME Software. This appears to be due to apt updates occuring outside of GNOME Software and triggering access of a NULL pointer inside appstream-glib. Upstream fixed this crash by correctly handling the NULL pointer in appstream-glib 0.7.0. I have not been able to locally reproduce the issue.
[Test Case]
1. Run GNOME Software
Expected result:
This crash doesn't show in errors.ubuntu.com.
Observed result:
This crash shows in errors.ubuntu.com.
[Regression Potential]
Low, the fix is a simple check for a NULL value. It is already running this way in 17.10 (no significant errors showing there).
[1] https:/
information type: | Private → Public |
description: | updated |
Changed in appstream-glib (Ubuntu Zesty): | |
assignee: | nobody → Robert Ancell (robert-ancell) |
Changed in appstream-glib (Ubuntu Artful): | |
assignee: | Robert Ancell (robert-ancell) → nobody |
status: | Triaged → Fix Released |
Changed in appstream-glib (Ubuntu Zesty): | |
importance: | Undecided → High |
Changed in appstream-glib (Ubuntu Zesty): | |
status: | New → Fix Committed |
Changed in appstream-glib (Ubuntu Zesty): | |
assignee: | Robert Ancell (robert-ancell) → nobody |
StacktraceTop: format@ entry=0x0) at as-format.c:152 0x561a8c4b41a0, app=0x561a8e4fe1a0) at as-store.c:1231 load_yaml_ file (error= 0x7ffe80bd2bc0, cancellable=0x0, scope=AS_ APP_SCOPE_ SYSTEM, file=0x561a8e4f e1a0, store=0x561a8c4 b41a0) at as-store.c:1669 from_file_ internal (store= store@entry= 0x561a8c4b41a0, file=file@ entry=0x561a8da 9bba0, scope=AS_ APP_SCOPE_ SYSTEM, arch=<optimized out>, load_flags= load_flags@ entry=AS_ STORE_LOAD_ FLAG_NONE, watch_flags= watch_flags@ entry=AS_ STORE_WATCH_ FLAG_NONE, cancellable=0x0, error=0x7ffe80b d2bc0) at as-store.c:1890 watch_source_ added (store= store@entry= 0x561a8c4b41a0, filename=<optimized out>) at as-store.c:1747
as_format_get_kind (format=
as_store_add_app (store=
as_store_
as_store_
as_store_