[Bug 390288] KIO/KDirModel: Kate crash while trying to save a new file to a Samba share

Jaime jtamate at gmail.com
Fri Mar 2 13:24:06 UTC 2018


I can reproduce a similar crash with shares in a linux machine with long
names like
smb://127.0.0.1/Partage Mint-land mas largo aun pero sin caracteres raros/
smb://127.0.0.1/workgroup.Partage.Mint-land_mas_largo_aun123
4pero_sin0_caracteres_raros/

What I do:
in Kate "Save copy as", click on network -> "Recursos compartidos de
Samba", it can't find any workgroup (I'm not good configuring samba :-().
modify the url to smb://127.0.0.1/  and Enter
Click on one of the folders, and then on Save, it is saved.
Again, "Save copy as", click on network -> "Recursos compartidos de Samba",
and  Crash.

#7 0x00007fcfd7747674 in KCoreDirListerCache::slotRedirection(KIO::Job*,
QUrl const&) (this=0x7fcfd79fe600 <(anonymous
namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, j=0x6d89a40,
url=...) at
/home/jtorres/kdesrc/frameworks/kio/src/core/kcoredirlister.cpp:1488

#8 0x00007fcfd7751c46 in KCoreDirListerCache::qt_static_metacall(QObject*,
QMetaObject::Call, int, void**) (_o=0x7fcfd79fe600 <(anonymous
namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>,
_c=QMetaObject::InvokeMetaMethod, _id=9, _a=0x7fff19e2b850) at
/home/jtorres/kdesrc/build/frameworks/kio/src/core/KF5KIOCore_autogen/include/moc_kcoredirlister_p.cpp:137

#9 0x00007fcfd28f102a in QMetaObject::activate(QObject*, int, int, void**)
() at /usr/lib64/libQt5Core.so.5

#10 0x00007fcfd76f9baf in KIO::ListJob::redirection(KIO::Job*, QUrl const&)
(this=0x6d89a40, _t1=0x6d89a40, _t2=...) at
/home/jtorres/kdesrc/build/frameworks/kio/src/core/KF5KIOCore_autogen/include/moc_listjob.cpp:246

#11 0x00007fcfd76f8e42 in KIO::ListJobPrivate::slotRedirection(QUrl const&)
(this=0x70f2ef0, url=...) at
/home/jtorres/kdesrc/frameworks/kio/src/core/listjob.cpp:222

#12 0x00007fcfd76f927e in KIO::ListJobPrivate::<lambda(const
QUrl&)>::operator()(const QUrl &) const (__closure=0x6b8cb90, url=...) at
/home/jtorres/kdesrc/frameworks/kio/src/core/listjob.cpp:294

#13 0x00007fcfd76fa632 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>,
QtPrivate::List<const QUrl&>, void,
KIO::ListJobPrivate::start(KIO::Slave*)::<lambda(const QUrl&)>
>::call(KIO::ListJobPrivate::<lambda(const QUrl&)> &, void **) (f=...,
arg=0x7fff19e2baf0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:130

#14 0x00007fcfd76fa4d7 in
QtPrivate::Functor<KIO::ListJobPrivate::start(KIO::Slave*)::<lambda(const
QUrl&)>, 1>::call<QtPrivate::List<QUrl const&>,
void>(KIO::ListJobPrivate::<lambda(const QUrl&)> &, void *, void **)
(f=..., arg=0x7fff19e2baf0) at
/usr/include/qt5/QtCore/qobjectdefs_impl.h:240

#15 0x00007fcfd76fa3fd in
QtPrivate::QFunctorSlotObject<KIO::ListJobPrivate::start(KIO::Slave*)::<lambda(const
QUrl&)>, 1, QtPrivate::List<const QUrl&>, void>::impl(int,
QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1,
this_=0x6b8cb80, r=0x6d89a40, a=0x7fff19e2baf0, ret=0x0) at
/usr/include/qt5/QtCore/qobjectdefs_impl.h:423

#16 0x00007fcfd28f112c in QMetaObject::activate(QObject*, int, int, void**)
() at /usr/lib64/libQt5Core.so.5

#17 0x00007fcfd76e5325 in KIO::SlaveInterface::redirection(QUrl const&)
(this=0x6d2e420, _t1=...) at
/home/jtorres/kdesrc/build/frameworks/kio/src/core/KF5KIOCore_autogen/include/moc_slaveinterface.cpp:518

#18 0x00007fcfd76e2f51 in KIO::SlaveInterface::dispatch(int, QByteArray
const&) (this=0x6d2e420, _cmd=20, rawdata=...) at
/home/jtorres/kdesrc/frameworks/kio/src/core/slaveinterface.cpp:247

