Bug 324691 - KDED crashes with kdeconnect
Summary: KDED crashes with kdeconnect
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 325374 325967 333091 333301 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-09 10:16 UTC by Kai Uwe Broulik
Modified: 2014-04-30 04:21 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2013-09-09 10:16:15 UTC
I just compiled and installed kde-connect and now KDED crashes when starting.
I did not have it installed before.
Running openssl genrsa -des 2048 works.
I installed all dbg packages DrKonqui suggested but still only got a one star rating, sorry.

Application: KDE-Dienst (kded4), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa2434867c0 (LWP 17002))]

Thread 6 (Thread 0x7fa22582f700 (LWP 17004)):
#0  0x00007fa23e2851f9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fa23e285979 in g_private_get () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa23e26a390 in g_thread_self () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa23e2462f5 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fa240c2f036 in QEventDispatcherGlib::processEvents (this=0x7fa2200008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fa240bff38f in QEventLoop::processEvents (this=this@entry=0x7fa22582ed90, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fa240bff618 in QEventLoop::exec (this=this@entry=0x7fa22582ed90, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fa240b01410 in QThread::exec (this=this@entry=0x9fda10) at thread/qthread.cpp:542
#8  0x00007fa240be0edf in QInotifyFileSystemWatcherEngine::run (this=0x9fda10) at io/qfilesystemwatcher_inotify.cpp:256
#9  0x00007fa240b03bec in QThreadPrivate::start (arg=0x9fda10) at thread/qthread_unix.cpp:338
#10 0x00007fa23e718f8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007fa242dbbe1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 5 (Thread 0x7fa217a9c700 (LWP 17006)):
#0  0x00007fa23e71d05e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fa240b040a7 in wait (time=30000, this=0xa8ac40) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xa8d3d8, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fa240af764f in QThreadPoolThread::run (this=0xa8b540) at concurrent/qthreadpool.cpp:141
#4  0x00007fa240b03bec in QThreadPrivate::start (arg=0xa8b540) at thread/qthread_unix.cpp:338
#5  0x00007fa23e718f8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007fa242dbbe1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7fa21729b700 (LWP 17007)):
#0  0x00007fa23e71d05e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fa240b040a7 in wait (time=30000, this=0xa8ac40) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xa8d3d8, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fa240af764f in QThreadPoolThread::run (this=0xa8a230) at concurrent/qthreadpool.cpp:141
#4  0x00007fa240b03bec in QThreadPrivate::start (arg=0xa8a230) at thread/qthread_unix.cpp:338
#5  0x00007fa23e718f8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007fa242dbbe1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7fa216a9a700 (LWP 17008)):
#0  0x00007fa23e71d05e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fa240b040a7 in wait (time=30000, this=0xa8ac40) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xa8d3d8, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fa240af764f in QThreadPoolThread::run (this=0xa8d9d0) at concurrent/qthreadpool.cpp:141
#4  0x00007fa240b03bec in QThreadPrivate::start (arg=0xa8d9d0) at thread/qthread_unix.cpp:338
#5  0x00007fa23e718f8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007fa242dbbe1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7fa20e299700 (LWP 17009)):
#0  0x00007fa23e71d05e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fa240b040a7 in wait (time=30000, this=0xa8ac40) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xa8d3d8, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fa240af764f in QThreadPoolThread::run (this=0xa8ddf0) at concurrent/qthreadpool.cpp:141
#4  0x00007fa240b03bec in QThreadPrivate::start (arg=0xa8ddf0) at thread/qthread_unix.cpp:338
#5  0x00007fa23e718f8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007fa242dbbe1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7fa2434867c0 (LWP 17002)):
[KCrash Handler]
#5  QCA::Provider::Context::provider (this=0x0) at qca_core.cpp:887
#6  0x00007fa22c9082bb in QCA::KeyGenerator::createRSA (this=this@entry=0x7fff0d8ffd90, bits=bits@entry=2048, exp=exp@entry=65537, provider=...) at qca_publickey.cpp:1194
#7  0x00007fa2156826c5 in Daemon::Daemon (this=0x8446a0, parent=<optimized out>) at /home/broulik/Projekte/kdeconnect-kde/kded/daemon.cpp:59
#8  0x00007fa215683ba7 in KPluginFactory::createInstance<Daemon, QObject> (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /usr/include/KDE/../kpluginfactory.h:477
#9  0x00007fa2413de455 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/libkdecore.so.5
#10 0x00007fa2430933bd in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kded4.so
#11 0x00007fa2430942e7 in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kded4.so
#12 0x00007fa2430946d0 in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kded4.so
#13 0x00007fa243094707 in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kded4.so
#14 0x00007fa2430961ab in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kded4.so
#15 0x00007fa242572bb2 in ?? () from /usr/lib/libkdeui.so.5
#16 0x00007fa242572c34 in ?? () from /usr/lib/libkdeui.so.5
#17 0x00007fa242572d6b in ?? () from /usr/lib/libkdeui.so.5
#18 0x00007fa240f83063 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x7038d0, object=object@entry=0x8d5460, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:951
#19 0x00007fa240f83886 in QDBusConnectionPrivate::activateCall (this=this@entry=0x7038d0, object=0x8d5460, flags=flags@entry=337, msg=...) at qdbusintegrator.cpp:856
#20 0x00007fa240f842cf in QDBusConnectionPrivate::activateObject (this=0x7038d0, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1427
#21 0x00007fa240f843ab in QDBusActivateObjectEvent::placeMetaCall (this=0x97eb80) at qdbusintegrator.cpp:1541
#22 0x00007fa240c1a5be in QObject::event (this=this@entry=0x7fff0d901560, e=e@entry=0x97eb80) at kernel/qobject.cpp:1194
#23 0x00007fa240c04f8c in QCoreApplication::event (this=this@entry=0x7fff0d901560, e=e@entry=0x97eb80) at kernel/qcoreapplication.cpp:1758
#24 0x00007fa24186d314 in QApplication::event (this=0x7fff0d901560, e=0x97eb80) at kernel/qapplication.cpp:2549
#25 0x00007fa2418658ec in QApplicationPrivate::notify_helper (this=this@entry=0x714bf0, receiver=receiver@entry=0x7fff0d901560, e=e@entry=0x97eb80) at kernel/qapplication.cpp:4567
#26 0x00007fa24186825b in QApplication::notify (this=0x7fff0d901560, receiver=0x7fff0d901560, e=0x97eb80) at kernel/qapplication.cpp:4428
#27 0x00007fa24256f916 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#28 0x00007fa240c0063e in QCoreApplication::notifyInternal (this=0x7fff0d901560, receiver=receiver@entry=0x7fff0d901560, event=event@entry=0x97eb80) at kernel/qcoreapplication.cpp:946
#29 0x00007fa240c04171 in sendEvent (event=0x97eb80, receiver=0x7fff0d901560) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#30 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x6d8150) at kernel/qcoreapplication.cpp:1570
#31 0x00007fa240c044a3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#32 0x00007fa240c2ee83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#33 postEventSourceDispatch (s=0x7131c0) at kernel/qeventdispatcher_glib.cpp:279
#34 0x00007fa23e245f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007fa23e246248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007fa23e246304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007fa240c2f016 in QEventDispatcherGlib::processEvents (this=0x6d9610, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#38 0x00007fa24190b13e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007fa240bff38f in QEventLoop::processEvents (this=this@entry=0x7fff0d9012e0, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007fa240bff618 in QEventLoop::exec (this=this@entry=0x7fff0d9012e0, flags=...) at kernel/qeventloop.cpp:204
#41 0x00007fa240c04cf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#42 0x00007fa243092e30 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_kded4.so
#43 0x00007fa242ce3ea5 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#44 0x0000000000400701 in _start ()


