Bug 469411 - kioslave5 crashes regularly when accessing an FTP server
Summary: kioslave5 crashes regularly when accessing an FTP server
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: FTP (show other bugs)
Version: 5.105.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-06 11:37 UTC by Ilya Bizyaev
Modified: 2023-05-06 12:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2023-05-06 11:37:46 UTC
SUMMARY

When I use an Android file manager (https://github.com/zhanghai/MaterialFiles) to expose the device's file system via FTP, Dolphin can connect to it, but then kioslave5 crashes regularly as I browse through the files.

DrKonqi does catch the crash, but has no "address" associated for kioslave5, so I copied the stack trace manually:

Application: kioslave5 (kioslave5), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fef2661c34f in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator-> (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:118
#5  qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > > (ptr=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1149
#6  QIODevice::d_func (this=0x0) at ../../include/QtCore/../../src/corelib/io/qiodevice.h:181
#7  QIODevice::write (this=0x0, data=0x559becf2b278 "cwd /AppManager\r\n", maxSize=17) at io/qiodevice.cpp:1653
#8  0x00007fef23bfa4ab in QIODevice::write (data=..., this=<optimized out>) at /usr/include/qt5/QtCore/qiodevice.h:137
#9  FtpInternal::ftpSendCmd (this=0x559becea5100, cmd=..., maxretries=1) at /usr/src/debug/kio-5.105.0/src/kioworkers/ftp/ftp.cpp:743
#10 0x00007fef23c06360 in FtpInternal::ftpFolder(QString const&) [clone .isra.0] (this=0x559becea5100, path=...) at /usr/src/debug/kio-5.105.0/src/kioworkers/ftp/ftp.cpp:2217
#11 0x00007fef23c01030 in FtpInternal::stat (this=0x559becea5100, url=...) at /usr/src/debug/kio-5.105.0/src/kioworkers/ftp/ftp.cpp:1395
#12 0x00007fef23c01901 in Ftp::stat (this=<optimized out>, url=...) at /usr/include/c++/13/bits/unique_ptr.h:200
#13 0x00007fef26acfa30 in KIO::WorkerSlaveBaseBridge::stat (this=0x559becea96c0, url=...) at /usr/src/debug/kio-5.105.0/src/core/workerbase_p.h:111
#14 0x00007fef26acbca5 in KIO::SlaveBase::dispatch (this=0x559becea96c0, command=69, data=...) at /usr/src/debug/kio-5.105.0/src/core/slavebase.cpp:1297
#15 0x00007fef26ac454e in KIO::SlaveBase::dispatchLoop (this=0x559becea96c0) at /usr/src/debug/kio-5.105.0/src/core/slavebase.cpp:342
#16 0x00007fef23c03f42 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kio-5.105.0/src/kioworkers/ftp/ftp.cpp:176
#17 0x0000559becc3c355 in main (argc=5, argv=0x7ffd33015118) at /usr/src/debug/kio-5.105.0/src/kioslave/kioslave.cpp:145
[Inferior 1 (process 25359) detached]


STEPS TO REPRODUCE
1. Install Material Files (FOSS), enable its "FTP server" feature (anonymous rw access)
2. Enter the URL in Dolphin's address bar
3. Browse the file tree

OBSERVED RESULT
Regular DrKonqi notifications

EXPECTED RESULT
No crashes

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230501
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.12-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION