FS#56365 - [gnome-software] assertion error related to appstream results in crash

Attached to Project: Community Packages
Opened by Daenney (daenney) - Saturday, 18 November 2017, 01:41 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 22 November 2017, 21:49 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

gnome-software crashes with what appears to be an assertion error related to appstream data. I suspect the source of the bug is in archlinux-appstream-data but gnome-software should handle this correctly.

Installed software:
community/gnome-software 3.26.2-1 [installed]
GNOME Software Tools
community/fwupd 1.0.1-1 [installed]
A simple daemon to allow session software to update firmware
community/fwupdate 9-3 [installed]
Tools for using the ESRT and UpdateCapsule() to apply firmware updates
extra/appstream-glib 0.7.4-1 [installed]
Objects and methods for reading and writing AppStream metadata
extra/archlinux-appstream-data 20171017-1 [installed]
Arch Linux application database for AppStream-based software centers

Steps to reproduce:
* Launch gnome-software

The following lines are particularly suspicious from the crash log:
fwupd_release_get_appstream_id: assertion 'FWUPD_IS_RELEASE (release)' failed
as_utils_unique_id_build: assertion 'id != NULL' failed
gs_plugin_cache_lookup: assertion 'key != NULL' failed

The get_appstream_id related error is probably the cullprit, hence my suspicion the trigger for this is archlinux-appstream-appdata. The two following assertion errors would be problems in gnome-software upstream.