Reproducible: Always
Comment 1 Kai Uwe Broulik 2013-10-02 08:44:07 UTC
Just git pull'd. Problem persists.
Comment 2 Albert Vaca Cintora 2013-10-02 11:58:51 UTC
I still have no clue on this issue. The crash is in libQCA, so it could be a missing library or something like that... but no idea. Also, the bug https://bugs.kde.org/show_bug.cgi?id=325374 looks really similar to this one, but the backtrace is different so I'm not sure it is a duplicate.
Comment 3 Albert Vaca Cintora 2013-10-02 12:01:10 UTC
*** Bug 325374 has been marked as a duplicate of this bug. ***
Comment 4 Albert Vaca Cintora 2013-10-02 12:04:21 UTC
Well, backtraces are not that different actually :P Marking as duplicate but still ni idea on how to fix it... if you manage to fix it please post it here so your solution can help other users
Comment 5 Michel Koltsov 2013-10-02 16:07:22 UTC
Can it be possible that installation via checkinstall caused this bug?
Also, I've just removed kdeconnect, now kded4 does not seem to be crashing anymore.
Comment 6 Albert Vaca Cintora 2013-10-02 17:43:41 UTC
Try installing it from git, and then we will know :P
Comment 7 Michel Koltsov 2013-10-02 18:19:47 UTC
Actually, I was building it from git.
BTW, will I be able to remove kde connect if I use make install instead of checkinstall?
Comment 8 Kai Uwe Broulik 2013-10-02 18:27:44 UTC
Sure, make uninstall :-)
Comment 9 Michel Koltsov 2013-10-02 19:16:38 UTC
Okay, it seems that I got somewhat different backtrace when trying to reload kded4:

