Bug 422983

Summary: Discover crashed inside flatpak backend immediately upn clicking on tray icon
Product: [Applications] Discover Reporter: Bernie Innocenti <bernie>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED UPSTREAM    
Severity: crash CC: aleixpol
Priority: NOR Keywords: drkonqi
Version: 5.18.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bernie Innocenti 2020-06-14 17:57:27 UTC
Application: plasma-discover (5.18.5)

Qt Version: 5.14.2
Frameworks Version: 5.70.0
Operating System: Linux 5.6.17-300.fc32.x86_64 x86_64
Windowing system: X11
Distribution: "Fedora release 32 (Thirty Two)"

-- Information about the crash:
- What I was doing when the application crashed:

I was not using Discover. I clicked on the tray icon to open it, and it immediately crashed before I could interact with the GUI.

-- Backtrace:
Application: Discover (plasma-discover), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ffff179a640 (LWP 95394))]

Thread 13 (Thread 0x7ffff1450700 (LWP 95410)):
#0  0x00007ffff5ca8b6f in poll () at /lib64/libc.so.6
#1  0x00007ffff4738ace in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#2  0x00007ffff4738c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007ffff6214b73 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007ffff61c791b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007ffff6033427 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007ffff6034690 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#7  0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#8  0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 12 (Thread 0x7fffd583e700 (LWP 95407)):
[KCrash Handler]
#4  0x00007ffff4327755 in CONF_modules_load () at /lib64/libcrypto.so.1.1
#5  0x00007ffff4327eff in CONF_modules_load_file () at /lib64/libcrypto.so.1.1
#6  0x00007fffd7273373 in Curl_ossl_init () at /lib64/libcurl.so.4
#7  0x00007fffd723b8e4 in global_init.part () at /lib64/libcurl.so.4
#8  0x00007fffd723bb1c in curl_easy_init () at /lib64/libcurl.so.4
#9  0x00007fffd725c818 in Curl_conncache_init () at /lib64/libcurl.so.4
#10 0x00007fffd72428f6 in Curl_multi_handle () at /lib64/libcurl.so.4
#11 0x00007fffe01beb7d in _ostree_fetcher_init () at /lib64/libostree-1.so.1
#12 0x00007ffff41a7498 in g_type_create_instance () at /lib64/libgobject-2.0.so.0
#13 0x00007ffff418d205 in g_object_new_internal () at /lib64/libgobject-2.0.so.0
#14 0x00007ffff418efac in g_object_new_valist () at /lib64/libgobject-2.0.so.0
#15 0x00007ffff418f30d in g_object_new () at /lib64/libgobject-2.0.so.0
#16 0x00007fffe01c046b in _ostree_fetcher_new () at /lib64/libostree-1.so.1
#17 0x00007fffe01794f5 in _ostree_repo_remote_new_fetcher () at /lib64/libostree-1.so.1
#18 0x00007fffe0186a79 in ostree_repo_remote_fetch_summary_with_options () at /lib64/libostree-1.so.1
#19 0x00007fffe0162f7a in ostree_repo_remote_fetch_summary () at /lib64/libostree-1.so.1
#20 0x00007fffe041450c in _flatpak_dir_get_remote_state () at /lib64/libflatpak.so.0
#21 0x00007fffe0415497 in flatpak_dir_update_appstream () at /lib64/libflatpak.so.0
#22 0x00007fffe0426d54 in flatpak_installation_update_appstream_full_sync () at /lib64/libflatpak.so.0
#23 0x00007fffe0504d66 in FlatpakRefreshAppstreamMetadataJob::run() () at /usr/lib64/qt5/plugins/discover/flatpak-backend.so
#24 0x00007ffff6034690 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#25 0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#26 0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 11 (Thread 0x7fffd603f700 (LWP 95406)):
[KCrash Handler]
#4  0x00007ffff4327755 in CONF_modules_load () at /lib64/libcrypto.so.1.1
#5  0x00007ffff4327eff in CONF_modules_load_file () at /lib64/libcrypto.so.1.1
#6  0x00007fffd7273373 in Curl_ossl_init () at /lib64/libcurl.so.4
#7  0x00007fffd723b8e4 in global_init.part () at /lib64/libcurl.so.4
#8  0x00007fffd723bb1c in curl_easy_init () at /lib64/libcurl.so.4
#9  0x00007fffd725c818 in Curl_conncache_init () at /lib64/libcurl.so.4
#10 0x00007fffd72428f6 in Curl_multi_handle () at /lib64/libcurl.so.4
#11 0x00007fffe01beb7d in _ostree_fetcher_init () at /lib64/libostree-1.so.1
#12 0x00007ffff41a7498 in g_type_create_instance () at /lib64/libgobject-2.0.so.0
#13 0x00007ffff418d205 in g_object_new_internal () at /lib64/libgobject-2.0.so.0
#14 0x00007ffff418efac in g_object_new_valist () at /lib64/libgobject-2.0.so.0
#15 0x00007ffff418f30d in g_object_new () at /lib64/libgobject-2.0.so.0
#16 0x00007fffe01c046b in _ostree_fetcher_new () at /lib64/libostree-1.so.1
#17 0x00007fffe01794f5 in _ostree_repo_remote_new_fetcher () at /lib64/libostree-1.so.1
#18 0x00007fffe0186a79 in ostree_repo_remote_fetch_summary_with_options () at /lib64/libostree-1.so.1
#19 0x00007fffe0162f7a in ostree_repo_remote_fetch_summary () at /lib64/libostree-1.so.1
#20 0x00007fffe041450c in _flatpak_dir_get_remote_state () at /lib64/libflatpak.so.0
#21 0x00007fffe0415497 in flatpak_dir_update_appstream () at /lib64/libflatpak.so.0
#22 0x00007fffe0426d54 in flatpak_installation_update_appstream_full_sync () at /lib64/libflatpak.so.0
#23 0x00007fffe0504d66 in FlatpakRefreshAppstreamMetadataJob::run() () at /usr/lib64/qt5/plugins/discover/flatpak-backend.so
#24 0x00007ffff6034690 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#25 0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#26 0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7fffd6840700 (LWP 95405)):
#0  0x00007ffff5ca8b6f in poll () at /lib64/libc.so.6
#1  0x00007ffff4738ace in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#2  0x00007ffff4738e53 in g_main_loop_run () at /lib64/libglib-2.0.so.0
#3  0x00007ffff40b26aa in gdbus_shared_thread_func () at /lib64/libgio-2.0.so.0
#4  0x00007ffff4762812 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#6  0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7fffd7041700 (LWP 95404)):
#0  0x00007ffff5ca8b6f in poll () at /lib64/libc.so.6
#1  0x00007ffff4738ace in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#2  0x00007ffff4738c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007ffff4738c51 in glib_worker_main () at /lib64/libglib-2.0.so.0
#4  0x00007ffff4762812 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#6  0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7fffe15d7700 (LWP 95403)):
#0  0x00007ffff5ca8b6f in poll () at /lib64/libc.so.6
#1  0x00007ffff4738ace in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#2  0x00007ffff4738c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007ffff6214b8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007ffff61c791b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007ffff6033427 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007ffff7a48fda in QQuickPixmapReader::run() () at /lib64/libQt5Quick.so.5
#7  0x00007ffff6034690 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#9  0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7fffe27fc700 (LWP 95402)):
#0  0x00007ffff5089e92 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fffe86911db in util_queue_thread_func () at /usr/lib64/dri/iris_dri.so
#2  0x00007fffe8690cab in impl_thrd_routine () at /usr/lib64/dri/iris_dri.so
#3  0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#4  0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7fffe2ffd700 (LWP 95401)):
#0  0x00007ffff5089e92 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fffe86911db in util_queue_thread_func () at /usr/lib64/dri/iris_dri.so
#2  0x00007fffe8690cab in impl_thrd_routine () at /usr/lib64/dri/iris_dri.so
#3  0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#4  0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7fffe37fe700 (LWP 95400)):
#0  0x00007ffff5089e92 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fffe86911db in util_queue_thread_func () at /usr/lib64/dri/iris_dri.so
#2  0x00007fffe8690cab in impl_thrd_routine () at /usr/lib64/dri/iris_dri.so
#3  0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#4  0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7fffe3fff700 (LWP 95399)):
#0  0x00007ffff5089e92 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fffe86911db in util_queue_thread_func () at /usr/lib64/dri/iris_dri.so
#2  0x00007fffe8690cab in impl_thrd_routine () at /usr/lib64/dri/iris_dri.so
#3  0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#4  0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7fffeadee700 (LWP 95398)):
#0  0x00007ffff5ca8b6f in poll () at /lib64/libc.so.6
#1  0x00007ffff4738ace in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#2  0x00007ffff4738c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007ffff6214b8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007ffff61c791b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007ffff6033427 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007ffff68121e9 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#7  0x00007ffff6034690 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#9  0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fffebfff700 (LWP 95396)):
#0  0x00007ffff5ca8b6f in poll () at /lib64/libc.so.6
#1  0x00007ffff4738ace in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#2  0x00007ffff4738c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007ffff6214b8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007ffff61c791b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007ffff6033427 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007ffff758a51b in QDBusConnectionManager::run() () at /lib64/libQt5DBus.so.5
#7  0x00007ffff6034690 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007ffff5083432 in start_thread () at /lib64/libpthread.so.0
#9  0x00007ffff5cb39d3 in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7ffff179a640 (LWP 95394)):
#0  0x00007ffff5089e92 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ffff6039dab in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /lib64/libQt5Core.so.5
#2  0x00007ffff75d8389 in QDBusPendingCallPrivate::waitForFinished() () at /lib64/libQt5DBus.so.5
#3  0x00007ffff759c254 in QDBusConnectionPrivate::getNameOwnerNoCache(QString const&) () at /lib64/libQt5DBus.so.5
#4  0x00007ffff759c472 in QDBusConnectionPrivate::getNameOwner(QString const&) () at /lib64/libQt5DBus.so.5
#5  0x00007ffff75a3757 in QDBusAbstractInterfacePrivate::initOwnerTracking() () at /lib64/libQt5DBus.so.5
#6  0x00007fffd4f1f306 in QConnmanManagerInterface::QConnmanManagerInterface(QObject*) () at /usr/lib64/qt5/plugins/bearer/libqconnmanbearer.so
#7  0x00007fffd4f309ed in QConnmanEngine::QConnmanEngine(QObject*) () at /usr/lib64/qt5/plugins/bearer/libqconnmanbearer.so
#8  0x00007fffd4f1dbe8 in QConnmanEnginePlugin::create(QString const&) const () at /usr/lib64/qt5/plugins/bearer/libqconnmanbearer.so
#9  0x00007ffff5749ce1 in QNetworkConfigurationManagerPrivate::updateConfigurations() () at /lib64/libQt5Network.so.5
#10 0x00007ffff5746a3d in qNetworkConfigurationManagerPrivate() () at /lib64/libQt5Network.so.5
#11 0x00007ffff5746ae9 in QNetworkConfigurationManager::QNetworkConfigurationManager(QObject*) () at /lib64/libQt5Network.so.5
#12 0x00007ffff56de2c2 in QNetworkAccessManager::QNetworkAccessManager(QObject*) () at /lib64/libQt5Network.so.5
#13 0x00007fffd50360b1 in Attica::KdePlatformDependent::KdePlatformDependent() () at /usr/lib64/qt5/plugins/attica_kde.so
#14 0x00007fffd5035ca5 in qt_plugin_instance () at /usr/lib64/qt5/plugins/attica_kde.so
#15 0x00007ffff61c1564 in QLibraryPrivate::pluginInstance() () at /lib64/libQt5Core.so.5
#16 0x00007ffff5a890eb in Attica::ProviderManager::loadPlatformDependent(QFlags<Attica::ProviderManager::ProviderFlag> const&) () at /lib64/libKF5Attica.so.5
#17 0x00007ffff5a891ba in Attica::ProviderManager::ProviderManager(QFlags<Attica::ProviderManager::ProviderFlag> const&) () at /lib64/libKF5Attica.so.5
#18 0x00007fffe04d8789 in KNSReviews::setProviderUrl(QUrl const&) () at /usr/lib64/qt5/plugins/discover/kns-backend.so
#19 0x00007fffe04d0ec5 in KNSBackend::KNSBackend(QObject*, QString const&, QString const&) () at /usr/lib64/qt5/plugins/discover/kns-backend.so
#20 0x00007fffe04d4fc4 in KNSBackendFactory::newInstance(QObject*, QString const&) const () at /usr/lib64/qt5/plugins/discover/kns-backend.so
#21 0x00007ffff7e8b06d in DiscoverBackendsFactory::backendForFile(QString const&, QString const&) const () at /usr/lib64/plasma-discover/libDiscoverCommon.so
#22 0x00007ffff7e8b640 in DiscoverBackendsFactory::backend(QString const&) const () at /usr/lib64/plasma-discover/libDiscoverCommon.so
#23 0x00007ffff7e8ba14 in DiscoverBackendsFactory::allBackends() const () at /usr/lib64/plasma-discover/libDiscoverCommon.so
#24 0x00007ffff7e77331 in ResourcesModel::registerAllBackends() () at /usr/lib64/plasma-discover/libDiscoverCommon.so
#25 0x00007ffff61f0b5e in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#26 0x00007ffff703d063 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#27 0x00007ffff61c8fc0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#28 0x00007ffff61cbc47 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#29 0x00007ffff62150a7 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5Core.so.5
#30 0x00007ffff47387af in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#31 0x00007ffff4738b38 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#32 0x00007ffff4738c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#33 0x00007ffff6214b73 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#34 0x00007ffff61c791b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#35 0x00007ffff61cf5a6 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#36 0x000055555556b50d in main ()
[Inferior 1 (process 95394) detached]

Reported using DrKonqi
Comment 1 Bernie Innocenti 2020-06-14 18:55:46 UTC
Couldn't reproduce this crash a second time after restarting Discover.
I will report if I see it again.
Comment 2 Aleix Pol 2020-06-21 01:06:58 UTC
Filed an issue in flatpak, might even be a problem in ostree or curl. https://github.com/flatpak/flatpak/issues/3701

Sorry for the inconvenience.