Bug 493260 - kdeconnectd keeps getting segmentation fault when other PC tries to refresh nearby computers
Summary: kdeconnectd keeps getting segmentation fault when other PC tries to refresh n...
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: 24.05.2
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-17 13:20 UTC by JacekJagosz
Modified: 2024-09-17 13:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JacekJagosz 2024-09-17 13:20:16 UTC
SUMMARY
On a fresh install of Solus Plasma the kdeconnectd keeps crashing. It works fine until I press refresh in KDE Connect settings on my other PC with exactly the same OS. It works just fine with this OS on my other laptop that had the OS installed for a few years.

I was able to pair it and can fully use it with KDE Connect for SailfishOS.

Here is the backtrace of the crash when I press search on the other PC:
```
#0  0x0000000000000000 in ??? ()
#1  0x00007ffff54dfa36 in zlib_oneshot_expand_block (ctx=<optimized out>, out=<optimized out>, olen=<optimized out>, in=<optimized out>, ilen=<optimized out>) at crypto/comp/c_zlib.c:253
#2  zlib_oneshot_expand_block (ctx=<optimized out>, out=<optimized out>, olen=<optimized out>, in=<optimized out>, ilen=<optimized out>) at crypto/comp/c_zlib.c:239
#3  0x00007ffff54dffc1 in COMP_expand_block (ctx=ctx@entry=0x555555bb19f0, out=<optimized out>, olen=olen@entry=868, in=<optimized out>, ilen=ilen@entry=780) at crypto/comp/comp_lib.c:87
#4  0x00007ffff22c97ac in tls13_process_compressed_certificate (sc=sc@entry=0x555555bc1ac0, pkt=pkt@entry=0x7fffffffb660, tmppkt=tmppkt@entry=0x7fffffffb5d0, buf=buf@entry=0x555555bc0bf0)
    at ssl/statem/statem_lib.c:2891
#5  0x00007ffff22d16d1 in tls_process_client_compressed_certificate (sc=0x555555bc1ac0, pkt=0x7fffffffb660) at ssl/statem/statem_srvr.c:3801
#6  0x00007ffff22b968f in read_state_machine (s=0x555555bc1ac0) at ssl/statem/statem.c:684
#7  state_machine (s=0x555555bc1ac0, server=1) at ssl/statem/statem.c:478
#8  0x00007fffe0f1a960 in q_SSL_accept (a=0x555555bd1a90) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/plugins/tls/openssl/qsslsocket_openssl_symbols.cpp:272
#9  QTlsPrivate::TlsCryptographOpenSSL::startHandshake (this=0x7fffe4001e70)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/plugins/tls/openssl/qtls_openssl.cpp:565
#10 0x00007fffe0f1d336 in QTlsPrivate::TlsCryptographOpenSSL::transmit (this=0x7fffe4001e70)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/plugins/tls/openssl/qtls_openssl.cpp:994
#11 0x00007ffff6553297 in doActivate<false> (sender=0x555555ba25f0, signal_index=3, argv=0x7fffffffda58)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4098
#12 0x00007ffff6925d13 in QAbstractSocketPrivate::emitReadyRead (this=0x555555abc1a0, channel=0)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/network/socket/qabstractsocket.cpp:1220
#13 QAbstractSocketPrivate::canReadNotification (this=0x555555abc1a0) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/network/socket/qabstractsocket.cpp:655
#14 0x00007ffff693023e in QAbstractSocketEngine::readNotification (this=<optimized out>)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/network/socket/qabstractsocketengine.cpp:120
#15 QReadNotifier::event (this=<optimized out>, e=0x7fffffffb540) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/network/socket/qnativesocketengine.cpp:1238
#16 0x00007ffff7647aa3 in QApplicationPrivate::notify_helper (this=0x555555594e80, receiver=0x555555ba2400, e=0x7fffffffdd00)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:3287
#17 0x00007ffff7648c1f in QApplication::notify (this=<optimized out>, receiver=0x555555ba2400, e=0x7fffffffdd00)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:2680
#18 0x00007ffff64f4e5d in QCoreApplication::notifyInternal2 (receiver=0x555555ba2400, event=0x7fffffffdd00)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1142
#19 0x00007ffff67ea23f in QCoreApplication::sendEvent (receiver=0x555555bd1a90, receiver@entry=0x7ffff6816678 <vtable for QEvent+16>, event=0x7fffffffdd00)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1583
--Type <RET> for more, q to quit, c to continue without paging--c
#20 socketNotifierSourceDispatch (source=source@entry=0x55555568ed70) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:75
#21 0x00007ffff5c934ea in g_main_dispatch (context=context@entry=0x7fffec000f00) at ../glib/gmain.c:3344
#22 0x00007ffff5c966c7 in g_main_context_dispatch_unlocked (context=0x7fffec000f00) at ../glib/gmain.c:4152
#23 g_main_context_iterate_unlocked (context=context@entry=0x7fffec000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4217
#24 0x00007ffff5c96d41 in g_main_context_iteration (context=0x7fffec000f00, may_block=1) at ../glib/gmain.c:4282
#25 0x00007ffff67e969e in QEventDispatcherGlib::processEvents (this=0x5555555b2580, flags=...)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:396
#26 0x00007ffff65001fa in QEventLoop::processEvents (this=0x7fffffffdf30, flags=...)
    at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventloop.cpp:100
#27 QEventLoop::exec (this=0x7fffffffdf30, flags=...) at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventloop.cpp:182
#28 0x00007ffff64f5697 in QCoreApplication::exec () at /home/build/YPKG/root/qt6-base/build/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1486
#29 0x0000555555560f16 in main (argc=2, argv=<optimized out>) at /home/build/YPKG/root/kdeconnect/build/kdeconnect-kde-24.05.2/daemon/kdeconnectd.cpp:208
```

STEPS TO REPRODUCE
1. Have 2 PCs with KDE Connect on them
2. Press refresh button inside the KDE Connect settings 

OBSERVED RESULT
The kdeconnectd crashes on my laptop every time, can't reproduce this on other devices

SOFTWARE/OS VERSIONS
Linux:  Solus 4.5
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2