Bug 464269

Summary: KDE daemon closed unexpectedly, probably when it tried to send notification from Android to desktop
Product: [Applications] kdeconnect Reporter: yurapostates
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andrew.g.r.holmes, cwo.kde
Priority: NOR Keywords: drkonqi
Version: 22.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description yurapostates 2023-01-14 12:10:58 UTC
Application: kdeconnectd (22.12.1)

Qt Version: 5.15.8
Frameworks Version: 5.101.0
Operating System: Linux 6.1.5-zen2-1-zen x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.26.5 [KCrashBackend]

-- Information about the crash:
It happened the moment I received an email from Thunderbird desktop. I suspect the crash happened when my Android smartphone with K-9 Mail tried to send me a notification about the new mail at the same time, but I'm not entirely sure. 
I don't know how to reproduce it.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: KDE Connect Daemon (kdeconnectd), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  std::__atomic_base<QObjectPrivate::SignalVector*>::load (__m=std::memory_order_relaxed, this=0x1200000007) at /usr/include/c++/12.2.0/atomic:578
#7  std::atomic<QObjectPrivate::SignalVector*>::load (__m=std::memory_order_relaxed, this=0x1200000007) at /usr/include/c++/12.2.0/atomic:579
#8  QAtomicOps<QObjectPrivate::SignalVector*>::loadRelaxed<QObjectPrivate::SignalVector*> (_q_value=<error reading variable: Cannot access memory at address 0x1200000007>) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:239
#9  QBasicAtomicPointer<QObjectPrivate::SignalVector>::loadRelaxed (this=0x1200000007) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:248
#10 QObjectPrivate::ConnectionData::resizeSignalVector (size=7, this=0x11ffffffff) at kernel/qobject_p.h:303
#11 QObjectPrivate::addConnection (this=0x7f6f79f755c0 <QHashData::shared_null>, signal=6, c=0x563c999e48f0) at kernel/qobject.cpp:327
#12 0x00007f6f79ebc084 in QObjectPrivate::connectImpl (sender=0x563c996a54b0, signal_index=6, receiver=0x563c999e4730, slot=<optimized out>, slotObj=0x563c999ea590, type=<optimized out>, types=<optimized out>, senderMetaObject=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:132
#13 0x00007f6f79ebc46e in QObject::connectImpl (sender=sender@entry=0x563c996a54b0, signal=signal@entry=0x7ffda8078320, receiver=receiver@entry=0x563c999e4730, slot=slot@entry=0x0, slotObj=0x563c999ea590, type=Qt::AutoConnection, types=0x0, senderMetaObject=<optimized out>) at kernel/qobject.cpp:5038
#14 0x00007f6f59fca1e8 in QObject::connect<void (KJob::*)(KJob*, KJob::QPrivateSignal), Notification::loadIcon(const NetworkPacket&)::<lambda()> > (type=Qt::AutoConnection, slot=..., context=0x563c999e4730, signal=(void (KJob::*)(KJob * const, KJob *, KJob::QPrivateSignal)) 0x7f6f7b240590 <KJob::result(KJob*, KJob::QPrivateSignal)>, sender=0x563c996a54b0) at /usr/include/qt/QtCore/qobject.h:347
#15 Notification::loadIcon (np=..., this=0x563c999e4730) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.1/plugins/notifications/notification.cpp:167
#16 Notification::createKNotification (this=this@entry=0x563c999e4730, np=...) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.1/plugins/notifications/notification.cpp:148
#17 0x00007f6f59fcabcf in Notification::Notification (parent=0x563c9967e160, device=0x563c995b7a30, np=..., this=0x563c999e4730) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.1/plugins/notifications/notification.cpp:49
#18 NotificationsPlugin::receivePacket (np=..., this=0x563c9967e160) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.1/plugins/notifications/notificationsplugin.cpp:52
#19 NotificationsPlugin::receivePacket (this=0x563c9967e160, np=...) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.1/plugins/notifications/notificationsplugin.cpp:33
#20 0x00007f6f7b64a5b8 in Device::privateReceivedPacket (this=0x563c995b7a30, np=...) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.1/core/device.cpp:401
#21 0x00007f6f79ebda91 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#22 doActivate<false> (sender=0x563c9990ca30, signal_index=7, argv=0x7ffda8078650) at kernel/qobject.cpp:3923
#23 0x00007f6f7b63aea6 in DeviceLink::receivedPacket (_t1=..., this=0x563c9990ca30) at /usr/src/debug/kdeconnect/build/core/kdeconnectcore_autogen/CSWKE6ESUK/moc_devicelink.cpp:225
#24 LanDeviceLink::dataReceived (this=0x563c9990ca30) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.1/core/backends/lan/landevicelink.cpp:136
#25 0x00007f6f79ebda91 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#26 doActivate<false> (sender=0x563c99669f40, signal_index=3, argv=0x7ffda8078730) at kernel/qobject.cpp:3923
#27 0x00007f6f7b633056 in SocketLineReader::dataReceived (this=0x563c99669f40) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.1/core/backends/lan/socketlinereader.cpp:28
#28 0x00007f6f79ebda91 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#29 doActivate<false> (sender=0x563c9972c930, signal_index=3, argv=0x7ffda8078840) at kernel/qobject.cpp:3923
#30 0x00007f6f79b869f3 in QSslSocketBackendPrivate::transmit (this=0x563c996aeff0) at ssl/qsslsocket_openssl.cpp:1201
#31 0x00007f6f79ebdc40 in doActivate<false> (sender=0x563c997e4be0, signal_index=3, argv=0x7ffda80799b0) at kernel/qobject.cpp:3935
#32 0x00007f6f79b51fc0 in QAbstractSocketPrivate::emitReadyRead (channel=0, this=0x7f6f68009b90) at socket/qabstractsocket.cpp:1323
#33 QAbstractSocketPrivate::canReadNotification (this=0x7f6f68009b90) at socket/qabstractsocket.cpp:748
#34 0x00007f6f79b6884a in QAbstractSocketEngine::readNotification (this=<optimized out>) at socket/qabstractsocketengine.cpp:160
#35 QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1274
#36 0x00007f6f7ab78b5c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x563c996dcc80, e=0x7ffda8079ac0) at kernel/qapplication.cpp:3640
#37 0x00007f6f79e8cf98 in QCoreApplication::notifyInternal2 (receiver=0x563c996dcc80, event=0x7ffda8079ac0) at kernel/qcoreapplication.cpp:1064
#38 0x00007f6f79ed6ae6 in socketNotifierSourceDispatch (source=0x563c99289f80) at kernel/qeventdispatcher_glib.cpp:107
#39 0x00007f6f7871687b in g_main_dispatch (context=0x7f6f70005010) at ../glib/glib/gmain.c:3454
#40 g_main_context_dispatch (context=0x7f6f70005010) at ../glib/glib/gmain.c:4172
#41 0x00007f6f7876dc89 in g_main_context_iterate.constprop.0 (context=0x7f6f70005010, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4248
#42 0x00007f6f78715132 in g_main_context_iteration (context=0x7f6f70005010, may_block=1) at ../glib/glib/gmain.c:4313
#43 0x00007f6f79ed7caf in QEventDispatcherGlib::processEvents (this=0x563c99292330, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#44 0x00007f6f79e8574c in QEventLoop::exec (this=0x7ffda8079d40, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#45 0x00007f6f79e90269 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#46 0x00007f6f7a339fe2 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#47 0x00007f6f7ab76f2a in QApplication::exec () at kernel/qapplication.cpp:2832
#48 0x0000563c9797b597 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.1/daemon/kdeconnectd.cpp:185
[Inferior 1 (process 1484) detached]

Reported using DrKonqi
Comment 1 cwo 2024-08-01 08:01:16 UTC
Thank you for the bug report! This issue has already been filed; please follow the linked bug report for updates on a fix.

*** This bug has been marked as a duplicate of bug 445358 ***