gnome-software segfaults while doing updates (possibly flatpak updates) on background
Hello, today I noticed a coredump of gnome-software on my logs. I didn't start gnome-software in a while, so it most likely was doing its usual "pre-download package manager packages" and "auto-update flatpaks" routine.
OS: Arch Linux 64-bits
glib2 2.62.1-1
gnome-software 3.34.1-1
flatpak 1.5.0-1
I have this as the backtrace:
Reading symbols from /usr/bin/gnome-software...
(No debugging symbols found in /usr/bin/gnome-software)
[New LWP 1314918]
[New LWP 26849]
[New LWP 26900]
[New LWP 27387]
[New LWP 27394]
[New LWP 27388]
[New LWP 27393]
[New LWP 27392]
[New LWP 27389]
[New LWP 27390]
[New LWP 1313169]
[New LWP 27391]
[New LWP 1313306]
[New LWP 26860]
[New LWP 26861]
[New LWP 1315745]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/gnome-software --gapplication-service'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fc3d92fd430 in gs_flatpak_get_installation () from /usr/lib/gs-plugins-13/libgs_plugin_flatpak.so
[Current thread is 1 (Thread 0x7fc3b5694700 (LWP 1314918))]
(gdb) bt
#0 0x00007fc3d92fd430 in gs_flatpak_get_installation () at /usr/lib/gs-plugins-13/libgs_plugin_flatpak.so
#1 0x00007fc3d92febed in () at /usr/lib/gs-plugins-13/libgs_plugin_flatpak.so
#2 0x00007fc3d92fed8a in gs_plugin_download () at /usr/lib/gs-plugins-13/libgs_plugin_flatpak.so
#3 0x0000558cb60c1fbc in ()
#4 0x0000558cb60c2822 in ()
#5 0x0000558cb60c5b75 in ()
#6 0x00007fc3e0a10261 in g_task_thread_pool_thread (thread_data=0x7fc3c0518800, pool_data=<optimized out>) at ../glib/gio/gtask.c:1410
#7 0x00007fc3e0b414e7 in g_thread_pool_thread_proxy (data=<optimized out>) at ../glib/glib/gthreadpool.c:308
#8 0x00007fc3e0b480a1 in g_thread_proxy (data=0x7fc3c0032050) at ../glib/glib/gthread.c:805
#9 0x00007fc3dfbce4cf in start_thread () at /usr/lib/libpthread.so.0
#10 0x00007fc3e0e0c2d3 in clone () at /usr/lib/libc.so.6
(gdb)
I have glib2 debug symbols but not gnome-software debug symbols. I will rebuild gnome-software with debug symbols and if I get a better backtrace I will post here.
Logs don't tell much interesting stuff, I have this on my logs from close to the segfault:
out 17 10:24:10 delart gnome-software[26849]: libostree pull from 'almond-nightly' for appstream2/x86_64 complete
security: GPG: summary+commit http: TLS
non-delta: meta: 1 content: 0
transfer: secs: 2 size: 592 bytes
out 17 10:24:12 delart gnome-software[26849]: libostree pull from 'almond-nightly' for appstream2/x86_64 complete
security: GPG: summary+commit http: TLS
non-delta: meta: 1 content: 0
transfer: secs: 2 size: 592 bytes
out 17 10:24:12 delart gnome-software[26849]: /var/tmp/flatpak-cache-AYTQ9Z/repo-vd90FR: Pulled appstream2/x86_64 from almond-nightly
out 17 10:24:13 delart flatpak-system-helper[219264]: libostree pull from 'almond-nightly' for appstream2/x86_64 complete
security: GPG: summary+commit
non-delta: meta: 1 content: 0
transfer: secs: 0 size: 592 bytes
out 17 10:24:13 delart flatpak-system-helper[219264]: system: Pulled appstream2/x86_64 from /var/tmp/flatpak-cache-AYTQ9Z/repo-vd90FR
out 17 10:24:23 delart gnome-software[26849]: libostree pull from 'flathub' for appstream2/x86_64 complete
security: GPG: summary+commit http: TLS
non-delta: meta: 2 content: 0
transfer: secs: 4 size: 791 bytes
out 17 10:24:30 delart gnome-software[26849]: libostree pull from 'flathub' for appstream2/x86_64 complete
security: GPG: summary+commit http: TLS
non-delta: meta: 2 content: 1
transfer: secs: 7 size: 2,3 MB
out 17 10:24:30 delart gnome-software[26849]: /var/tmp/flatpak-cache-AYTQ9Z/repo-MFZvJ8: Pulled appstream2/x86_64 from flathub
out 17 10:24:31 delart flatpak-system-helper[219264]: system: Pulled appstream2/x86_64 from /var/tmp/flatpak-cache-AYTQ9Z/repo-MFZvJ8
out 17 10:24:32 delart gsd-power[1640]: Error setting property 'PowerSaveMode' on interface org.gnome.Mutter.DisplayConfig: Timeout was reached (g-io-error-quark, 24)
out 17 10:24:32 delart gsd-power[1640]: Error setting property 'PowerSaveMode' on interface org.gnome.Mutter.DisplayConfig: Timeout was reached (g-io-error-quark, 24)
out 17 10:24:40 delart gnome-software[26849]: libostree pull from 'gnome-nightly' for appstream2/x86_64 complete
security: GPG: summary+commit http: TLS
non-delta: meta: 2 content: 0
transfer: secs: 3 size: 535 bytes
out 17 10:24:46 delart gnome-software[26849]: libostree pull from 'gnome-nightly' for appstream2/x86_64 complete
security: GPG: summary+commit http: TLS
non-delta: meta: 5 content: 17
transfer: secs: 6 size: 321,1 kB
out 17 10:24:46 delart gnome-software[26849]: /var/tmp/flatpak-cache-AYTQ9Z/repo-lBAwpy: Pulled appstream2/x86_64 from gnome-nightly
out 17 10:24:47 delart flatpak-system-helper[219264]: system: Pulled appstream2/x86_64 from /var/tmp/flatpak-cache-AYTQ9Z/repo-lBAwpy
out 17 10:24:48 delart systemd[1]: systemd-hostnamed.service: Succeeded.
out 17 10:24:48 delart audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
out 17 10:24:59 delart gnome-shell[1948]: Ignored exception from dbus method: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method “Activate”
out 17 10:24:59 delart PackageKit[1313359]: get-updates transaction /4_ebdaeaeb from uid 1000 finished with success after 1004ms
out 17 10:24:59 delart PackageKit[1313359]: get-updates transaction /5_eadbbbaa from uid 1000 finished with success after 390ms
out 17 10:25:00 delart PackageKit[1313359]: get-updates transaction /6_cddcbdbc from uid 1000 finished with success after 491ms
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac5195fd30 StButton.app-well-app ("477")] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac4b681960 StWidget ("477")] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac5195fd30 StButton.app-well-app ("477")] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac4b681960 StWidget ("477")] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac4cea53d0 StWidget.app-well-app-running-dot] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac5195fd30 StButton.app-well-app ("477")] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac4b681960 StWidget ("477")] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac516c6c80 Gjs_BaseIcon.overview-icon] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac5195fd30 StButton.app-well-app ("477")] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac4b681960 StWidget ("477")] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac516c6c80 Gjs_BaseIcon.overview-icon] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac4e2a0470 StBoxLayout] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac5195fd30 StButton.app-well-app ("477")] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac4b681960 StWidget ("477")] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac516c6c80 Gjs_BaseIcon.overview-icon] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac4e2a0470 StBoxLayout] which is not in the stage.
out 17 10:25:01 delart gnome-shell[1948]: st_widget_get_theme_node called on the widget [0x55ac4adca810 StBin] which is not in the stage.
out 17 10:25:05 delart PackageKit[1313359]: get-update-detail transaction /7_bbeecece from uid 1000 finished with success after 5ms
out 17 10:25:05 delart PackageKit[1313359]: get-update-detail transaction /8_babbeecc from uid 1000 finished with success after 1ms
out 17 10:25:05 delart PackageKit[1313359]: get-update-detail transaction /9_bcbbebbc from uid 1000 finished with success after 1ms
out 17 10:25:06 delart PackageKit[1313359]: get-updates transaction /10_babbedac from uid 1000 finished with success after 853ms
out 17 10:25:07 delart PackageKit[1313359]: get-updates transaction /11_beaacacd from uid 1000 finished with success after 833ms
out 17 10:25:07 delart PackageKit[1313359]: get-updates transaction /12_cbaddead from uid 1000 finished with success after 586ms
out 17 10:25:07 delart PackageKit[1313359]: new update-packages transaction /14_acbcbbda scheduled from uid 1000
out 17 10:25:08 delart PackageKit[1313359]: get-updates transaction /13_eedcbcde from uid 1000 finished with success after 871ms
out 17 10:25:11 delart packagekitd[1313359]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
out 17 10:25:11 delart packagekitd[1313359]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
out 17 10:25:11 delart packagekitd[1313359]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
out 17 10:25:12 delart PackageKit[1313359]: 0% of complete (1 of 3)
out 17 10:25:12 delart PackageKit[1313359]: 33% of complete (2 of 3)
out 17 10:25:12 delart PackageKit[1313359]: 66% of complete (3 of 3)
out 17 10:25:12 delart PackageKit[1313359]: 100% of complete (3 of 3)
out 17 10:25:12 delart PackageKit[1313359]: 0% of complete (1 of 3)
out 17 10:25:12 delart PackageKit[1313359]: 94% of complete (3 of 3)
out 17 10:25:12 delart PackageKit[1313359]: 100% of complete (3 of 3)
out 17 10:25:12 delart PackageKit[1313359]: update-packages transaction /14_acbcbbda from uid 1000 finished with success after 4153ms
out 17 10:25:12 delart audit[26849]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 pid=26849 comm="pool-gnome-soft" exe="/usr/bin/gnome-software" sig=11 res=1
out 17 10:25:12 delart kernel: pool-gnome-soft[1314918]: segfault at 20 ip 00007fc3d92fd430 sp 00007fc3b56939f8 error 4 in libgs_plugin_flatpak.so[7fc3d92ec000+20000]
out 17 10:25:12 delart kernel: Code: 00 00 4c 8d 05 8d 10 01 00 48 8d 0d aa 1d 01 00 ba 24 00 00 00 48 8d 35 9e 18 01 00 48 8d 3d 8b 0e 01 00 ff 15 c1 dd 01 00 90 <48> 8b 47 20 c3 66 66 2e 0f 1f 84 00 00 00 00 00 8b 47 40 c3 66 66
out 17 10:25:12 delart systemd[1]: Started Process Core Dump (PID 1316150/UID 0).
out 17 10:25:12 delart audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@13-1316150-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
out 17 10:25:13 delart systemd[1875]: dbus-:1.2-org.gnome.Software@0.service: Succeeded.
One guess I could make is that it fails because of this bug: https://github.com/flatpak/flatpak/issues/3173 .
That bug causes the nvidia driver extension to want to download the fdo 1.6, which I do not have any interest in downloading. So, it could be a possible reason for the segfault to happen.
Here's what flatpak update
returns at the moment:
[mateusrc@delart ~]$ flatpak update
Looking for updates…
Required runtime for org.freedesktop.Platform.GL32.nvidia-435-21/x86_64/1.4 (runtime/org.freedesktop.Platform/i386/1.6) found in remote flathub
Do you want to install it? [Y/n]: n
error: The application org.freedesktop.Platform.GL32.nvidia-435-21/x86_64/1.4 requires the runtime org.freedesktop.Platform/i386/1.6 which is not installed
[mateusrc@delart ~]$