Application: Служба KDE (kded4), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7d35647780 (LWP 5800))]

Thread 7 (Thread 0x7f7d1222b700 (LWP 5817)):
#0  0x00007f7d34f86d9d in poll () from /lib64/libc.so.6
#1  0x00007f7d306369a4 in g_main_context_iterate.isra.24 () from /lib64/libglib-2.0.so.0
#2  0x00007f7d30636ac4 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f7d32de29c6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#4  0x00007f7d32db315f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#5  0x00007f7d32db33e8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#6  0x00007f7d32cb4660 in QThread::exec() () from /lib64/libQtCore.so.4
#7  0x00007f7d32cb763c in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#8  0x00007f7d30bead18 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f7d34f907cd in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f7d11618700 (LWP 5818)):
#0  0x00007f7d30becbc8 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007f7d306739d1 in g_mutex_lock () from /lib64/libglib-2.0.so.0
#2  0x00007f7d306368a5 in g_main_context_iterate.isra.24 () from /lib64/libglib-2.0.so.0
#3  0x00007f7d30636ac4 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x00007f7d32de29c6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#5  0x00007f7d32db315f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#6  0x00007f7d32db33e8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#7  0x00007f7d32cb4660 in QThread::exec() () from /lib64/libQtCore.so.4
#8  0x00007f7d32d939af in QInotifyFileSystemWatcherEngine::run() () from /lib64/libQtCore.so.4
#9  0x00007f7d32cb763c in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#10 0x00007f7d30bead18 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f7d34f907cd in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f7d09770700 (LWP 6022)):
#0  0x00007f7d30bee971 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f7d32cb7af7 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQtCore.so.4
#2  0x00007f7d32cab35f in QThreadPoolThread::run() () from /lib64/libQtCore.so.4
#3  0x00007f7d32cb763c in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#4  0x00007f7d30bead18 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f7d34f907cd in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f7d08f6f700 (LWP 6023)):
#0  0x00007f7d30bee971 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f7d32cb7af7 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQtCore.so.4
#2  0x00007f7d32cab35f in QThreadPoolThread::run() () from /lib64/libQtCore.so.4
#3  0x00007f7d32cb763c in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#4  0x00007f7d30bead18 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f7d34f907cd in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f7cffffe700 (LWP 6024)):
#0  0x00007f7d30bee971 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f7d32cb7af7 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQtCore.so.4
#2  0x00007f7d32cab35f in QThreadPoolThread::run() () from /lib64/libQtCore.so.4
#3  0x00007f7d32cb763c in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#4  0x00007f7d30bead18 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f7d34f907cd in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f7cff7fd700 (LWP 6025)):
#0  0x00007f7d30bee971 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f7d32cb7af7 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQtCore.so.4
#2  0x00007f7d32cab35f in QThreadPoolThread::run() () from /lib64/libQtCore.so.4
#3  0x00007f7d32cb763c in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#4  0x00007f7d30bead18 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f7d34f907cd in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f7d35647780 (LWP 5800)):
[KCrash Handler]
#5  0x00007f7d18b03f10 in QCA::Provider::Context::provider() const () from /lib64/libqca.so.2
#6  0x00007f7d18b27bbb in QCA::KeyGenerator::createRSA(int, int, QString const&) () from /lib64/libqca.so.2
#7  0x00007f7d08358122 in Daemon::Daemon (this=0x29ae390, parent=<optimized out>) at /home/michel/kdeconnect-kde/kded/daemon.cpp:57
#8  0x00007f7d08359247 in KPluginFactory::createInstance<Daemon, QObject> (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /usr/include/KDE/../kpluginfactory.h:477
#9  0x00007f7d3359fb15 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /lib64/libkdecore.so.5
#10 0x00007f7d3525bd07 in Kded::loadModule(KSharedPtr<KService> const&, bool) () from /lib64/libkdeinit4_kded4.so
#11 0x00007f7d3525cd17 in Kded::initModules() () from /lib64/libkdeinit4_kded4.so
#12 0x00007f7d3525f391 in KDEDApplication::newInstance() () from /lib64/libkdeinit4_kded4.so
#13 0x00007f7d34749a72 in KUniqueApplicationAdaptor::newInstance(QByteArray const&, QByteArray const&) () from /lib64/libkdeui.so.5
#14 0x00007f7d34749af4 in KUniqueApplicationAdaptor::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /lib64/libkdeui.so.5
#15 0x00007f7d34749c2b in KUniqueApplicationAdaptor::qt_metacall(QMetaObject::Call, int, void**) () from /lib64/libkdeui.so.5
#16 0x00007f7d33135ed3 in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QList<int> const&, int) () from /lib64/libQtDBus.so.4
#17 0x00007f7d33136f06 in QDBusConnectionPrivate::activateCall(QObject*, int, QDBusMessage const&) () from /lib64/libQtDBus.so.4
#18 0x00007f7d33137946 in QDBusConnectionPrivate::activateObject(QDBusConnectionPrivate::ObjectTreeNode&, QDBusMessage const&, int) () from /lib64/libQtDBus.so.4
#19 0x00007f7d33137a3b in QDBusActivateObjectEvent::placeMetaCall(QObject*) () from /lib64/libQtDBus.so.4
#20 0x00007f7d32dc8dae in QObject::event(QEvent*) () from /lib64/libQtCore.so.4
#21 0x00007f7d33a2a4c4 in QApplication::event(QEvent*) () from /lib64/libQtGui.so.4
#22 0x00007f7d33a283bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#23 0x00007f7d33a2c83a in QApplication::notify(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#24 0x00007f7d347437a6 in KApplication::notify(QObject*, QEvent*) () from /lib64/libkdeui.so.5
#25 0x00007f7d32db44ae in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#26 0x00007f7d32db7f61 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQtCore.so.4
#27 0x00007f7d32de2813 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQtCore.so.4
#28 0x00007f7d306366d5 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#29 0x00007f7d30636a08 in g_main_context_iterate.isra.24 () from /lib64/libglib-2.0.so.0
#30 0x00007f7d30636ac4 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#31 0x00007f7d32de29a6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#32 0x00007f7d33ac852e in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtGui.so.4
#33 0x00007f7d32db315f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#34 0x00007f7d32db33e8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#35 0x00007f7d32db8278 in QCoreApplication::exec() () from /lib64/libQtCore.so.4
#36 0x00007f7d3525b420 in kdemain () from /lib64/libkdeinit4_kded4.so
#37 0x00007f7d34ec2ba5 in __libc_start_main () from /lib64/libc.so.6
#38 0x0000000000400751 in _start ()
Comment 10 Michel Koltsov 2013-10-02 19:32:15 UTC
Okay, here are some [possibly positive] news:

$ git clone git://anongit.kde.org/kdeconnect-kde   
$ cd kdeconnect-kde   
$ mkdir build
$ cd build
$ cmake ../ # note that I don't use -DCMAKE_INSTALL_PREFIX=/usr
$ make
$ sudo make install

As for me, that does not crash kded4. However,
$ qdbus org.kde.kded /kded loadModule kdeconnect
returns "false".

Any suggestions, Albert?
Comment 11 David Edmundson 2013-10-04 08:11:26 UTC
On some distros QCA is split into the library and the plugins that make it work for absolutely no apparent reason except to make our life difficult.

You need to tell packagers and users to install qca-gnupg.

Also in your code you can do a 
+    if(!QCA::isSupported("cert")) {
before you do your QCA::fromCertificate::fromDER calls to prevent a crash.
(if you're using GPG then you'll need to change what goes in that string.)
Comment 12 David Edmundson 2013-10-04 15:49:50 UTC
Edit: make that qca-ossl. (or maybe both.. )
Comment 13 Michel Koltsov 2013-10-04 16:34:39 UTC
Installing QCA-ossl after QCA-gnupg solved the issue.
Everything seems to be working fine.

Thanks a million, guys, you're awesome :)

P.S. -DCMAKE_INSTALL_PREFIX=/usr is ok.
Comment 14 Albert Vaca Cintora 2013-10-05 12:56:21 UTC
Thank you David! I had no clue on this issue, your knowledge is greatly appreciated :)
Comment 15 David Edmundson 2013-10-05 13:27:20 UTC
It's knowledge I have my software  hit this exact same bug.

