Bug 447059 - kdeconnect daemon crashes when phone receives a notification
Summary: kdeconnect daemon crashes when phone receives a notification
Status: RESOLVED NOT A BUG
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-12-16 04:54 UTC by Nate Graham
Modified: 2023-04-24 19:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (32.12 KB, text/plain)
2023-04-24 19:32 UTC, Oded Arbel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2021-12-16 04:54:38 UTC
Application: kdeconnectd (21.04.3)
 (Compiled from sources)
Qt Version: 5.15.2
Frameworks Version: 5.88.0
Operating System: Linux 5.15.6-200.fc35.x86_64 x86_64
Windowing System: Wayland
Distribution: Fedora Linux 35 (KDE Plasma)
DrKonqi: 5.23.3 [KCrashBackend]

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

Receiving a notification on my phone, and then the daemon crashed on the host.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Connect Daemon (kdeconnectd), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  Device::reloadPlugins (this=this@entry=0x55bc936e6fe0) at /usr/src/debug/kde-connect-21.04.3-1.fc35.x86_64/core/device.cpp:192
#7  0x00007fe318def3ab in Device::addLink (this=0x55bc936e6fe0, identityPacket=..., link=<optimized out>) at /usr/src/debug/kde-connect-21.04.3-1.fc35.x86_64/core/device.cpp:302
#8  0x00007fe318de8adc in Daemon::onNewDeviceLink (this=0x7ffe55e39830, identityPacket=..., dl=0x55bc9388b880) at /usr/src/debug/kde-connect-21.04.3-1.fc35.x86_64/core/daemon.cpp:206
#9  0x00007fe3179173e9 in QtPrivate::QSlotObjectBase::call (a=0x7ffe55e37fa0, r=<optimized out>, this=0x55bc936e7730) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#10 doActivate<false> (sender=0x55bc93557cf0, signal_index=3, argv=0x7ffe55e37fa0) at kernel/qobject.cpp:3886
#11 0x00007fe317912367 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fe318e03240 <LinkProvider::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe55e37fa0) at kernel/qobject.cpp:3946
#12 0x00007fe318dc94b8 in LinkProvider::onConnectionReceived (this=<optimized out>, _t1=..., _t2=<optimized out>) at /usr/src/debug/kde-connect-21.04.3-1.fc35.x86_64/redhat-linux-build/core/kdeconnectcore_autogen/CSWKE6ESUK/moc_linkprovider.cpp:169
#13 0x00007fe318dd527f in LanLinkProvider::encrypted (this=0x55bc93557cf0) at /usr/src/debug/kde-connect-21.04.3-1.fc35.x86_64/core/backends/lan/lanlinkprovider.cpp:372
#14 0x00007fe3179173e9 in QtPrivate::QSlotObjectBase::call (a=0x7ffe55e38120, r=<optimized out>, this=0x55bc93828ed0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#15 doActivate<false> (sender=0x55bc93844280, signal_index=16, argv=0x7ffe55e38120) at kernel/qobject.cpp:3886
#16 0x00007fe317912367 in QMetaObject::activate (sender=sender@entry=0x55bc93844280, m=m@entry=0x7fe3170f2ae0 <QSslSocket::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#17 0x00007fe31706a1c4 in QSslSocket::encrypted (this=this@entry=0x55bc93844280) at .moc/moc_qsslsocket.cpp:317
#18 0x00007fe31707ed93 in QSslSocketBackendPrivate::continueHandshake (this=0x55bc938198b0) at ssl/qsslsocket_openssl.cpp:1995
#19 0x00007fe3170857eb in QSslSocketBackendPrivate::startHandshake (this=this@entry=0x55bc938198b0) at ssl/qsslsocket_openssl.cpp:1440
#20 0x00007fe317085f83 in QSslSocketBackendPrivate::transmit (this=0x55bc938198b0) at ssl/qsslsocket_openssl.cpp:1114
#21 0x00007fe317917430 in doActivate<false> (sender=0x55bc936f1690, signal_index=3, argv=0x7ffe55e39390) at kernel/qobject.cpp:3898
#22 0x00007fe317912367 in QMetaObject::activate (sender=sender@entry=0x55bc936f1690, m=m@entry=0x7fe317bb8c20 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#23 0x00007fe3178330d4 in QIODevice::readyRead (this=this@entry=0x55bc936f1690) at .moc/moc_qiodevice.cpp:190
#24 0x00007fe31703fe2f in QAbstractSocketPrivate::emitReadyRead (channel=0, this=0x55bc935b42c0) at socket/qabstractsocket.cpp:1323
#25 QAbstractSocketPrivate::canReadNotification (this=0x55bc935b42c0) at socket/qabstractsocket.cpp:748
#26 0x00007fe317052f59 in QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1274
#27 0x00007fe31844f443 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55bc938573b0, e=0x7ffe55e394b0) at kernel/qapplication.cpp:3632
#28 0x00007fe3178e37d8 in QCoreApplication::notifyInternal2 (receiver=0x55bc938573b0, event=0x7ffe55e394b0) at kernel/qcoreapplication.cpp:1064
#29 0x00007fe31793563f in socketNotifierSourceDispatch (source=0x55bc93560d70) at kernel/qeventdispatcher_glib.cpp:107
#30 0x00007fe315d90130 in g_main_dispatch (context=0x55bc93562970) at ../glib/gmain.c:3381
#31 g_main_context_dispatch (context=0x55bc93562970) at ../glib/gmain.c:4099
#32 0x00007fe315de5208 in g_main_context_iterate.constprop.0 (context=context@entry=0x55bc93562970, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#33 0x00007fe315d8d933 in g_main_context_iteration (context=0x55bc93562970, may_block=1) at ../glib/gmain.c:4240
#34 0x00007fe317934c2e in QEventDispatcherGlib::processEvents (this=0x55bc93560de0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#35 0x00007fe3178e21e2 in QEventLoop::exec (this=this@entry=0x7ffe55e39720, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#36 0x00007fe3178ea724 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#37 0x000055bc91d33fdd in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kde-connect-21.04.3-1.fc35.x86_64/daemon/kdeconnectd.cpp:174
[Inferior 1 (process 880298) detached]

Possible duplicates by query: bug 438721, bug 438319, bug 438164, bug 438077, bug 438076.

Reported using DrKonqi
Comment 1 Nate Graham 2021-12-16 04:59:18 UTC
Invalid report; mising system packages with source-compiled packages.
Comment 2 Oded Arbel 2023-04-24 19:32:54 UTC
Created attachment 158396 [details]
New crash information added by DrKonqi

kdeconnectd (23.04.0) using Qt 5.15.9

The daemon crashes when trying to connect to a phone.

Running Neon testing on top of Ubuntu Lunar.

-- Backtrace (Reduced):
#6  0x00007f8940342a0f in Device::reloadPlugins() () from /lib/x86_64-linux-gnu/libkdeconnectcore.so.23
#7  0x00007f8940343c83 in Device::addLink(NetworkPacket const&, DeviceLink*) () from /lib/x86_64-linux-gnu/libkdeconnectcore.so.23
#8  0x00007f894033d037 in Daemon::onNewDeviceLink(NetworkPacket const&, DeviceLink*) () from /lib/x86_64-linux-gnu/libkdeconnectcore.so.23
#9  0x00007f893eaf41e4 in QtPrivate::QSlotObjectBase::call (a=0x7fffbd139b10, r=0x7fffbd13b330, this=0x556495243ff0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#10 doActivate<false> (sender=0x556495354f40, signal_index=3, argv=0x7fffbd139b10) at kernel/qobject.cpp:3923