https://bugs.kde.org/show_bug.cgi?id=505848

            Bug ID: 505848
           Summary: Segfault when sending an empty file with a non-empty
                    file
    Classification: Applications
           Product: kdeconnect
      Version First 25.04.2
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: common
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY
Segfault when sending an empty file with a non-empty file.

STEPS TO REPRODUCE
1. Create two files, one empty.txt that is empty, second data.txt with any
text.
2. Send both files from KDEConnect on Android to PC.
3. The progress pop-up does not disappear, is stays at 1/2.
4. Wait for a minute (otherwise is will not segfault).
5. Click cancel on the progress pop-up.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1

kdeconnect.daemon on PC: 25.04.2
KDE connect on Android: 1.33.4

ADDITIONAL INFORMATION
gdb kdeconnectd
(gdb) run
[..... downloading .....]
2025-06-20T16:58:14 default: DataControlOffer: timeout reading from pipe for
mimeType text/plain;charset=utf-8                                
2025-06-20T16:58:15 default: DataControlOffer: timeout reading from pipe for
mimeType text/plain
[Detaching after vfork from child process 60124]
[New Thread 0x7fffd0b456c0 (LWP 60126)]
[New Thread 0x7fffbb3ff6c0 (LWP 60127)]
[New Thread 0x7fffbabfe6c0 (LWP 60128)]

Thread 1 "kdeconnectd" received signal SIGSEGV, Segmentation fault.
Downloading source file
/usr/src/debug/kf6-kcoreaddons-6.15.0-1.fc42.x86_64/src/lib/jobs/kjob.cpp
KJob::kill (this=0x555555f03120, verbosity=KJob::Quietly) at
/usr/src/debug/kf6-kcoreaddons-6.15.0-1.fc42.x86_64/src/lib/jobs/kjob.cpp:126   
126        if (d->isFinished) {
(gdb) backtrace
#0  KJob::kill (this=0x555555f03120, verbosity=KJob::Quietly)
    at
/usr/src/debug/kf6-kcoreaddons-6.15.0-1.fc42.x86_64/src/lib/jobs/kjob.cpp:126
#1  0x00007ffff7c649ca in KJob::kill (this=0x555555ea96f0,
verbosity=KJob::EmitResult)
    at
/usr/src/debug/kf6-kcoreaddons-6.15.0-1.fc42.x86_64/src/lib/jobs/kjob.cpp:130
#2  0x00007ffff61657ba in QtPrivate::QSlotObjectBase::call
(this=0x555555f11d40, r=0x555555ea96f0, a=0x7fffffffce28)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobjectdefs_impl.h:461
#3  doActivate<false> (sender=0x555555ea88a0, signal_index=3,
argv=0x7fffffffce28)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4146
#4  0x00007ffff615c089 in QMetaObject::activate
    (sender=<optimized out>, m=<optimized out>, local_signal_index=<optimized
out>, argv=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4206
#5  0x00007fffe163cfe2 in OrgKdeJobViewV3Interface::qt_metacall
    (this=0x555555ea88a0, _c=QMetaObject::InvokeMetaMethod, _id=0,
_a=0x7fffffffcfe8)
    at
/usr/src/debug/kf6-kjobwidgets-6.15.0-1.fc42.x86_64/redhat-linux-build/src/moc_jobviewv3iface.cpp:132
#6  0x00007ffff72d7a9e in QDBusConnectionPrivate::deliverCall
    (this=0x7fffdc001690, object=0x555555ea88a0, msg=..., metaTypes=<optimized
out>, slotIdx=5)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/dbus/qdbusintegrator.cpp:1007
#7  0x00007ffff615662c in QObject::event (this=<optimized out>, e=<optimized
out>)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:1431
#8  0x00007ffff743d97f in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x555555ea88a0, e=0x7fffdc0408a0)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3303
#9  0x00007ffff60f9f38 in QCoreApplication::notifyInternal2
(receiver=0x555555ea88a0, event=0x7fffdc0408a0)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#10 0x00007ffff60fa19d in QCoreApplication::sendEvent (receiver=<optimized
out>, event=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1546
#11 0x00007ffff60fdd26 in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x555555596c70)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1879
#12 0x00007ffff641016f in postEventSourceDispatch (s=0x55555559ae50)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#13 0x00007ffff4eeb880 in g_main_dispatch (context=0x7fffdc000f00) at
../glib/gmain.c:3398
#14 g_main_context_dispatch_unlocked (context=0x7fffdc000f00) at
../glib/gmain.c:4249
#15 0x00007ffff4ef47a8 in g_main_context_iterate_unlocked
    (context=context@entry=0x7fffdc000f00, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4314
#16 0x00007ffff4ef4953 in g_main_context_iteration (context=0x7fffdc000f00,
may_block=1) at ../glib/gmain.c:4379
#17 0x00007ffff640f9ad in QEventDispatcherGlib::processEvents
(this=0x55555559ae30, flags=...)
--Type <RET> for more, q to quit, c to continue without paging--
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#18 0x00007ffff6107b03 in QEventLoop::exec (this=this@entry=0x7fffffffd630,
flags=..., flags@entry=...)
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/global/qflags.h:77
#19 0x00007ffff6103419 in QCoreApplication::exec ()
    at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1449
#20 0x00007ffff68ddbad in QGuiApplication::exec () at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/kernel/qguiapplication.cpp:1986
#21 0x00007ffff743d8e9 in QApplication::exec () at
/usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp:2570
#22 0x000055555555574a in main (argc=<optimized out>, argv=<optimized out>)
    at
/usr/src/debug/kde-connect-25.04.2-1.fc42.x86_64/daemon/kdeconnectd.cpp:133

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to