Bug 469091 - system settings crashes in flatpak_installation_list_installed_refs_by_kind
Summary: system settings crashes in flatpak_installation_list_installed_refs_by_kind
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_flatpak (other bugs)
Version First Reported In: 5.27.4
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
: 471885 481276 496166 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-04-28 06:24 UTC by vangelis
Modified: 2025-09-26 14:43 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vangelis 2023-04-28 06:24:52 UTC
Application: systemsettings (5.27.4)

Qt Version: 5.15.9
Frameworks Version: 5.105.0
Operating System: Linux 5.11.0-34-generic x86_64
Windowing System: X11
Distribution: KDE neon 5.27
DrKonqi: 5.27.4 [KCrashBackend]

-- Information about the crash:
System settings opens as normal and as soon as I select any setting, it crashes. The same happens when I try to open a setting directly from the start menu

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f29758b5c14 in flatpak_installation_list_installed_refs_by_kind () from /lib/x86_64-linux-gnu/libflatpak.so.0
#5  0x00007f2975949f29 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_flatpak.so
#6  0x00007f297594b0a6 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_flatpak.so
#7  0x00007f297594c15a in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_flatpak.so
#8  0x00007f29a747f2a7 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#9  0x00007f29a6a1c374 in KCModuleLoader::loadModule(KPluginMetaData const&, QWidget*, QList<QVariant> const&) () from /lib/x86_64-linux-gnu/libKF5KCMUtils.so.5
#10 0x00007f29a6a1f6ad in ?? () from /lib/x86_64-linux-gnu/libKF5KCMUtils.so.5
#11 0x00007f29a6a1fcd8 in KCModuleProxy::realModule() const () from /lib/x86_64-linux-gnu/libKF5KCMUtils.so.5
#12 0x00007f29a8a1c423 in ModuleView::updatePageIconHeader(KPageWidgetItem*) () from /lib/x86_64-linux-gnu/libsystemsettingsview.so.3
#13 0x00007f29a8a1fa04 in ModuleView::addModule(MenuItem*, QStringList const&) () from /lib/x86_64-linux-gnu/libsystemsettingsview.so.3
#14 0x00007f29854ee9d2 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/systemsettingsview/icon_mode.so
#15 0x00007f29854eed82 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/systemsettingsview/icon_mode.so
#16 0x00007f29a71a11e4 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f29a8009d79 in QAbstractItemView::activated(QModelIndex const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f29a800dead in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f29a8056243 in QListView::mouseReleaseEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f29a695cdf3 in KCategorizedView::mouseReleaseEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libKF5ItemViews.so.5
#21 0x00007f29a7dd497e in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f29a7e82c82 in QFrame::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f29a7168eea in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f29a7d91782 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f29a7d993d4 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f29a716918a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f29a7d97eb7 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f29a7dee1fb in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f29a7df1555 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f29a7d91793 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007f29a716918a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007f29a767fae7 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#33 0x00007f29a7653acc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#34 0x00007f29a15aadee in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#35 0x00007f29a579ad3b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f29a57ef6c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f29a57983e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f29a71c2be8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007f29a7167aab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007f29a7170044 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x0000564d07b4a616 in ?? ()
#42 0x00007f29a6a7ed90 in __libc_start_call_main (main=main@entry=0x564d07b49ac0, argc=argc@entry=1, argv=argv@entry=0x7ffdb254f8c8) at ../sysdeps/nptl/libc_start_call_main.h:58
#43 0x00007f29a6a7ee40 in __libc_start_main_impl (main=0x564d07b49ac0, argc=1, argv=0x7ffdb254f8c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdb254f8b8) at ../csu/libc-start.c:392
#44 0x0000564d07b4afa5 in ?? ()
[Inferior 1 (process 8102) detached]

Reported using DrKonqi
Comment 1 Nate Graham 2023-04-28 18:59:57 UTC
Thank you for the bug report! Unfortunately I can't reproduce the crash myself, and the backtrace is incomplete and missing debug symbols for the following lines that we need to figure out exactly what's going wrong:

> #4  0x00007f29758b5c14 in flatpak_installation_list_installed_refs_by_kind () from /lib/x86_64-linux-gnu/libflatpak.so.0
> #5  0x00007f2975949f29 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_flatpak.so
> #6  0x00007f297594b0a6 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_flatpak.so
> #7  0x00007f297594c15a in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_flatpak.so

Could you please install debug symbols for flatpak and flatpak-kcm, reproduce the crash, and attach a new symbolicated backtrace? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports for details about how to do this.
Thanks again!
Comment 2 ratijas 2023-04-28 21:25:13 UTC
It looks like your flatpak database or installation is corrupted, so flatpak library internally crashes. It's not the first time we hit Flatpak crash, so I wouldn't rule out that they don't gracefully handle invalid input data. I recommend you getting full stack trace with debug symbols, and submit bug report to https://github.com/flatpak/flatpak/issues/new
Comment 3 Bug Janitor Service 2023-05-13 03:46:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2023-05-28 03:45:31 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 5 Nate Graham 2023-09-13 18:48:17 UTC
*** Bug 471885 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2024-02-14 19:45:52 UTC
*** Bug 481276 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2024-02-14 19:46:16 UTC
Re-opening as we have a new report from 5.27.10.
Comment 8 Filip 2024-11-12 10:03:02 UTC
*** Bug 496166 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2024-11-13 16:31:17 UTC
*** Bug 496166 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2024-11-13 16:32:42 UTC
There's a better backtrace with debug symbols in Bug 496166. Here's the relevant part:

#4  _flatpak_installation_get_dir (self=self@entry=0x0, ensure_repo=ensure_repo@entry=0, error=error@entry=0x0) at common/flatpak-installation.c:383
#5  0x00007fd3a410f40f in flatpak_installation_get_dir_maybe_no_repo (self=0x0) at common/flatpak-installation.c:399
#6  flatpak_installation_list_installed_refs_by_kind (self=self@entry=0x0, kind=kind@entry=FLATPAK_REF_KIND_APP, cancellable=cancellable@entry=0x0, error=error@entry=0x0) at common/flatpak-installation.c:954
#7  0x00007fd3a41d4a2d in getSystemInstalledFlatpakAppRefs () at /usr/src/debug/kcm_flatpak-5.27.11-bp156.1.1.x86_64/flatpakreference.cpp:168
#8  FlatpakReferencesModel::FlatpakReferencesModel (this=0x55c90cbc44f0, parent=<optimized out>) at /usr/src/debug/kcm_flatpak-5.27.11-bp156.1.1.x86_64/flatpakreference.cpp:182
#9  0x00007fd3a41ce2fa in KCMFlatpak::KCMFlatpak (this=0x55c90cbc4820, parent=<optimized out>, data=..., args=...) at /usr/src/debug/kcm_flatpak-5.27.11-bp156.1.1.x86_64/kcm.cpp:17

Looks like this can happen on systems with no Flatpak repos active? I suspect we never tested that case.
Comment 11 David Edmundson 2025-09-26 14:43:07 UTC
We have no new duplicates in a year and the crash is in libflatpak including on our newer automated crash reporting service. 

Can you reopen if an issue persists on a newer build