Crash log:
[session uid=1000 pid=9762] Activating service name='org.gnome.Software' requested by ':1.13' (uid=1000 pid=9812 comm="/usr/bin/gnome-shell ")
[session uid=1000 pid=9762] Successfully activated service 'org.gnome.Software'
enabled plugins: shell-extensions, packagekit-offline, packagekit-proxy, fwupd, desktop-categories, packagekit, packagekit-upgrade, packagekit-local, systemd-updates, os-release, packagekit-refresh, appstream, flatpak, hardcoded-blacklist, epiphany, steam, hardcoded-popular, generic-updates, desktop-menu-path, rewrite-resource, packagekit-refine, hardcoded-featured, modalias, icons, provenance, packagekit-history, odrs, provenance-license, key-colors, key-colors-metadata
disabled plugins: ostree, ubuntu-reviews, dpkg, repos, fedora-tagger-usage, ubuntuone, fedora-pkgdb-collections, dummy
failed to set proxy: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_2dengine_2derror_2dquark.Code3: setting the proxy failed: failed to get the session
failed to set proxies: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_2dengine_2derror_2dquark.Code3: setting the proxy failed: failed to get the session
running get-updates-historical with timeout=60 on plugin=fwupd on apps took 1ms
get-updates transaction /4_aeaeadee from uid 1000 finished with success after 337ms
running refresh with failure-flags=use-events with timeout=60 with cache age=any on plugin=odrs took 399ms
running get-distro-updates with refine-flags=require-version,require-setup-action,require-update-details,require-upgrade-removed,require-provenance,require-icon with failure-flags=use-events with timeout=60 on plugin=appstream took 1ms
running refine with refine-flags=require-version,require-update-details,require-provenance,require-icon with failure-flags=fatal-any with timeout=60 on apps */*/*/os-upgrade/archlinux.www.Arch Linux-(null)/* took 3ms
fwupd_release_get_appstream_id: assertion 'FWUPD_IS_RELEASE (release)' failed
as_utils_unique_id_build: assertion 'id != NULL' failed
gs_plugin_cache_lookup: assertion 'key != NULL' failed
segfault at 0 ip 00007ff20ba1b310 sp 00007ff1e5edb8b8 error 4 in libglib-2.0.so.0.5400.0[7ff20b9d2000+11b000]
Started Process Core Dump (PID 26614/UID 0).
Process 26593 (gnome-software) of user 1000 dumped core.

Stack trace of thread 26601:
#0 0x00007ff20ba1b310 g_str_hash (libglib-2.0.so.0)
#1 0x00007ff20ba1ccf4 g_hash_table_lookup (libglib-2.0.so.0)
#2 0x000055b7d3d661cd gs_plugin_cache_add (gnome-software)
#3 0x00007ff1eefdf750 n/a (libgs_plugin_fwupd.so)
#4 0x00007ff1eefdfb33 n/a (libgs_plugin_fwupd.so)
#5 0x000055b7d3d675ab n/a (gnome-software)
#6 0x000055b7d3d750d5 n/a (gnome-software)
#7 0x000055b7d3d77aea n/a (gnome-software)
#8 0x00007ff20b72b0a9 n/a (libgio-2.0.so.0)
#9 0x00007ff20ba2df5b n/a (libglib-2.0.so.0)
#10 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#11 0x00007ff20c78108a start_thread (libpthread.so.0)
#12 0x00007ff20c4b847f __clone (libc.so.6)

Stack trace of thread 26593:
#0 0x00007ff20c4adf7b __poll (libc.so.6)
#1 0x00007ff20ba3eed3 n/a (libglib-2.0.so.0)
#2 0x00007ff20ba3efae g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007ff20b66f5ae g_application_run (libgio-2.0.so.0)
#4 0x000055b7d3d1d479 main (gnome-software)
#5 0x00007ff20c3e2f6a __libc_start_main (libc.so.6)
#6 0x000055b7d3d1d53a _start (gnome-software)

Stack trace of thread 26594:
#0 0x00007ff20c4adf7b __poll (libc.so.6)
#1 0x00007ff20ba3eed3 n/a (libglib-2.0.so.0)
#2 0x00007ff20ba3efae g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007ff20ba3f002 n/a (libglib-2.0.so.0)
#4 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#5 0x00007ff20c78108a start_thread (libpthread.so.0)
#6 0x00007ff20c4b847f __clone (libc.so.6)

Stack trace of thread 26610:
#0 0x00007ff20c4b2e79 syscall (libc.so.6)
#1 0x00007ff20ba665dd n/a (libglib-2.0.so.0)
#2 0x00007ff20c1a6fbb as_profile_start_literal (libappstream-glib.so.8)
#3 0x00007ff20c1a722c as_profile_start (libappstream-glib.so.8)
#4 0x000055b7d3d75098 n/a (gnome-software)
#5 0x000055b7d3d77aea n/a (gnome-software)
#6 0x00007ff20b72b0a9 n/a (libgio-2.0.so.0)
#7 0x00007ff20ba2df5b n/a (libglib-2.0.so.0)
#8 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#9 0x00007ff20c78108a start_thread (libpthread.so.0)
#10 0x00007ff20c4b847f __clone (libc.so.6)

Stack trace of thread 26595:
#0 0x00007ff20c4adf7b __poll (libc.so.6)
#1 0x00007ff20ba3eed3 n/a (libglib-2.0.so.0)
#2 0x00007ff20ba3ff42 g_main_loop_run (libglib-2.0.so.0)
#3 0x00007ff20b68b208 n/a (libgio-2.0.so.0)
#4 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#5 0x00007ff20c78108a start_thread (libpthread.so.0)
#6 0x00007ff20c4b847f __clone (libc.so.6)

Stack trace of thread 26596:
#0 0x00007ff20c4adf7b __poll (libc.so.6)
#1 0x00007ff20ba3eed3 n/a (libglib-2.0.so.0)
#2 0x00007ff20ba3efae g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007ff1fc52cb0e n/a (libdconfsettings.so)
#4 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#5 0x00007ff20c78108a start_thread (libpthread.so.0)
#6 0x00007ff20c4b847f __clone (libc.so.6)

Stack trace of thread 26609:
#0 0x00007ff20c4adf7b __poll (libc.so.6)
#1 0x00007ff20ba3eed3 n/a (libglib-2.0.so.0)
#2 0x00007ff20ba3ff42 g_main_loop_run (libglib-2.0.so.0)
#3 0x00007ff20b70b4e2 g_dbus_connection_send_message_with_reply_sync (libgio-2.0.so.0)
#4 0x00007ff20b70b92c n/a (libgio-2.0.so.0)
#5 0x00007ff20b69163f n/a (libgio-2.0.so.0)
#6 0x00007ff20b6917e4 g_dbus_proxy_call_sync (libgio-2.0.so.0)
#7 0x00007ff1efdfd002 gs_plugin_add_installed (libgs_plugin_shell-extensions.so)
#8 0x000055b7d3d675ab n/a (gnome-software)
#9 0x000055b7d3d750d5 n/a (gnome-software)
#10 0x000055b7d3d77aea n/a (gnome-software)
#11 0x00007ff20b72b0a9 n/a (libgio-2.0.so.0)
#12 0x00007ff20ba2df5b n/a (libglib-2.0.so.0)
#13 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#14 0x00007ff20c78108a start_thread (libpthread.so.0)
#15 0x00007ff20c4b847f __clone (libc.so.6)

Stack trace of thread 26597:
#0 0x00007ff20c4b2e79 syscall (libc.so.6)
#1 0x00007ff20ba665dd n/a (libglib-2.0.so.0)
#2 0x00007ff20bd014b9 n/a (libgobject-2.0.so.0)
#3 0x00007ff20bd117ef n/a (libgobject-2.0.so.0)
#4 0x00007ff20bd12090 g_object_new_valist (libgobject-2.0.so.0)
#5 0x00007ff20bd12a4a g_object_new (libgobject-2.0.so.0)
#6 0x000055b7d3d69641 gs_app_new (gnome-software)
#7 0x00007ff1f6bb4268 gs_appstream_create_app (libgs_plugin_flatpak.so)
#8 0x00007ff1ee1a61a9 gs_plugin_refine_wildcard (libgs_plugin_appstream.so)
#9 0x000055b7d3d67765 n/a (gnome-software)
#10 0x000055b7d3d76f56 n/a (gnome-software)
#11 0x000055b7d3d774b9 n/a (gnome-software)
#12 0x000055b7d3d778d3 n/a (gnome-software)
#13 0x00007ff20b72b0a9 n/a (libgio-2.0.so.0)
#14 0x00007ff20ba2df5b n/a (libglib-2.0.so.0)
#15 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#16 0x00007ff20c78108a start_thread (libpthread.so.0)
#17 0x00007ff20c4b847f __clone (libc.so.6)

Stack trace of thread 26611:
#0 0x00007ff20c78a70c __lll_lock_wait (libpthread.so.0)
#1 0x00007ff20c783a96 __pthread_mutex_lock (libpthread.so.0)
#2 0x00007ff20b42524e g_module_symbol (libgmodule-2.0.so.0)
#3 0x000055b7d3d61450 gs_plugin_get_symbol (gnome-software)
#4 0x000055b7d3d67103 n/a (gnome-software)
#5 0x000055b7d3d750d5 n/a (gnome-software)
#6 0x000055b7d3d77aea n/a (gnome-software)
#7 0x00007ff20b72b0a9 n/a (libgio-2.0.so.0)
#8 0x00007ff20ba2df5b n/a (libglib-2.0.so.0)
#9 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#10 0x00007ff20c78108a start_thread (libpthread.so.0)
#11 0x00007ff20c4b847f __clone (libc.so.6)

Stack trace of thread 26612:
#0 0x00007ff20c4b2e79 syscall (libc.so.6)
#1 0x00007ff20ba665dd n/a (libglib-2.0.so.0)
#2 0x000055b7d3d613bf gs_plugin_get_symbol (gnome-software)
#3 0x000055b7d3d67103 n/a (gnome-software)
#4 0x000055b7d3d750d5 n/a (gnome-software)
#5 0x000055b7d3d77aea n/a (gnome-software)
#6 0x00007ff20b72b0a9 n/a (libgio-2.0.so.0)
#7 0x00007ff20ba2df5b n/a (libglib-2.0.so.0)
#8 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#9 0x00007ff20c78108a start_thread (libpthread.so.0)
#10 0x00007ff20c4b847f __clone (libc.so.6)

Stack trace of thread 26613:
#0 0x00007ff20c4b2e79 syscall (libc.so.6)
#1 0x00007ff20ba665dd n/a (libglib-2.0.so.0)
#2 0x000055b7d3d613bf gs_plugin_get_symbol (gnome-software)
#3 0x000055b7d3d67103 n/a (gnome-software)
#4 0x000055b7d3d750d5 n/a (gnome-software)
#5 0x000055b7d3d763e3 n/a (gnome-software)
#6 0x00007ff20b72b0a9 n/a (libgio-2.0.so.0)
#7 0x00007ff20ba2df5b n/a (libglib-2.0.so.0)
#8 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#9 0x00007ff20c78108a start_thread (libpthread.so.0)
#10 0x00007ff20c4b847f __clone (libc.so.6)

Stack trace of thread 26607:
#0 0x00007ff20c3efdb1 transcmp (libc.so.6)
#1 0x00007ff20c4b466b __tfind (libc.so.6)
#2 0x00007ff20c3f0c73 __dcigettext (libc.so.6)
#3 0x00007ff2076cf49d dlerror (libdl.so.2)
#4 0x00007ff20b42526d g_module_symbol (libgmodule-2.0.so.0)
#5 0x000055b7d3d61450 gs_plugin_get_symbol (gnome-software)
#6 0x000055b7d3d67103 n/a (gnome-software)
#7 0x000055b7d3d750d5 n/a (gnome-software)
#8 0x000055b7d3d77aea n/a (gnome-software)
#9 0x00007ff20b72b0a9 n/a (libgio-2.0.so.0)
#10 0x00007ff20ba2df5b n/a (libglib-2.0.so.0)
#11 0x00007ff20ba331eb n/a (libglib-2.0.so.0)
#12 0x00007ff20c78108a start_thread (libpthread.so.0)
#13 0x00007ff20c4b847f __clone (libc.so.6)
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Wednesday, 22 November 2017, 21:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  seems to have been fixed with 3.26.3-1
Comment by Daenney (daenney) - Saturday, 18 November 2017, 13:45 GMT
One additional thing of note from that crash log:

running refine with refine-flags=require-version,require-update-details,require-provenance,require-icon with failure-flags=fatal-any with timeout=60 on apps */*/*/os-upgrade/archlinux.www.Arch Linux-(null)/* took 3ms

/archlinux.www.Arch Linux-(null) <-- that null doesn't look right

Loading...