I would suggest you still add a guard against crashing, even if you then just gracefully fail. (breaking all of kded is not particularly graceful)

You can do this with 
if(!!QCA::isSupported("someWordHereThatIDontKnow")) {
   return;
}

Also make it clear when you make your next announcement to the packagers ML.
Comment 16 David Edmundson 2013-10-05 13:27:49 UTC
*knowledge I have because my software hit this exact same bug
Comment 17 Albert Vaca Cintora 2013-10-05 13:41:12 UTC
Well, I made no announcement to packagers, but they started releasing packages anyway :S

However, I will add that guard and maybe a message explaining the problem to the user.
Comment 18 Albert Vaca Cintora 2013-10-13 15:05:28 UTC
*** Bug 325967 has been marked as a duplicate of this bug. ***
Comment 19 Jekyll Wu 2014-04-06 07:00:40 UTC
*** Bug 333091 has been marked as a duplicate of this bug. ***
Comment 20 ezio 2014-04-08 14:18:34 UTC
Hi guys, i can't pair my phone on OpenSuse 13.1 x64 becaus kdeconnect crashes.
In the xsession-errors i have this:
kdeconnect(4783)/kdeconnect_kded Daemon::Daemon: Error: KDE Connect detects wrong permissions for private file "/home/ezio/.kde4/share/apps/kdeconnect/key.pem" 

Can i solve the issue?
Thanks.
Comment 21 ezio 2014-04-08 14:38:25 UTC
EDIT: a friend of mine sent me his key.pem, it works on my pc too (after "chmod 600 key.pem").

(In reply to comment #20)
> Hi guys, i can't pair my phone on OpenSuse 13.1 x64 becaus kdeconnect
> crashes.
> In the xsession-errors i have this:
> kdeconnect(4783)/kdeconnect_kded Daemon::Daemon: Error: KDE Connect detects
> wrong permissions for private file
> "/home/ezio/.kde4/share/apps/kdeconnect/key.pem" 
> 
> Can i solve the issue?
> Thanks.
Comment 22 Jekyll Wu 2014-04-30 04:21:45 UTC
*** Bug 333301 has been marked as a duplicate of this bug. ***