#19 0x00007fcfd76e2745 in KIO::SlaveInterface::dispatch() (this=0x6d2e420)
at /home/jtorres/kdesrc/frameworks/kio/src/core/slaveinterface.cpp:89

#20 0x00007fcfd76e6f22 in KIO::Slave::gotInput() (this=0x6d2e420) at
/home/jtorres/kdesrc/frameworks/kio/src/core/slave.cpp:406

#21 0x00007fcfd777ac91 in KIO::Slave::qt_static_metacall(QObject*,
QMetaObject::Call, int, void**) (_o=0x6d2e420,
_c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff19e2be30) at
/home/jtorres/kdesrc/build/frameworks/kio/src/core/KF5KIOCore_autogen/EWIEGA46WW/moc_slave.cpp:89

#22 0x00007fcfd28f102a in QMetaObject::activate(QObject*, int, int, void**)
() at /usr/lib64/libQt5Core.so.5

#23 0x00007fcfd768c575 in KIO::Connection::readyRead() (this=0x6d26c90) at
/home/jtorres/kdesrc/build/frameworks/kio/src/core/KF5KIOCore_autogen/include/moc_connection_p.cpp:143

#24 0x00007fcfd768b361 in KIO::ConnectionPrivate::dequeue()
(this=0x6c75d70) at
/home/jtorres/kdesrc/frameworks/kio/src/core/connection.cpp:46


I'm working in KCoreDirListerCache right now.
https://phabricator.kde.org/D10742
But it doesn't solve this crash, I'll try to fix the crashes.


2018-02-21 22:32 GMT+01:00 Dominik Haumann <dhaumann at kde.org>:

> Hi everyone,
>
> given the momentum we currently have in KIO fixes, I would like to raise
> attention to the bug below, which may be 10+ years old.
>
> Maybe we have some developers here who can reproduce?
>
> Best regards,
> Dominik
>
> Am 20.02.2018 23:38 schrieb "Valdo" <bugzilla_noreply at kde.org>:
>
> https://bugs.kde.org/show_bug.cgi?id=390288
>
> --- Comment #2 from Valdo  ---
> Hi Dominik,
>
> yes I can reproduce this issue systematically.
>
> A/ Test case avoiding the bug:
>
> I can create an empty text file in the remote Samba share with Dolphin.
> Then
> open that empty file with Kate, feed it with some text and save it: no
> issue.
>
> B/ Test case hitting the bug:
>
> Launch Kate, type in some text, then click Save, navigate to the "Network"
> shortcut, then double-clicking "Samba shares": Kate crashes in less than a
> second.
>
> By reading the first part of bug #190535, I had the idea to launch Kate
> from
> Konsole. As soon as I click Save (to select a destination folder), this
> information displays in Konsole:
>
> kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find ""
> kf5.kio.core: KSambaShare: Could not find smb.conf!
>
> Each time I navigate to a new local subfolder, I get this information:
>
> kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find ""
>
> Then clicking the "Network" shortcut to the left of the Save window:
>
> kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find ""
>
> As soon as I double-click "Samba shares" to the right, I get this in
> Konsole:
>
> kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find ""
> kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find ""
> kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find ""
> kf5.kio.widgets: Items emitted in directory QUrl("smb://") but that
> directory
> isn't in KDirModel! Root directory: QUrl("smb:///")
> Item: QUrl("smb://workgroup")
> KCrash: crashing... crashRecursionCounter = 2
> KCrash: Application Name = kate path = /usr/bin pid = 1779
> KCrash: Arguments: /usr/bin/kate
> KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from
> kdeinit
> sock_file=/run/user/1000/kdeinit5__0
>
> [2]+  ArrĂȘtĂ©                kate
> $
>
> Remember my Samba share is hosted on a Linux Mint 18.3 machine. On that
> machine, when right-clicking the folder shared with Samba and selecting
> option
> "Sharing options" (or equivalent English translation), I can notice that
> message: "The share name is too long" (or equivalent English translation).
> In
> my case, the share name is "Partage Mint-land".
>
> I hope this helps. Feel free to ask for more details if needed. And thanks
> for
> your investigation.
>
> --
> You are receiving this mail because:
> You are watching the assignee of the bug.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180302/dd5f9800/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list