Bug 438060 - kdeconnectd segfaults on device connect
Summary: kdeconnectd segfaults on device connect
Status: RESOLVED DUPLICATE of bug 438065
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-06-03 21:32 UTC by twopt0
Modified: 2021-06-04 09:29 UTC (History)
1 user (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 twopt0 2021-06-03 21:32:54 UTC
Application: kdeconnectd (21.04.1)

Qt Version: 5.15.3
Frameworks Version: 5.82.0
Operating System: Linux 5.4.0-74-generic x86_64
Windowing System: X11
Drkonqi Version: 5.21.5
Distribution: KDE neon User Edition 5.21

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

Just installed version 21.04.1-0xneon+20.04+focal+release+build20, hasn't worked correctly since the previous build. KDE Neon 5.21

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Connect Daemon (kdeconnectd), signal: Segmentation fault

[New LWP 19678]
[New LWP 19679]
[New LWP 19680]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f3789195aff in __GI___poll (fds=0x7ffc1fbfb9e8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7f378907ed40 (LWP 19677))]

Thread 4 (Thread 0x7f377dba7700 (LWP 19680)):
#0  0x00007f3789195aff in __GI___poll (fds=0x7f3770004a60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3787c0a36e in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3787c0a4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f378976eb3b in QEventDispatcherGlib::processEvents (this=0x7f3770000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f3789712dcb in QEventLoop::exec (this=this@entry=0x7f377dba6ce0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f378952cbb2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f378952dd4c in QThreadPrivate::start (arg=0x557b1790d0b0) at thread/qthread_unix.cpp:329
#7  0x00007f3788659609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f37891a2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f377edbf700 (LWP 19679)):
#0  0x00007f3787c0825d in g_source_ref () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f3787c08328 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3787c0982b in g_main_context_prepare () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3787c0a29b in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f3787c0a4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f378976eb3b in QEventDispatcherGlib::processEvents (this=0x7f3778000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f3789712dcb in QEventLoop::exec (this=this@entry=0x7f377edbecb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007f378952cbb2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007f378a0a0f4b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f378952dd4c in QThreadPrivate::start (arg=0x7f378a124d80) at thread/qthread_unix.cpp:329
#10 0x00007f3788659609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007f37891a2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f37849af700 (LWP 19678)):
#0  0x00007f3789195aff in __GI___poll (fds=0x7f37849aebe8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f378775bc1a in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f378775d90a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f3785136e88 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f378952dd4c in QThreadPrivate::start (arg=0x557b177c47a0) at thread/qthread_unix.cpp:329
#5  0x00007f3788659609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f37891a2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f378907ed40 (LWP 19677)):
[KCrash Handler]
#4  Device::reloadPlugins (this=this@entry=0x557b17966980) at ./core/device.cpp:192
#5  0x00007f378ad1b562 in Device::addLink (this=this@entry=0x557b17966980, identityPacket=..., link=<optimized out>, link@entry=0x557b17a081d0) at ./core/device.cpp:302
#6  0x00007f378ad0eb73 in Daemon::onNewDeviceLink (this=0x7ffc1fbfe0f0, identityPacket=..., dl=0x557b17a081d0) at ./core/daemon.cpp:206
#7  0x00007f378974b2ee in QtPrivate::QSlotObjectBase::call (a=0x7ffc1fbfc5c0, r=0x7ffc1fbfe0f0, this=0x557b17981c60) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#8  doActivate<false> (sender=0x557b17880600, signal_index=3, argv=0x7ffc1fbfc5c0) at kernel/qobject.cpp:3886
#9  0x00007f37897446b7 in QMetaObject::activate (sender=sender@entry=0x557b17880600, m=m@entry=0x7f378ad33880 <LinkProvider::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc1fbfc5c0) at kernel/qobject.cpp:3946
#10 0x00007f378acd0e48 in LinkProvider::onConnectionReceived (this=this@entry=0x557b17880600, _t1=..., _t2=<optimized out>, _t2@entry=0x557b17a081d0) at ./obj-x86_64-linux-gnu/core/kdeconnectcore_autogen/CSWKE6ESUK/moc_linkprovider.cpp:169
#11 0x00007f378ace0ad8 in LanLinkProvider::addLink (this=this@entry=0x557b17880600, deviceId=..., socket=<optimized out>, receivedPacket=receivedPacket@entry=0x557b1796c960, connectionOrigin=connectionOrigin@entry=LanDeviceLink::Remotely) at ./core/backends/lan/lanlinkprovider.cpp:627
#12 0x00007f378ace132f in LanLinkProvider::encrypted (this=0x557b17880600) at ./core/backends/lan/lanlinkprovider.cpp:372
#13 0x00007f378974b2ee in QtPrivate::QSlotObjectBase::call (a=0x7ffc1fbfc810, r=0x557b17880600, this=0x557b179f30c0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#14 doActivate<false> (sender=0x557b179eb890, signal_index=16, argv=0x7ffc1fbfc810) at kernel/qobject.cpp:3886
#15 0x00007f37897446b7 in QMetaObject::activate (sender=sender@entry=0x557b179eb890, m=m@entry=0x7f3788f650e0 <QSslSocket::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#16 0x00007f3788ec12d4 in QSslSocket::encrypted (this=this@entry=0x557b179eb890) at .moc/moc_qsslsocket.cpp:317
#17 0x00007f3788ef0923 in QSslSocketBackendPrivate::continueHandshake (this=0x557b178e7bf0) at ssl/qsslsocket_openssl.cpp:1995
#18 0x00007f3788ef7100 in QSslSocketBackendPrivate::startHandshake (this=this@entry=0x557b178e7bf0) at ssl/qsslsocket_openssl.cpp:1440
#19 0x00007f3788ef7656 in QSslSocketBackendPrivate::transmit (this=0x557b178e7bf0) at ssl/qsslsocket_openssl.cpp:1114
#20 0x00007f3788ec9cf0 in QSslSocket::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ssl/qsslsocket.h:227
#21 0x00007f378974b320 in doActivate<false> (sender=0x557b17905ba0, signal_index=3, argv=0x7ffc1fbfdac0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#22 0x00007f37897446b7 in QMetaObject::activate (sender=sender@entry=0x557b17905ba0, m=m@entry=0x7f37899ab300 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#23 0x00007f3789644b24 in QIODevice::readyRead (this=this@entry=0x557b17905ba0) at .moc/moc_qiodevice.cpp:190
#24 0x00007f3788e8d8e4 in QAbstractSocketPrivate::emitReadyRead (this=this@entry=0x557b179c1da0, channel=channel@entry=0) at socket/qabstractsocket.cpp:1323
#25 0x00007f3788e8d979 in QAbstractSocketPrivate::canReadNotification (this=0x557b179c1da0) at socket/qabstractsocket.cpp:748
#26 0x00007f3788e9fc89 in QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1274
#27 0x00007f378a295dc3 in QApplicationPrivate::notify_helper (this=this@entry=0x557b177c2be0, receiver=receiver@entry=0x557b179ebb30, e=e@entry=0x7ffc1fbfddd0) at kernel/qapplication.cpp:3632
#28 0x00007f378a29ebb8 in QApplication::notify (this=0x7ffc1fbfe0b0, receiver=0x557b179ebb30, e=0x7ffc1fbfddd0) at kernel/qapplication.cpp:3156
#29 0x00007f37897142ca in QCoreApplication::notifyInternal2 (receiver=0x557b179ebb30, event=0x7ffc1fbfddd0) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#30 0x00007f378976f725 in socketNotifierSourceDispatch (source=0x557b178836b0) at kernel/qeventdispatcher_glib.cpp:107
#31 0x00007f3787c0a17d in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f3787c0a400 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f3787c0a4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f378976eb3b in QEventDispatcherGlib::processEvents (this=0x557b178906d0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#35 0x00007f3789712dcb in QEventLoop::exec (this=this@entry=0x7ffc1fbfdfe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#36 0x00007f378971af84 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#37 0x0000557b16ae0016 in main (argc=<optimized out>, argv=<optimized out>) at ./daemon/kdeconnectd.cpp:174
[Inferior 1 (process 19677) detached]

Reported using DrKonqi
Comment 1 Nicolas Fella 2021-06-04 09:29:54 UTC

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