Bug 461768 - SFTP connection dies while copying over a slow connection
Summary: SFTP connection dies while copying over a slow connection
Status: RESOLVED WORKSFORME
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (show other bugs)
Version: 22.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks: 461969
  Show dependency treegraph
 
Reported: 2022-11-13 12:07 UTC by Oded Arbel
Modified: 2023-07-26 21:37 UTC (History)
2 users (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 Oded Arbel 2022-11-13 12:07:01 UTC
SUMMARY

On Neon unstable with kio-extras 4:22.08.3+p22.04+tunstable+git20221106.0028-0

This happens intermittently, and might be related to local network outages, so I can't reproduce this reliably.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version:  5.26.80
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
See drkonqi trace:

Application: kioslave5 (kioslave5), signal: Aborted

           PID: 1733509 (kioslave5)
           UID: 1000 (odeda)
           GID: 1000 (odeda)
        Signal: 6 (ABRT)
     Timestamp: Sun 2022-11-13 13:59:40 IST (1min 13s ago)
  Command Line: /lib/x86_64-linux-gnu/libexec/kf5/kioslave5 /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/sftp.so sftp "" local:/run/user/1000/dolphinrQPRIG.49.slave-socket
    Executable: /usr/lib/x86_64-linux-gnu/libexec/kf5/kioslave5
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-dolphin-7baf056f9a5c4185bdddbb3e3c3eadf8.scope
          Unit: user@1000.service
     User Unit: app-dolphin-7baf056f9a5c4185bdddbb3e3c3eadf8.scope
         Slice: user-1000.slice
     Owner UID: 1000 (odeda)
       Boot ID: f05c33cd7082489391ec59d9d33f7fbb
    Machine ID: 2f91240764fb4d21be2697e4579e16de
      Hostname: vesho
       Storage: /var/lib/systemd/coredump/core.kioslave5.1000.f05c33cd7082489391ec59d9d33f7fbb.1733509.1668340780000000.zst (present)
     Disk Size: 1.4M
       Message: Process 1733509 (kioslave5) of user 1000 dumped core.
                
                Module linux-vdso.so.1 with build-id 2a44174d5a40a173e98d78d61fce3ce6207bc2bf
                Module libnss_mdns4_minimal.so.2 with build-id 289a89b57eeb70bdc8d1b5a331fe215374ce790f
                Module libcrypto.so.3 with build-id 77bf9d5cdacc23fd7e4098b8b4300def5b66a1d4
                Module libssh.so.4 with build-id f6a2eb7d2d6c5a8e3b7a9b2dcb3fa9ab394cf2b5
                Module sftp.so with build-id d0a114cdaa1d298f3b4c0900c81fc5bd6b1582fc
                Module libbrotlicommon.so.1 with build-id 43a72967cf84155914c8b3e915926733d1e57c11
                Module libmd.so.0 with build-id dbf5bb445d97a0fb5a889cda6f0afddac4c5e3c4
                Module libbrotlidec.so.1 with build-id 4b1f390dd6e24d49684db8b2443d082379e8e977
                Module libbsd.so.0 with build-id 9a2162b3dc0c233f5c8cdff954e36d7a6d33adcd
                Module libgraphite2.so.3 with build-id 5ffbc76fc948f6b88d766a7210c2e6a329a6c278
                Module libfreetype.so.6 with build-id 16a6e1b46e12e575c8dff6c4647aed4313c8e04e
                Module libGLX.so.0 with build-id a5ddc210b60285d9867cd5bee01fb7928bd1fdf9
                Module libGLdispatch.so.0 with build-id d4f1f47f80a2f3c1225534436539458ecd677869
                Module libXdmcp.so.6 with build-id 6b60f99504aa1d3999ea02a14366d1a39d6c5dcf
                Module libXau.so.6 with build-id 7089b383cacbfc1760634a3be19a923e51fe3315
                Module libresolv.so.2 with build-id 213924b35b09f66ec4f6da700c74e59c3db63425
                Module libkeyutils.so.1 with build-id 0692a3fe13c984f5d74f68c032fb13e981673bfb
                Module libgpg-error.so.0 with build-id 95f2476aea0fc02459ba61879e9e1f98e5e14fea
                Module libmd4c.so.0 with build-id 2d23f4702a68dc317e32ce7a3e41e0fa7ba93215
                Module libharfbuzz.so.0 with build-id d88e5ec50df184b653c84e032fe91463338666b1
                Module libpng16.so.16 with build-id ed33bd84f368e4777ccfbafade6c689965a1f6c5
                Module libGL.so.1 with build-id 97d8e6896c76730000c57b77cd64bdad6117f511
                Module libQt5Widgets.so.5 with build-id 0919b34f26ef3fd4118b725e2caf6fd89cceb9af
                Module libxcb-keysyms.so.1 with build-id 19f4ec23135d8b6d5df205c775185520d72f1195
                Module libxcb.so.1 with build-id cab1495965e4f64e0af5fae4375614d2ddca189d
                Module libkrb5support.so.0 with build-id f4b13c9ef9596b9804f6615a059535c68457a872
                Module libcom_err.so.2 with build-id 11febfe2a4fd8c57c60d32ba52dead186c21a326
                Module libk5crypto.so.3 with build-id 65dd512cf868b874106b95850075e665468396aa
                Module libkrb5.so.3 with build-id b9b9ea42f82e9f7b86b51ff7705bcd34ccd7e555
                Module libpcre2-8.so.0 with build-id aa726271f39054897adca8a1314df2c030401b88
                Module libicudata.so.70 with build-id b1c2496dd0543023c7a19c961bb7f3abc818f465
                Module liblz4.so.1 with build-id a85971851cd059f1af80d553c8e7170d42ec59a1
                Module liblzma.so.5 with build-id f8c1131bfaf4215b5944283bc7932e2bc6e75c47
                Module libgcrypt.so.20 with build-id 9fa9049b78fbeb377e38a79b66f88894ba7d0a3b
                Module libcap.so.2 with build-id 9e11e3bca4b0a25d047cb36e933e1d727663cf8e
                Module libdbus-1.so.3 with build-id 55ac6df682b987a7f7cdf68e65e370fbe94f792b
                Module libfam.so.0 with build-id e4f407bf295eff27ead40bad4bf9467ff9a571bf
                Module libselinux.so.1 with build-id e13a7c607814a3daecabc80c549f2dfe255226ca
                Module libblkid.so.1 with build-id 02962caa9b8340ec44ff227718bb489c1d36557b
                Module libQt5Gui.so.5 with build-id d4d6f576f7f99df2535c3a9555aa162dc5e891d6
                Module libX11.so.6 with build-id e2f2f670464c1694144139f6027aacd4944d6a4d
                Module libQt5X11Extras.so.5 with build-id d25e34f6e8fd37ef30fd5078c40d69e59845fb0a
                Module libKF5WindowSystem.so.5 with build-id fed5e62cc813a6538dbe4302519473a2776bd3b8
                Module libgssapi_krb5.so.2 with build-id 04718594c8f416b42b134ac027bc89d6fa679e3c
                Module libKF5DBusAddons.so.5 with build-id 83b286ff32bf7708bb1689238fcf20127256d0a5
                Module libgcc_s.so.1 with build-id 1aaa3ca4b83b5b852ff819668edcc31753c40063
                Module libm.so.6 with build-id 69c0f56e574b311a0d256e8ede640fab11c1407d
                Module libglib-2.0.so.0 with build-id 836adc232a0446c986d4f27f63607ab0f809f303
                Module libzstd.so.1 with build-id 409f8cb9a94877624dd28cdc94cffa7305b7bc30
                Module libpcre2-16.so.0 with build-id cae397f4a1a267af37c10a2397cfbfd9de960655
                Module libicuuc.so.70 with build-id bef3ff1d70aadd68aab07d858a759360c8b919ae
                Module libicui18n.so.70 with build-id ff2dbcdd92cbe5a63d20291e295d8fed9f87d35b
                Module libdouble-conversion.so.3 with build-id bc3a9124073014b2222b2200dee6dc01bba05b9f
                Module libz.so.1 with build-id 7faefe02c454de37f9dff74c9fe4ffd99c13567f
                Module libsystemd.so.0 with build-id ac42e074bbebcb3ad92b7a844672f204feb47c2e
                Module ld-linux-x86-64.so.2 with build-id 292e105c0bb3ee8e8f5b917f8af764373d206659
                Module libQt5DBus.so.5 with build-id 9d34f0711a865df68a55dc4773922113c6d7413e
                Module libKF5CoreAddons.so.5 with build-id d9721fad80ded0c9ffabe4477050105b706636a6
                Module libmount.so.1 with build-id 1d6e479d0f744c18ce03e07263f63240094bff48
                Module libacl.so.1 with build-id 99117132cdc6e4b34c4d798bb10da1de61737c6d
                Module libKF5AuthCore.so.5 with build-id bfc4f4b60fe6840a27dabf3dac2b3a32929f7202
                Module libKF5Crash.so.5 with build-id 9ca7d137a7192f33c3046bf4f906b67313e65d64
                Module libKF5I18n.so.5 with build-id 8f1e07cb358577c5f8290285f0c509e786b33f85
                Module libKF5ConfigCore.so.5 with build-id 673bf0246e4805ee25947a8c9316efcfa0772bfa
                Module libQt5Xml.so.5 with build-id 523e6801d1249a4030016d1e488292e8a8195436
                Module libQt5Network.so.5 with build-id 3f3da1ca8ccd7ff0fac4464b7494b633c7db77f6
                Module libKF5Service.so.5 with build-id 8acd790a7bc9c985d08270a53b0403e04a3bec55
                Module libc.so.6 with build-id d1704d25fbbb72fa95d517b883131828c0883fe9
                Module libstdc++.so.6 with build-id 83485f864cbc36aa1055a1a323e1706a347af35e
                Module libQt5Core.so.5 with build-id 5777205002b2a52a6b0b301c83d3d586e33a4169
                Module libKF5KIOCore.so.5 with build-id 6fe9195c09175c6d000b9ccb2317de023ceb1233
                Module kioslave5 with build-id 665366f21d77caf355affd124c4c995e9f1d74ed
                Stack trace of thread 1733509:
                #0  0x00007fe02339a26b __pthread_kill_implementation (libc.so.6 + 0x9226b)
                #1  0x00007fe023343c46 __GI_raise (libc.so.6 + 0x3bc46)
                #2  0x00007fe022fc50a5 _ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x80a5)
                #3  0x00007fe023343cf0 __restore_rt (libc.so.6 + 0x3bcf0)
                #4  0x00007fe02339a26b __pthread_kill_implementation (libc.so.6 + 0x9226b)
                #5  0x00007fe023343c46 __GI_raise (libc.so.6 + 0x3bc46)
                #6  0x00007fe02332a7fc __GI_abort (libc.so.6 + 0x227fc)
                #7  0x00007fe0237c8ba3 qt_message_fatal (libQt5Core.so.5 + 0x91ba3)
                #8  0x00007fe023cec568 _ZN3KIO9SlaveBase13waitForAnswerEiiR10QByteArrayPi (libKF5KIOCore.so.5 + 0x51568)
                #9  0x00007fe023e58f1b n/a (sftp.so + 0xdf1b)
                #10 0x00007fe023e5a47f n/a (sftp.so + 0xf47f)
                #11 0x00007fe023d40d6b _ZN3KIO21WorkerSlaveBaseBridge3putERK4QUrli6QFlagsINS_7JobFlagEE (libKF5KIOCore.so.5 + 0xa5d6b)
                #12 0x00007fe023d3a70a _ZN3KIO9SlaveBase8dispatchEiRK10QByteArray (libKF5KIOCore.so.5 + 0x9f70a)
                #13 0x00007fe023d3b096 _ZN3KIO9SlaveBase12dispatchLoopEv (libKF5KIOCore.so.5 + 0xa0096)
                #14 0x00007fe023e5e777 kdemain (sftp.so + 0x13777)
                #15 0x00005635c11fa4fa n/a (kioslave5 + 0x14fa)
                #16 0x00007fe02332b510 __libc_start_call_main (libc.so.6 + 0x23510)
                #17 0x00007fe02332b5c9 __libc_start_main_impl (libc.so.6 + 0x235c9)
                #18 0x00005635c11fa735 n/a (kioslave5 + 0x1735)
                
                Stack trace of thread 1733510:
                #0  0x00007fe02341912f __GI___poll (libc.so.6 + 0x11112f)
                #1  0x00007fe02260f19e n/a (libglib-2.0.so.0 + 0xab19e)
                #2  0x00007fe0225b7cb0 g_main_context_iteration (libglib-2.0.so.0 + 0x53cb0)
                #3  0x00007fe023a4caf8 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x315af8)
                #4  0x00007fe0239f19bb _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2ba9bb)
                #5  0x00007fe0238044e2 _ZN7QThread4execEv (libQt5Core.so.5 + 0xcd4e2)
                #6  0x00007fe022e20f1b n/a (libQt5DBus.so.5 + 0x18f1b)
                #7  0x00007fe023805703 _ZN14QThreadPrivate5startEPv (libQt5Core.so.5 + 0xce703)
                #8  0x00007fe023398402 start_thread (libc.so.6 + 0x90402)
                #9  0x00007fe023427590 __clone3 (libc.so.6 + 0x11f590)
                ELF object binary architecture: AMD x86-64

[New LWP 1733509]
[New LWP 1733510]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/lib/x86_64-linux-gnu/libexec/kf5/kioslave5 /usr/lib/x86_64-linux-gnu/qt5/plugi'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
[Current thread is 1 (Thread 0x7fe01f027940 (LWP 1733509))]

[Current thread is 1 (Thread 0x7fe01f027940 (LWP 1733509))]

Thread 2 (Thread 0x7fe01e5d16c0 (LWP 1733510)):
#0  0x00007fe02341912f in __GI___poll (fds=0x7fe0180029e0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fe02260f19e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe0225b7cb0 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe023a4caf8 in QEventDispatcherGlib::processEvents (this=0x7fe018000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#4  0x00007fe0239f19bb in QEventLoop::exec (this=this@entry=0x7fe01e5d0c10, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#5  0x00007fe0238044e2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fe022e20f1b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fe023805703 in QThreadPrivate::start (arg=0x7fe022e99d80) at thread/qthread_unix.cpp:330
#8  0x00007fe023398402 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#9  0x00007fe023427590 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 1 (Thread 0x7fe01f027940 (LWP 1733509)):
[KCrash Handler]
#6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#8  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9  0x00007fe023343c46 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x00007fe02332a7fc in __GI_abort () at ./stdlib/abort.c:79
#11 0x00007fe0237c8ba3 in qt_message_fatal (message=<synthetic pointer>..., context=...) at global/qlogging.cpp:1914
#12 QMessageLogger::fatal (this=this@entry=0x7ffc85af86c0, msg=msg@entry=0x7fe023dfaab8 "Fatal Error: Got cmd %d, while waiting for an answer!") at global/qlogging.cpp:893
#13 0x00007fe023cec568 in KIO::SlaveBase::waitForAnswer (this=0x5635c1827b50, expected1=100, expected2=0, data=..., pCmd=0x0) at ./src/core/slavebase.cpp:1137
#14 0x00007fe023e58f1b in SFTPWorker::sftpPut (this=this@entry=0x7ffc85b07b70, url=..., permissions=permissions@entry=436, flags=flags@entry=..., fd=fd@entry=-1) at ./sftp/kio_sftp.cpp:1403
#15 0x00007fe023e5a47f in SFTPWorker::put (this=0x7ffc85b07b70, url=..., permissions=436, flags=...) at ./sftp/kio_sftp.cpp:1326
#16 0x00007fe023d40d6b in KIO::WorkerSlaveBaseBridge::put (this=0x5635c1827b50, url=..., permissions=<optimized out>, flags=...) at ./src/core/workerbase_p.h:106
#17 0x00007fe023d3a70a in KIO::SlaveBase::dispatch (this=0x5635c1827b50, command=68, data=...) at ./src/core/slavebase.cpp:1277
#18 0x00007fe023d3b096 in KIO::SlaveBase::dispatchLoop (this=0x5635c1827b50) at ./src/core/slavebase.cpp:339
#19 0x00007fe023d3dced in KIO::WorkerBase::dispatchLoop (this=<optimized out>) at ./src/core/workerbase.cpp:27
#20 0x00007fe023e5e777 in kdemain (argc=<optimized out>, argv=<optimized out>) at ./sftp/kio_sftp.cpp:92
#21 0x00005635c11fa4fa in ?? ()
#22 0x00007fe02332b510 in __libc_start_call_main (main=main@entry=0x5635c11fa320, argc=argc@entry=5, argv=argv@entry=0x7ffc85b07e28) at ../sysdeps/nptl/libc_start_call_main.h:58
#23 0x00007fe02332b5c9 in __libc_start_main_impl (main=0x5635c11fa320, argc=5, argv=0x7ffc85b07e28, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc85b07e18) at ../csu/libc-start.c:381
#24 0x00005635c11fa735 in ?? ()
Comment 1 Harald Sitter 2023-07-05 13:09:49 UTC
Does this still happen with 23.04?
Comment 2 Oded Arbel 2023-07-05 13:19:38 UTC
I suspect this issue is related to unfavorable network conditions, and in my current connection I have a persistent >1.1 MiB/s and I cannot repro the problem.

I will be able to test the issue - next week - on the network where I initially had this issue.
Comment 3 Bug Janitor Service 2023-07-20 03:45:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Oded Arbel 2023-07-26 21:37:56 UTC
I got one try at the problematic network, and though I didn't have a lot of time - I couldn't reproduce the issue with the current Plasma 5. If it happens again, I'll see about reporting it again.