You are not logged in.
1. Both: packagekit-qt5 and flatpak are optional dependencies. Of course, if we don't install them, we cannot install any applications by disover. But,... when we install only packagekit-qt5 (and packagekit as dependency), Discover do not run. It's because of:
error loading "flatpak-backend" "Cannot load library /usr/lib/qt/plugins/discover/flatpak-backend.so: (libflatpak.so.0: cannot open shared object file: No such file or directory)" QJsonObject({"IID":"org.kde.muon.AbstractResourcesBackendFactory","MetaData":{},"className":"FlatpakBackendFactory","debug":false,"version":329728})
KCrash: Application 'plasma-discover' crashing...
2. But... if we install packagekit it becomes dangerous application. It allows to install package without root permission, because packagekit with it is always in memory. It's strange, that uninstall package requires root permission.
Maybe plasma-discover is good idea, but packagekit as backend is not.
Last edited by pb (2017-05-31 14:33:46)
Offline
Your title is accurate - but as such this is misplaced on the forums. You have a few words, but no question.
Do you have a question? Is there a problem you want help fixing? Or are you just posting to say you don't like plasma discover?
Please clarify the purpose of this thread. If there is no purpose the thread will be binned.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
I've just to want to note those bugs. And question? Ok:
1. How to fix wrong optional dependencies? What do I do if I not want to use flatpak, but I want to use packagekit? As I wrote - it's not possible to use plasma-discover with packagekit-qt5 as only one from optional dependencies. As you can see in pacman:
pacman -Si discover
------------------------------
Optional Deps : packagekit-qt5: to install packages from Arch Linux repositories
flatpak: Flatpak packages support
-------------------------------
but without flatpak it doesn't work:
plasma-discover
no streams to aggregate!!
WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib/qt/qml/QtQuick/Controls/Styles/Desktop"
invalid kns backend! "/etc/xdg/servicemenu.knsrc" because: "Config group not found! Check your KNS3 installation."
invalid kns backend! "/etc/xdg/amarokapplets.knsrc" because: "Config group not found! Check your KNS3 installation."
invalid kns backend! "/etc/xdg/ksysguard.knsrc" because: "Config group not found! Check your KNS3 installation."
error loading "flatpak-backend" "Cannot load library /usr/lib/qt/plugins/discover/flatpak-backend.so: (libflatpak.so.0: cannot open shared object file: No such file or directory)" QJsonObject({"IID":"org.kde.muon.AbstractResourcesBackendFactory","MetaData":{},"className":"FlatpakBackendFactory","debug":false,"version":329728})
KCrash: Application 'plasma-discover' crashing...
KCrash: Attempting to start /usr/lib/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 20 and type 'Write', disabling...
QSocketNotifier: Invalid socket 58 and type 'Write', disabling...
QSocketNotifier: Invalid socket 60 and type 'Write', disabling...
QSocketNotifier: Invalid socket 59 and type 'Write', disabling...
QSocketNotifier: Invalid socket 63 and type 'Write', disabling...
QSocketNotifier: Invalid socket 62 and type 'Write', disabling...
QSocketNotifier: Invalid socket 57 and type 'Write', disabling...
QSocketNotifier: Invalid socket 61 and type 'Write', disabling...
QSocketNotifier: Invalid socket 64 and type 'Write', disabling...
[1]+ Stopped
Ok, I know that I can rebuild dicover without flatpak makedepends, and it resolved one problem. I can use discover only with packagekit, but I cannot use it with flatpak anymore.
In my opinion is something wrong with dependencies in PKGBUILD.
2. What can I do with packagekit if I cannot allow it to install package without root permission?
I know: one thread = one problem, but both belongs to one package, and both cause the package to have limited functionality.
But ok - I'll change title of this thread soon.
EDIT:
I've changed title a little.
Last edited by pb (2017-05-31 14:34:13)
Offline
So far in this thread you are claiming to have problems when you try to run discover with packagekit only without flatpak. Yet you also claim that using packagekit is dangerous and the packagekit backend is a bad idea.
If discover will not run without flatpak installed, then it is a packaging error: file a bug report. But if you want to use flatpak and not packagekit, I'm not sure why you are troubled by this - and I'm not sure what you see as the second bug indicated by your new title.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
The "problem" regarding the unauthenticated update is this rule from the packagekit package in /usr/share/polkit-1/rules.d/
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.packagekit.package-install" &&
subject.active == true && subject.local == true &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
If you are that concerned with that, simply removing that file would likely be sufficient, look at the open report about this as well: https://bugs.archlinux.org/task/50459
Offline
Please post a backtrace of the crash, preferably after rebuilding discover with debug symbols. I can't reproduce it myself.
Online
@V1del - Thanks for it.
@arojas - In post #3 you can see result of plasma-discover run from konsole.
There is result of it run in gdb (but I don't rebuild discover with debug symbols so now; I'll report it later):
gdb plasma-discover
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from plasma-discover...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/plasma-discover
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe9ce9700 (LWP 3603)]
[New Thread 0x7fffe348c700 (LWP 3604)]
[New Thread 0x7fffe227b700 (LWP 3606)]
[New Thread 0x7fffd086a700 (LWP 3607)]
[New Thread 0x7fffcf82b700 (LWP 3608)]
no streams to aggregate!!
WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib/qt/qml/QtQuick/Controls/Styles/Desktop"
[New Thread 0x7fffcde24700 (LWP 3610)]
[New Thread 0x7fffc41bf700 (LWP 3611)]
[New Thread 0x7fffc331e700 (LWP 3612)]
[New Thread 0x7fffc2b1d700 (LWP 3613)]
invalid kns backend! "/etc/xdg/servicemenu.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fffc231c700 (LWP 3614)]
[New Thread 0x7fffc1b1b700 (LWP 3615)]
[New Thread 0x7fffc131a700 (LWP 3616)]
[New Thread 0x7fffc0b19700 (LWP 3617)]
[New Thread 0x7fffa3fff700 (LWP 3618)]
[New Thread 0x7fffa37fe700 (LWP 3619)]
[New Thread 0x7fffa2ffd700 (LWP 3620)]
[New Thread 0x7fffa27fc700 (LWP 3621)]
invalid kns backend! "/etc/xdg/amarokapplets.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fffa1ffb700 (LWP 3622)]
[New Thread 0x7fffa17fa700 (LWP 3623)]
[New Thread 0x7fffa0ff9700 (LWP 3624)]
[New Thread 0x7fff93fff700 (LWP 3625)]
[New Thread 0x7fff937fe700 (LWP 3626)]
[New Thread 0x7fff92ffd700 (LWP 3627)]
[New Thread 0x7fff927fc700 (LWP 3628)]
[New Thread 0x7fff91ffb700 (LWP 3629)]
invalid kns backend! "/etc/xdg/ksysguard.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fff917fa700 (LWP 3630)]
[New Thread 0x7fff90ff9700 (LWP 3631)]
[New Thread 0x7fff8bfff700 (LWP 3632)]
[New Thread 0x7fff8b7fe700 (LWP 3633)]
[New Thread 0x7fff8affd700 (LWP 3634)]
[New Thread 0x7fff8a7fc700 (LWP 3635)]
[New Thread 0x7fff89ffb700 (LWP 3636)]
[New Thread 0x7fff897fa700 (LWP 3637)]
[New Thread 0x7fff88ff9700 (LWP 3638)]
[New Thread 0x7fff887f8700 (LWP 3639)]
[New Thread 0x7fff87ff7700 (LWP 3640)]
[New Thread 0x7fff877f6700 (LWP 3641)]
[New Thread 0x7fff86ff5700 (LWP 3642)]
[New Thread 0x7fff867f4700 (LWP 3643)]
[New Thread 0x7fff85ff3700 (LWP 3644)]
error loading "flatpak-backend" "Nie można załadować biblioteki /usr/lib/qt/plugins/discover/flatpak-backend.so: (libflatpak.so.0: nie można otworzyć pliku obiektu dzielonego: Nie ma takiego pliku ani katalogu)" QJsonObject({"IID":"org.kde.muon.AbstractResourcesBackendFactory","MetaData":{},"className":"FlatpakBackendFactory","debug":false,"version":329728})
Thread 1 "plasma-discover" received signal SIGSEGV, Segmentation fault.
0x00007ffff7de310d in do_lookup_x () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0 0x00007ffff7de310d in do_lookup_x () at /lib64/ld-linux-x86-64.so.2
#1 0x00007ffff7de3cbf in _dl_lookup_symbol_x () at /lib64/ld-linux-x86-64.so.2
#2 0x00007ffff7de5769 in _dl_relocate_object () at /lib64/ld-linux-x86-64.so.2
#3 0x00007ffff7ded5e3 in dl_open_worker () at /lib64/ld-linux-x86-64.so.2
#4 0x00007ffff36e3c94 in _dl_catch_error () at /usr/lib/libc.so.6
#5 0x00007ffff7decf29 in _dl_open () at /lib64/ld-linux-x86-64.so.2
#6 0x00007fffeebf5f26 in () at /usr/lib/libdl.so.2
#7 0x00007ffff36e3c94 in _dl_catch_error () at /usr/lib/libc.so.6
#8 0x00007fffeebf65f5 in () at /usr/lib/libdl.so.2
#9 0x00007fffeebf5fb1 in dlopen () at /usr/lib/libdl.so.2
#10 0x00007ffff3f78e3c in () at /usr/lib/libQt5Core.so.5
#11 0x00007ffff3f724f5 in () at /usr/lib/libQt5Core.so.5
#12 0x00007ffff3f605f8 in QPluginLoader::instance() () at /usr/lib/libQt5Core.so.5
#13 0x00007ffff6efb46f in DiscoverBackendsFactory::backendForFile(QString const&, QString const&) const ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#14 0x00007ffff6efbb4b in DiscoverBackendsFactory::backend(QString const&) const ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#15 0x00007ffff6efbcc4 in DiscoverBackendsFactory::allBackends() const ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#16 0x00007ffff6ee794a in ResourcesModel::registerAllBackends() ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#17 0x00007ffff3fac122 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#18 0x00007ffff553b46c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
at /usr/lib/libQt5Widgets.so.5
---Type <return> to continue, or q <return> to quit---
#19 0x00007ffff5542cf4 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#20 0x00007ffff3f7ce48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#21 0x00007ffff3f7f2dd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
at /usr/lib/libQt5Core.so.5
#22 0x00007ffff3fd4d13 in () at /usr/lib/libQt5Core.so.5
#23 0x00007fffee92b7b7 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#24 0x00007fffee92ba20 in () at /usr/lib/libglib-2.0.so.0
#25 0x00007fffee92bacc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#26 0x00007ffff3fd512f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#27 0x00007ffff3f7b4ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#28 0x00007ffff3f83d24 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#29 0x000000000040d2b8 in ()
#30 0x00007ffff35dd43a in __libc_start_main () at /usr/lib/libc.so.6
#31 0x000000000040d58a in _start ()
(gdb) q
A debugging session is active.
Inferior 1 [process 3599] will be killed.
Quit anyway? (y or n) y
Oh, I almost forgot. I use qt5.9rc1 from [kde-unstable] also and kwin and plasma-integration both 5.10.0-2 (from kde-unstable); all system updated today.
The same bug with discover was noticed there: https://bbs.archlinux.org/viewtopic.php … 9#p1711299, but without backtrace.
What can I add? Plasma-discover:
- without packagekit-qt5 and flatpak works well, but of course without possibility of install any applications (only addons from store.kde.org),
- with only flatpak installed - works well
- with only packagekit-qt5 (and its dependencies) crashes with errors above,
- when I rebuild it without flatpak as makedepends - it works well with only packagekit-qt5 installed, but of course it's not possible install any flatpak by discover builds in this way.
If you want any other informations I can give it, of course (and now I should to learn how to rebuild package with debug symbols - if I remember it's just replace:
-DCMAKE_BUILD_TYPE=Release
to
-DCMAKE_BUILD_TYPE=Debug
I'm not wrong?)
EDIT:
Ok, I've just rebuild discover with -DCMAKE_BUILD_TYPE=Debug and there is output of gdb without flatpak installed:
LC_ALL=C gdb plasma-discover
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from plasma-discover...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/plasma-discover
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe9ce9700 (LWP 4823)]
[New Thread 0x7fffe348c700 (LWP 4824)]
[New Thread 0x7fffe227b700 (LWP 4825)]
[New Thread 0x7fffd086a700 (LWP 4826)]
[New Thread 0x7fffcf82b700 (LWP 4827)]
no streams to aggregate!!
WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib/qt/qml/QtQuick/Controls/Styles/Desktop"
[New Thread 0x7fffcde24700 (LWP 4828)]
[New Thread 0x7fffc4270700 (LWP 4829)]
[New Thread 0x7fffc33cf700 (LWP 4830)]
[New Thread 0x7fffc2bce700 (LWP 4831)]
invalid kns backend! "/etc/xdg/servicemenu.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fffc23cd700 (LWP 4832)]
[New Thread 0x7fffc1bcc700 (LWP 4833)]
[New Thread 0x7fffc13cb700 (LWP 4834)]
[New Thread 0x7fffc0bca700 (LWP 4835)]
[New Thread 0x7fffabfff700 (LWP 4836)]
[New Thread 0x7fffab7fe700 (LWP 4837)]
[New Thread 0x7fffaaffd700 (LWP 4838)]
[New Thread 0x7fffaa7fc700 (LWP 4839)]
invalid kns backend! "/etc/xdg/amarokapplets.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fffa9ffb700 (LWP 4840)]
[New Thread 0x7fffa97fa700 (LWP 4841)]
[New Thread 0x7fffa8ff9700 (LWP 4842)]
[New Thread 0x7fff8ffff700 (LWP 4843)]
[New Thread 0x7fff8f7fe700 (LWP 4844)]
[New Thread 0x7fff8effd700 (LWP 4845)]
[New Thread 0x7fff8e7fc700 (LWP 4846)]
[New Thread 0x7fff8dffb700 (LWP 4847)]
invalid kns backend! "/etc/xdg/ksysguard.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fff8d7fa700 (LWP 4848)]
[New Thread 0x7fff8cff9700 (LWP 4849)]
[New Thread 0x7fff8c7f8700 (LWP 4850)]
[New Thread 0x7fff8bff7700 (LWP 4851)]
[New Thread 0x7fff8b7f6700 (LWP 4852)]
[New Thread 0x7fff8aff5700 (LWP 4853)]
[New Thread 0x7fff8a7f4700 (LWP 4854)]
[New Thread 0x7fff89ff3700 (LWP 4855)]
[New Thread 0x7fff897f2700 (LWP 4856)]
[New Thread 0x7fff88ff1700 (LWP 4857)]
[New Thread 0x7fff887f0700 (LWP 4858)]
[New Thread 0x7fff87fef700 (LWP 4859)]
[New Thread 0x7fff877ee700 (LWP 4860)]
[New Thread 0x7fff86fed700 (LWP 4861)]
error loading "flatpak-backend" "Cannot load library /usr/lib/qt/plugins/discover/flatpak-backend.so: (libflatpak.so.0: cannot open shared object file: No such file or directory)" QJsonObject({"IID":"org.kde.muon.AbstractResourcesBackendFactory","MetaData":{},"className":"FlatpakBackendFactory","debug":false,"version":329728})
Thread 1 "plasma-discover" received signal SIGSEGV, Segmentation fault.
0x00007ffff7de310d in do_lookup_x () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0 0x00007ffff7de310d in do_lookup_x () at /lib64/ld-linux-x86-64.so.2
#1 0x00007ffff7de3cbf in _dl_lookup_symbol_x () at /lib64/ld-linux-x86-64.so.2
#2 0x00007ffff7de5769 in _dl_relocate_object () at /lib64/ld-linux-x86-64.so.2
#3 0x00007ffff7ded5e3 in dl_open_worker () at /lib64/ld-linux-x86-64.so.2
#4 0x00007ffff36e3c94 in _dl_catch_error () at /usr/lib/libc.so.6
#5 0x00007ffff7decf29 in _dl_open () at /lib64/ld-linux-x86-64.so.2
#6 0x00007fffeebf5f26 in () at /usr/lib/libdl.so.2
#7 0x00007ffff36e3c94 in _dl_catch_error () at /usr/lib/libc.so.6
#8 0x00007fffeebf65f5 in () at /usr/lib/libdl.so.2
#9 0x00007fffeebf5fb1 in dlopen () at /usr/lib/libdl.so.2
#10 0x00007ffff3f78e3c in () at /usr/lib/libQt5Core.so.5
#11 0x00007ffff3f724f5 in () at /usr/lib/libQt5Core.so.5
#12 0x00007ffff3f605f8 in QPluginLoader::instance() () at /usr/lib/libQt5Core.so.5
#13 0x00007ffff6efb46f in DiscoverBackendsFactory::backendForFile(QString const&, QString const&) const ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#14 0x00007ffff6efbb4b in DiscoverBackendsFactory::backend(QString const&) const ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#15 0x00007ffff6efbcc4 in DiscoverBackendsFactory::allBackends() const ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#16 0x00007ffff6ee794a in ResourcesModel::registerAllBackends() ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#17 0x00007ffff3fac122 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#18 0x00007ffff553b46c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
at /usr/lib/libQt5Widgets.so.5
#19 0x00007ffff5542cf4 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#20 0x00007ffff3f7ce48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#21 0x00007ffff3f7f2dd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
at /usr/lib/libQt5Core.so.5
#22 0x00007ffff3fd4d13 in () at /usr/lib/libQt5Core.so.5
#23 0x00007fffee92b7b7 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#24 0x00007fffee92ba20 in () at /usr/lib/libglib-2.0.so.0
#25 0x00007fffee92bacc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#26 0x00007ffff3fd512f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#27 0x00007ffff3f7b4ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#28 0x00007ffff3f83d24 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#29 0x000000000040d2b8 in ()
#30 0x00007ffff35dd43a in __libc_start_main () at /usr/lib/libc.so.6
#31 0x000000000040d58a in _start ()
(gdb) q
A debugging session is active.
Inferior 1 [process 4819] will be killed.
Quit anyway? (y or n) y
Last edited by pb (2017-05-31 15:52:27)
Offline
if I remember it's just replace:
-DCMAKE_BUILD_TYPE=Release
to
-DCMAKE_BUILD_TYPE=Debug
I'm not wrong?)
and options=(debug !strip)
Online
@arojas: Full backtrace from gdb with rebuilded discover as you suggested:
(gdb) r
Starting program: /usr/bin/plasma-discover
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe9ce9700 (LWP 13536)]
[New Thread 0x7fffe348c700 (LWP 13537)]
[New Thread 0x7fffe227b700 (LWP 13538)]
[New Thread 0x7fffd086a700 (LWP 13539)]
[New Thread 0x7fffcfa33700 (LWP 13540)]
no streams to aggregate!!
WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib/qt/qml/QtQuick/Controls/Styles/Desktop"
[New Thread 0x7fffcdfe0700 (LWP 13542)]
[New Thread 0x7fffc4351700 (LWP 13543)]
[New Thread 0x7fffc34b0700 (LWP 13544)]
[New Thread 0x7fffc2caf700 (LWP 13545)]
invalid kns backend! "/etc/xdg/servicemenu.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fffc24ae700 (LWP 13546)]
[New Thread 0x7fffc1cad700 (LWP 13547)]
[New Thread 0x7fffc14ac700 (LWP 13548)]
[New Thread 0x7fffc0cab700 (LWP 13549)]
[New Thread 0x7fffa3fff700 (LWP 13550)]
[New Thread 0x7fffa37fe700 (LWP 13552)]
[New Thread 0x7fffa2ffd700 (LWP 13553)]
[New Thread 0x7fffa27fc700 (LWP 13554)]
invalid kns backend! "/etc/xdg/amarokapplets.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fffa1ffb700 (LWP 13555)]
[New Thread 0x7fffa17fa700 (LWP 13556)]
[New Thread 0x7fffa0ff9700 (LWP 13557)]
[New Thread 0x7fff93fff700 (LWP 13558)]
[New Thread 0x7fff937fe700 (LWP 13559)]
[New Thread 0x7fff92ffd700 (LWP 13560)]
[New Thread 0x7fff927fc700 (LWP 13561)]
[New Thread 0x7fff91ffb700 (LWP 13562)]
invalid kns backend! "/etc/xdg/ksysguard.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fff917fa700 (LWP 13563)]
[New Thread 0x7fff90ff9700 (LWP 13564)]
[New Thread 0x7fff8bfff700 (LWP 13565)]
[New Thread 0x7fff8b7fe700 (LWP 13566)]
[New Thread 0x7fff8a7fc700 (LWP 13568)]
[New Thread 0x7fff8affd700 (LWP 13567)]
[New Thread 0x7fff89ffb700 (LWP 13569)]
[New Thread 0x7fff897fa700 (LWP 13570)]
[New Thread 0x7fff88ff9700 (LWP 13571)]
[New Thread 0x7fff887f8700 (LWP 13572)]
[New Thread 0x7fff87ff7700 (LWP 13573)]
[New Thread 0x7fff877f6700 (LWP 13574)]
[New Thread 0x7fff86ff5700 (LWP 13575)]
[New Thread 0x7fff867f4700 (LWP 13576)]
[New Thread 0x7fff85ff3700 (LWP 13577)]
error loading "flatpak-backend" "Cannot load library /usr/lib/qt/plugins/discover/flatpak-backend.so: (libflatpak.so.0: cannot open shared object file: No such file or directory)" QJsonObject({"IID":"org.kde.muon.AbstractResourcesBackendFactory","MetaData":{},"className":"FlatpakBackendFactory","debug":false,"version":329728})
Thread 1 "plasma-discover" received signal SIGSEGV, Segmentation fault.
0x00007ffff7de310d in do_lookup_x () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0 0x00007ffff7de310d in do_lookup_x () at /lib64/ld-linux-x86-64.so.2
#1 0x00007ffff7de3cbf in _dl_lookup_symbol_x () at /lib64/ld-linux-x86-64.so.2
#2 0x00007ffff7de5769 in _dl_relocate_object () at /lib64/ld-linux-x86-64.so.2
#3 0x00007ffff7ded5e3 in dl_open_worker () at /lib64/ld-linux-x86-64.so.2
#4 0x00007ffff36e3c94 in _dl_catch_error () at /usr/lib/libc.so.6
#5 0x00007ffff7decf29 in _dl_open () at /lib64/ld-linux-x86-64.so.2
#6 0x00007fffeebf5f26 in () at /usr/lib/libdl.so.2
#7 0x00007ffff36e3c94 in _dl_catch_error () at /usr/lib/libc.so.6
#8 0x00007fffeebf65f5 in () at /usr/lib/libdl.so.2
#9 0x00007fffeebf5fb1 in dlopen () at /usr/lib/libdl.so.2
#10 0x00007ffff3f78e3c in () at /usr/lib/libQt5Core.so.5
#11 0x00007ffff3f724f5 in () at /usr/lib/libQt5Core.so.5
#12 0x00007ffff3f605f8 in QPluginLoader::instance() () at /usr/lib/libQt5Core.so.5
#13 0x00007ffff6efb46f in DiscoverBackendsFactory::backendForFile(QString const&, QString const&) const ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#14 0x00007ffff6efbb4b in DiscoverBackendsFactory::backend(QString const&) const ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#15 0x00007ffff6efbcc4 in DiscoverBackendsFactory::allBackends() const ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#16 0x00007ffff6ee794a in ResourcesModel::registerAllBackends() ()
at /usr/lib/plasma-discover/libDiscoverCommon.so
#17 0x00007ffff3fac122 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#18 0x00007ffff553b46c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
at /usr/lib/libQt5Widgets.so.5
#19 0x00007ffff5542cf4 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#20 0x00007ffff3f7ce48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#21 0x00007ffff3f7f2dd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
at /usr/lib/libQt5Core.so.5
#22 0x00007ffff3fd4d13 in () at /usr/lib/libQt5Core.so.5
#23 0x00007fffee92b7b7 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#24 0x00007fffee92ba20 in () at /usr/lib/libglib-2.0.so.0
#25 0x00007fffee92bacc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#26 0x00007ffff3fd512f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#27 0x00007ffff3f7b4ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#28 0x00007ffff3f83d24 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#29 0x000000000040d2b8 in ()
#30 0x00007ffff35dd43a in __libc_start_main () at /usr/lib/libc.so.6
#31 0x000000000040d58a in _start ()
(gdb) q
A debugging session is active.
Inferior 1 [process 13532] will be killed.
Quit anyway? (y or n) y
Offline
There are still no debug symbols in that backtrace. Are you sure you are using the rebuilt package? It should have significantly larger size than the original one.
Online
Yes, it's my PKGBUILD: https://pastebin.com/fdQcxziZ
My packages are always larger then in official repository. My discover is 39,2MB (pkg.tar, not pkg.tar.xz).
Offline
And you've restarted gdb after installing your package, right?
Online
Yes. But I can retry all procedure, of course.
EDIT:
Another rebuild. I've done:
$ makepkg -si
# sudo pacman -Rcns flatpak
$ LC_ALL=C gdb plasma-discover
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from plasma-discover...done.
(gdb) r
Starting program: /usr/bin/plasma-discover
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe9ce6700 (LWP 29137)]
[New Thread 0x7fffe3486700 (LWP 29138)]
[New Thread 0x7fffe2275700 (LWP 29139)]
[New Thread 0x7fffd086a700 (LWP 29140)]
[New Thread 0x7fffcf82b700 (LWP 29141)]
no streams to aggregate!!
WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib/qt/qml/QtQuick/Controls/Styles/Desktop"
[New Thread 0x7fffcde24700 (LWP 29142)]
[New Thread 0x7fffc426e700 (LWP 29143)]
[New Thread 0x7fffc33cd700 (LWP 29144)]
[New Thread 0x7fffc2bcc700 (LWP 29145)]
invalid kns backend! "/etc/xdg/servicemenu.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fffc23cb700 (LWP 29146)]
[New Thread 0x7fffc1bca700 (LWP 29147)]
[New Thread 0x7fffc13c9700 (LWP 29148)]
[New Thread 0x7fffc0bc8700 (LWP 29149)]
[New Thread 0x7fffabfff700 (LWP 29150)]
[New Thread 0x7fffab7fe700 (LWP 29151)]
[New Thread 0x7fffaaffd700 (LWP 29152)]
[New Thread 0x7fffaa7fc700 (LWP 29153)]
invalid kns backend! "/etc/xdg/amarokapplets.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fffa9ffb700 (LWP 29154)]
[New Thread 0x7fffa97fa700 (LWP 29155)]
[New Thread 0x7fffa8ff9700 (LWP 29156)]
[New Thread 0x7fff8ffff700 (LWP 29157)]
[New Thread 0x7fff8f7fe700 (LWP 29158)]
[New Thread 0x7fff8effd700 (LWP 29159)]
[New Thread 0x7fff8e7fc700 (LWP 29160)]
[New Thread 0x7fff8dffb700 (LWP 29161)]
invalid kns backend! "/etc/xdg/ksysguard.knsrc" because: "Config group not found! Check your KNS3 installation."
[New Thread 0x7fff8d7fa700 (LWP 29162)]
[New Thread 0x7fff8cff9700 (LWP 29163)]
[New Thread 0x7fff8c7f8700 (LWP 29164)]
[New Thread 0x7fff8bff7700 (LWP 29165)]
[New Thread 0x7fff8b7f6700 (LWP 29166)]
[New Thread 0x7fff8aff5700 (LWP 29167)]
[New Thread 0x7fff8a7f4700 (LWP 29168)]
[New Thread 0x7fff89ff3700 (LWP 29169)]
[New Thread 0x7fff897f2700 (LWP 29170)]
[New Thread 0x7fff88ff1700 (LWP 29171)]
[New Thread 0x7fff887f0700 (LWP 29172)]
[New Thread 0x7fff87fef700 (LWP 29173)]
[New Thread 0x7fff877ee700 (LWP 29174)]
[New Thread 0x7fff86fed700 (LWP 29175)]
[New Thread 0x7fff867ec700 (LWP 29176)]
error loading "flatpak-backend" "Cannot load library /usr/lib/qt/plugins/discover/flatpak-backend.so: (libflatpak.so.0: cannot open shared object file: No such file or directory)" QJsonObject({"IID":"org.kde.muon.AbstractResourcesBackendFactory","MetaData":{},"className":"FlatpakBackendFactory","debug":true,"version":329984})
Thread 1 "plasma-discover" received signal SIGSEGV, Segmentation fault.
0x00007ffff7de310d in do_lookup_x () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0 0x00007ffff7de310d in do_lookup_x () at /lib64/ld-linux-x86-64.so.2
#1 0x00007ffff7de3cbf in _dl_lookup_symbol_x () at /lib64/ld-linux-x86-64.so.2
#2 0x00007ffff7de5769 in _dl_relocate_object () at /lib64/ld-linux-x86-64.so.2
#3 0x00007ffff7ded5e3 in dl_open_worker () at /lib64/ld-linux-x86-64.so.2
#4 0x00007ffff36e0c94 in _dl_catch_error () at /usr/lib/libc.so.6
#5 0x00007ffff7decf29 in _dl_open () at /lib64/ld-linux-x86-64.so.2
#6 0x00007fffeebf2f26 in () at /usr/lib/libdl.so.2
#7 0x00007ffff36e0c94 in _dl_catch_error () at /usr/lib/libc.so.6
#8 0x00007fffeebf35f5 in () at /usr/lib/libdl.so.2
#9 0x00007fffeebf2fb1 in dlopen () at /usr/lib/libdl.so.2
#10 0x00007ffff3f75e3c in () at /usr/lib/libQt5Core.so.5
#11 0x00007ffff3f6f4f5 in () at /usr/lib/libQt5Core.so.5
#12 0x00007ffff3f5d5f8 in QPluginLoader::instance() () at /usr/lib/libQt5Core.so.5
#13 0x00007ffff6ef9e8f in DiscoverBackendsFactory::backendForFile(QString const&, QString const&) const (this=this@entry=0x7fffffffd747, libname=..., name=...)
at /home/pb/temp/discover/src/discover-5.10.0/libdiscover/DiscoverBackendsFactory.cpp:60
#14 0x00007ffff6efa5ab in DiscoverBackendsFactory::backend(QString const&) const (this=this@entry=0x7fffffffd747, name=...) at /home/pb/temp/discover/src/discover-5.10.0/libdiscover/DiscoverBackendsFactory.cpp:51
#15 0x00007ffff6efaa6d in DiscoverBackendsFactory::<lambda(const QString&)>::operator() (name=..., __closure=<synthetic pointer>) at /home/pb/temp/discover/src/discover-5.10.0/libdiscover/DiscoverBackendsFactory.cpp:99
#16 0x00007ffff6efaa6d in kTransform<QVector<AbstractResourcesBackend*>, QStringList, DiscoverBackendsFactory::allBackends() const::<lambda(const QString&)> > (op=..., input=...)
at /home/pb/temp/discover/src/discover-5.10.0/libdiscover/utils.h:34
#17 0x00007ffff6efaa6d in DiscoverBackendsFactory::allBackends() const (this=this@entry=0x7fffffffd747)
---Type <return> to continue, or q <return> to quit---
at /home/pb/temp/discover/src/discover-5.10.0/libdiscover/DiscoverBackendsFactory.cpp:99
#18 0x00007ffff6ee4f1a in ResourcesModel::registerAllBackends() (this=0x8bd850)
at /home/pb/temp/discover/src/discover-5.10.0/libdiscover/resources/ResourcesModel.cpp:179
#19 0x00007ffff3fa9122 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#20 0x00007ffff553846c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
at /usr/lib/libQt5Widgets.so.5
#21 0x00007ffff553fcf4 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#22 0x00007ffff3f79e48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#23 0x00007ffff3f7c2dd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
at /usr/lib/libQt5Core.so.5
#24 0x00007ffff3fd1d13 in () at /usr/lib/libQt5Core.so.5
#25 0x00007fffee9287b7 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#26 0x00007fffee928a20 in () at /usr/lib/libglib-2.0.so.0
#27 0x00007fffee928acc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#28 0x00007ffff3fd212f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#29 0x00007ffff3f784ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#30 0x00007ffff3f80d24 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#31 0x000000000040d635 in main(int, char**) (argc=<optimized out>, argv=<optimized out>)
at /home/pb/temp/discover/src/discover-5.10.0/discover/main.cpp:151
(gdb)
(gdb) q
A debugging session is active.
Inferior 1 [process 29133] will be killed.
Quit anyway? (y or n) y
But as I can see it's the same backtrace as above.
Last edited by pb (2017-05-31 18:16:42)
Offline
This one has debug info, but I can't get much out of it myself. Please paste the output of 'LD_DEBUG=files plasma-discover' to see if it gives any more info.
Online
Here is output of 'LD_DEBUG=files plasma-discover 2>output.txt https://pastebin.com/E20XDg6a
Offline
I really have no idea what's going on here - please report it upstream, attaching the last backtrace.
Online
Thanks for all.
Offline
I'm also seeing the same behaviour as @pb with crashes in /usr/bin/plasma-discover from discover (5.10.1-1 from [extra]), if packagekit-qt5 (0.9.6-1 from [community]) is installed but flatpak (0.9.5-1 from [extra]) is not. Note that I am running on linux-hardened (4.11.3.f-2 from [community]); I don't know whether that might be making a difference or not (or if other affected users are also using this kernel). My qt5-base is at 5.9.0-2 from [extra].
Someone submitted an upstream bug report a few hours ago (at least, this is the only one I could find): KDE#381039 Discover crashes with packagekit-qt5 installed. I've noted this thread in the comments, and asked the reporter if they're seeing the same behaviour too (as they mention having packagekit-qt5 installed causes a crash, but don't say anything about flatpak).
FYI.
Offline