Bug 326624

Summary: Crash on startup
Product: [Applications] kdeconnect Reporter: David Edmundson <kde>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED NOT A BUG    
Severity: crash CC: scarpino
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Edmundson 2013-10-25 11:26:17 UTC
Application: kded4 (4.11.60)
KDE Platform Version: 4.11.60 (Compiled from sources)
Qt Version: 4.8.5
Operating System: Linux 3.10.7-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Logging into desktop always causes this crash.

Interestingly starting kded4 afterwards does not.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Daemon (kded4), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f932329c780 (LWP 478))]

Thread 6 (Thread 0x7f9304173700 (LWP 484)):
#0  0x00007f93218ac3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f9321b39244 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib/libQtCore.so.4
#2  0x00007f9321b2c945 in ?? () from /lib/libQtCore.so.4
#3  0x00007f9321b38d8f in ?? () from /lib/libQtCore.so.4
#4  0x00007f93218a80a2 in start_thread () from /lib/libpthread.so.0
#5  0x00007f931febc43d in clone () from /lib/libc.so.6

Thread 5 (Thread 0x7f9303972700 (LWP 485)):
#0  0x00007f93218ac3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f9321b39244 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib/libQtCore.so.4
#2  0x00007f9321b2c945 in ?? () from /lib/libQtCore.so.4
#3  0x00007f9321b38d8f in ?? () from /lib/libQtCore.so.4
#4  0x00007f93218a80a2 in start_thread () from /lib/libpthread.so.0
#5  0x00007f931febc43d in clone () from /lib/libc.so.6

Thread 4 (Thread 0x7f9303171700 (LWP 486)):
#0  0x00007f93218ac3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f9321b39244 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib/libQtCore.so.4
#2  0x00007f9321b2c945 in ?? () from /lib/libQtCore.so.4
#3  0x00007f9321b38d8f in ?? () from /lib/libQtCore.so.4
#4  0x00007f93218a80a2 in start_thread () from /lib/libpthread.so.0
#5  0x00007f931febc43d in clone () from /lib/libc.so.6

Thread 3 (Thread 0x7f92f2970700 (LWP 487)):
#0  0x00007f93218ac3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f9321b39244 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib/libQtCore.so.4
#2  0x00007f9321b2c945 in ?? () from /lib/libQtCore.so.4
#3  0x00007f9321b38d8f in ?? () from /lib/libQtCore.so.4
#4  0x00007f93218a80a2 in start_thread () from /lib/libpthread.so.0
#5  0x00007f931febc43d in clone () from /lib/libc.so.6

Thread 2 (Thread 0x7f93020b7700 (LWP 488)):
#0  0x00007f931feb396d in poll () from /lib/libc.so.6
#1  0x00007f931c5ec544 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f931c5ec64c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f9321c65b46 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#4  0x00007f9321c37b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#5  0x00007f9321c37e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#6  0x00007f9321b366ef in QThread::exec() () from /lib/libQtCore.so.4
#7  0x00007f9321b38d8f in ?? () from /lib/libQtCore.so.4
#8  0x00007f93218a80a2 in start_thread () from /lib/libpthread.so.0
#9  0x00007f931febc43d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7f932329c780 (LWP 478)):
[KCrash Handler]
#6  0x00007f931eaa7778 in QCA::PublicKey::maximumEncryptSize(QCA::EncryptionAlgorithm) const () from /lib/libqca.so.2
#7  0x00007f93025595f1 in NetworkPackage::encrypt (this=0x7fff8edbd190, key=...) at /mnt/projects/kde4/src/kdeconnect/kded/networkpackage.cpp:93
#8  0x00007f930255cf9d in Device::sendPackage (this=0x2406d30, np=...) at /mnt/projects/kde4/src/kdeconnect/kded/device.cpp:244
#9  0x00007f930102b109 in BatteryPlugin::connected (this=0x26b7220) at /mnt/projects/kde4/src/kdeconnect/kded/plugins/battery/batteryplugin.cpp:44
#10 0x00007f930255e6a2 in Device::reloadPlugins (this=this@entry=0x2406d30) at /mnt/projects/kde4/src/kdeconnect/kded/device.cpp:119
#11 0x00007f930255f768 in Device::addLink (this=0x2406d30, link=0x26b1b00) at /mnt/projects/kde4/src/kdeconnect/kded/device.cpp:215
#12 0x00007f930255abff in Daemon::onNewDeviceLink (this=0x26950b0, identityPackage=..., dl=0x26b1b00) at /mnt/projects/kde4/src/kdeconnect/kded/daemon.cpp:142
#13 0x00007f9302551458 in Daemon::qt_static_metacall (_o=0x2406d50, _id=0, _a=0x7f932017c678 <main_arena+88>, _c=<optimized out>) at /mnt/projects/kde4/src/build/kdeconnect/kded/moc_daemon.cpp:79
#14 0x00007f9321c4cb48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib/libQtCore.so.4
#15 0x00007f9302551234 in LinkProvider::onConnectionReceived (this=this@entry=0x2697880, _t1=..., _t2=0x26b1b00) at /mnt/projects/kde4/src/build/kdeconnect/kded/moc_linkprovider.cpp:108
#16 0x00007f9302552a70 in LoopbackLinkProvider::onNetworkChange (this=0x2697880, state=<optimized out>) at /mnt/projects/kde4/src/kdeconnect/kded/linkproviders/loopbacklinkprovider.cpp:40
#17 0x00007f93025527e5 in LoopbackLinkProvider::onStart (this=0x2697880) at /mnt/projects/kde4/src/kdeconnect/kded/linkproviders/loopbacklinkprovider.cpp:46
#18 0x00007f930255aeb5 in Daemon::setDiscoveryEnabled (this=this@entry=0x26950b0, b=b@entry=true) at /mnt/projects/kde4/src/kdeconnect/kded/daemon.cpp:104
#19 0x00007f930255c00e in Daemon::Daemon (this=0x26950b0, parent=<optimized out>) at /mnt/projects/kde4/src/kdeconnect/kded/daemon.cpp:96
#20 0x00007f930255c8b8 in KPluginFactory::createInstance<Daemon, QObject> (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /opt/kde4/include/KDE/../kpluginfactory.h:477
#21 0x00007f9322427ea3 in KPluginFactory::create (this=0x26913a0, iface=0x7f932247cb20 <qt_meta_stringdata_KDEDModule> "KDEDModule", parentWidget=0x0, parent=0x23a4610, args=..., keyword=...) at /home/david/projects/kde4/src/kde/kdelibs/kdecore/util/kpluginfactory.cpp:203
#22 0x00007f930c67bbaa in create<KDEDModule> (args=..., parent=0x23a4610, this=<optimized out>) at /home/david/projects/kde4/src/kde/kdelibs/kdecore/util/kpluginfactory.h:507
#23 Kded::loadModule (this=this@entry=0x23a4610, s=..., onDemand=onDemand@entry=false) at /home/david/projects/kde4/src/kde/kdelibs/kded/kded.cpp:410
#24 0x00007f930c67c3d1 in Kded::initModules (this=this@entry=0x23a4610) at /home/david/projects/kde4/src/kde/kdelibs/kded/kded.cpp:269
#25 0x00007f930c67c957 in Kded::recreateDone (this=this@entry=0x23a4610) at /home/david/projects/kde4/src/kde/kdelibs/kded/kded.cpp:578
#26 0x00007f930c67c9c3 in Kded::recreate (this=0x23a4610, initial=<optimized out>) at /home/david/projects/kde4/src/kde/kdelibs/kded/kded.cpp:548
#27 0x00007f930c67edfa in KDEDApplication::newInstance (this=<optimized out>) at /home/david/projects/kde4/src/kde/kdelibs/kded/kded.cpp:818
#28 0x00007f9322c6fb7c in KUniqueApplicationAdaptor::newInstance (this=0x255c950, asn_id=..., args=...) at /home/david/projects/kde4/src/kde/kdelibs/kdeui/kernel/kuniqueapplication.cpp:442
#29 0x00007f9322c6fc05 in KUniqueApplicationAdaptor::qt_static_metacall (_o=_o@entry=0x255c950, _id=_id@entry=0, _a=_a@entry=0x7fff8edbdfb0, _c=QMetaObject::InvokeMetaMethod) at /home/david/projects/kde4/src/build/kde/kdelibs/kdeui/kuniqueapplication_p.moc:57
#30 0x00007f9322c6fe23 in qt_static_metacall (_a=0x7fff8edbdfb0, _id=0, _c=QMetaObject::InvokeMetaMethod, _o=0x255c950) at /home/david/projects/kde4/src/build/kde/kdelibs/kdeui/kuniqueapplication_p.moc:100
#31 KUniqueApplicationAdaptor::qt_metacall (this=0x255c950, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff8edbdfb0) at /home/david/projects/kde4/src/build/kde/kdelibs/kdeui/kuniqueapplication_p.moc:101
#32 0x00007f9321fc3246 in ?? () from /lib/libQtDBus.so.4
#33 0x00007f9321fc4349 in ?? () from /lib/libQtDBus.so.4
#34 0x00007f9321fc4e04 in ?? () from /lib/libQtDBus.so.4
#35 0x00007f9321fc4edb in ?? () from /lib/libQtDBus.so.4
#36 0x00007f9321c50efe in QObject::event(QEvent*) () from /lib/libQtCore.so.4
#37 0x00007f9320dc4123 in QApplication::event(QEvent*) () from /lib/libQtGui.so.4
#38 0x00007f9320dbf12c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/libQtGui.so.4
#39 0x00007f9320dc56f0 in QApplication::notify(QObject*, QEvent*) () from /lib/libQtGui.so.4
#40 0x00007f9322c6892a in KApplication::notify (this=0x7fff8edbea00, receiver=0x7fff8edbea00, event=0x255b0b0) at /home/david/projects/kde4/src/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
#41 0x00007f9321c38ebd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib/libQtCore.so.4
#42 0x00007f9321c3bf0f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/libQtCore.so.4
#43 0x00007f9321c66263 in ?? () from /lib/libQtCore.so.4
#44 0x00007f931c5ec256 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#45 0x00007f931c5ec5a8 in ?? () from /lib/libglib-2.0.so.0
#46 0x00007f931c5ec64c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#47 0x00007f9321c65b25 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#48 0x00007f9320e5c266 in ?? () from /lib/libQtGui.so.4
#49 0x00007f9321c37b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#50 0x00007f9321c37e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#51 0x00007f9321c3cf4b in QCoreApplication::exec() () from /lib/libQtCore.so.4
#52 0x00007f930c67d95b in kdemain (argc=1, argv=0x238e050) at /home/david/projects/kde4/src/kde/kdelibs/kded/kded.cpp:925
#53 0x0000000000407f79 in launch (argc=argc@entry=1, _name=_name@entry=0x40a812 "kded4", args=<optimized out>, args@entry=0x0, cwd=cwd@entry=0x0, envc=envc@entry=0, envs=<optimized out>, envs@entry=0x0, reset_env=reset_env@entry=false, tty=tty@entry=0x0, avoid_loops=avoid_loops@entry=false, startup_id_str=startup_id_str@entry=0x40a6fa "0") at /home/david/projects/kde4/src/kde/kdelibs/kinit/kinit.cpp:726
#54 0x0000000000405719 in main (argc=4, argv=<optimized out>, envp=0x7fff8edbf0e0) at /home/david/projects/kde4/src/kde/kdelibs/kinit/kinit.cpp:1841

Reported using DrKonqi
Comment 1 Andrea Scarpino 2013-10-28 11:03:07 UTC
I guess this has been fixed by fc45b64362f8e335ac0ee2b1a1b7b87d27823127
Comment 2 David Edmundson 2013-10-28 11:03:50 UTC
Aye. Crash has gone away now.

Closing