Bug 161218

Summary: Dolphin crashes browsing "remote:/" when Folders panel is enabled (kdirmodel.cpp:377)
Product: [Unmaintained] kdelibs Reporter: Michel Filipe <me>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, peter.penz19
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Dolphinrc that makes Dolphin crash when going to remote:/

Description Michel Filipe 2008-04-24 05:11:53 UTC
Version:           1.0.2 (using KDE 4.0.3)
Installed from:    Gentoo Packages
Compiler:          gcc-4.1.2 Gentoo 4.1.2 p1.0.2
OS:                Linux

When I click on Network option, my dolphin craches. I up and down my samba server for test, but the crash persist.

See the debug:
dolphin(12744)/kio (Slave) KIO::Slave::createSlave: createSlave ' "file" ' for  "file:///home/michel"
dolphin(12744)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-michel/dolphinf12744.slave-socket"
dolphin(12744)/kio (KDirListerCache) KDirListerCache::slotEntries: new entries for  KUrl("file:///home/michel")
dolphin(12744)/kio (KDirModel) KDirModelPrivate::_k_slotNewItems: 21  in  KUrl("file:///home/michel")  index= "[invalid index, i.e. root]"  newRowCount= 21
dolphin(12744)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("file:///home/michel")
dolphin(12744)/kio KSambaShare::KSambaSharePrivate::readSmbConf: KSambaShare::readSmbConf  "/etc/samba/smb.conf"
dolphin(12744)/kio KSambaShare::KSambaSharePrivate::readSmbConf: KSambaShare: Found path:  "/mnt/extra/mp3/"
dolphin(12744)/kio KSambaShare::KSambaSharePrivate::readSmbConf: KSambaShare: Found path:  "/mnt/extra/videos/"
dolphin(12744)/kio KSambaShare::KSambaSharePrivate::readSmbConf: KSambaShare: Found path:  "/mnt/extra/shared/"
dolphin(12744)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added File "/etc/samba/smb.conf" for "" ["KDirWatch-1"]
dolphin(12744)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring
dolphin(12744)/kio (KDirWatch) KDirWatchPrivate::useINotify: inotify successfully used for monitoring
dolphin(12744)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added File "/etc/security/fileshare.conf" for "" ["KDirWatch-1"]
dolphin(12744)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring
dolphin(12744)/kio (KDirWatch) KDirWatchPrivate::useFAM:  Setup FAM (Req 1) for "/etc/security/fileshare.conf"
dolphin(12744)/kio KNFSShare::KNFSSharePrivate::findExportsFile: KNFSShare: Could not find exports file!
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "desktop"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "application-x-qw"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "text-x-log"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "application-x-qw"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "text-x-log"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "desktop"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "application-x-qw"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "text-x-log"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "application-x-qw"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "text-x-log"
dolphin(12744) KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"
dolphin(12744) KMimeTypeFactory::parseMagic: Now parsing  "/home/michel/.local/share/mime/magic"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "desktop"
dolphin(12744)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "text-x-log"
dolphin(12744)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::KCoreConfigSkeleton: Creating KCoreConfigSkeleton ( 0x81ab9a8 )
dolphin(12744)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::KCoreConfigSkeleton: Creating KCoreConfigSkeleton ( 0x83843f8 )
dolphin(12744)/kio (KDirLister) KDirLister::stop:
dolphin(12744)/kio (KDirListerCache) KDirListerCache::listDir: DolphinDirLister(0x81cff20) url= KUrl("remote:/") keep= false reload= false
dolphin(12744)/kio (KDirListerCache) KDirListerCache::forgetDirs: DolphinDirLister(0x81cff20)  item moved into cache:  KUrl("file:///home/michel")
dolphin(12744)/kio (KDirListerCache) KDirListerCache::listDir: Entry not in cache or reloaded: KUrl("remote:/")
dolphin(12744)/kio (Slave) KIO::Slave::createSlave: createSlave ' "remote" ' for  "remote:/"
dolphin(12744)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-michel/dolphinU12744.slave-socket"
dolphin(12744)/kio (KDirListerCache) KDirListerCache::slotEntries: new entries for  KUrl("remote:/")
ASSERT: "!name.isEmpty()" in file /var/tmp/portage/kde-base/kdelibs-4.0.3/work/kdelibs-4.0.3/kio/kio/kdirlister.cpp, line 935
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = dolphin path = <unknown> pid = 12744
sock_file=/home/michel/.kde/socket-benita/kdeinit4__0
KCrash cannot reach kdeinit, launching directly.
KCrash failed to exec(), errno = 2
Comment 1 Tobias Koenig 2008-04-25 09:29:16 UTC
Hej,

I can't reproduce that crash in current SVN trunk.

Ciao,
Tobias
Comment 2 Dario Andres 2008-12-19 15:24:44 UTC
I have reproduced this bug here using:

Qt: 4.4.3                 
KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))
kdelibs svn rev. 898705 / kdebase svn rev. 898705
on ArchLinux x86_64 - Kernel 2.6.27.8

Just running "dolphin remote:/" or selecting Network in Dolphin Places panel crashes Dolphin with the following backtrace:

ASSERT: "result" in file /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirmodel.cpp, line 377

remote:/

Application: Dolphin (dolphin), signal SIGABRT
0x00007fdceece3001 in nanosleep () from /lib/libc.so.6

Thread 1 (Thread 0x7fdcf315a750 (LWP 6250)):
[KCrash Handler]
#5  0x00007fdceec760c5 in raise () from /lib/libc.so.6
#6  0x00007fdceec775e3 in abort () from /lib/libc.so.6
#7  0x00007fdcef9afa25 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2102
#8  0x00007fdcef9afb47 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2303
#9  0x00007fdcf2cd8bbb in KDirModelPrivate::_k_slotNewItems (this=0x1eeac70, directoryUrl=<value optimized out>, items=@0x2a480d0) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirmodel.cpp:377
#10 0x00007fdcf2cd8c89 in KDirModel::qt_metacall (this=0x2644570, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffffb29a220)
    at /home/kde-devel/kde/build/KDE/kdelibs/kio/kdirmodel.moc:76
#11 0x00007fdcefaaaac0 in QMetaObject::activate (sender=0x2657950, from_signal_index=<value optimized out>, to_signal_index=14, argv=0xffffffffffffffff) at kernel/qobject.cpp:3028
#12 0x00007fdcf2cba42a in KDirLister::itemsAdded (this=0x186a, _t1=<value optimized out>, _t2=<value optimized out>) at /home/kde-devel/kde/build/KDE/kdelibs/kio/kdirlister.moc:266
#13 0x00007fdcf2cbb2db in KDirLister::Private::emitItems (this=0x2665860) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirlister.cpp:2234
#14 0x00007fdcf2cbde8e in KDirListerCache::slotEntries (this=0x22312a0, job=<value optimized out>, entries=@0x266b848) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirlister.cpp:1052
#15 0x00007fdcf2ccd38b in KDirListerCache::qt_metacall (this=0x22312a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffffb29a5a0)
    at /home/kde-devel/kde/build/KDE/kdelibs/kio/kdirlister_p.moc:97
#16 0x00007fdcefaaaac0 in QMetaObject::activate (sender=0x2785180, from_signal_index=<value optimized out>, to_signal_index=40, argv=0xffffffffffffffff) at kernel/qobject.cpp:3028
#17 0x00007fdcf2c943a4 in KIO::ListJob::entries (this=0x186a, _t1=0x2785180, _t2=<value optimized out>) at /home/kde-devel/kde/build/KDE/kdelibs/kio/jobclasses.moc:763
#18 0x00007fdcf2ca1a66 in KIO::ListJobPrivate::slotListEntries (this=0x2846c00, list=@0x7ffffb29ab30) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/job.cpp:2341
#19 0x00007fdcf2ca1bd6 in KIO::ListJob::qt_metacall (this=0x2785180, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffffb29a910)
    at /home/kde-devel/kde/build/KDE/kdelibs/kio/jobclasses.moc:750
#20 0x00007fdcefaaaac0 in QMetaObject::activate (sender=0x2788e60, from_signal_index=<value optimized out>, to_signal_index=10, argv=0xffffffffffffffff) at kernel/qobject.cpp:3028
#21 0x00007fdcf2d5a075 in KIO::SlaveInterface::listEntries (this=0x186a, _t1=<value optimized out>) at /home/kde-devel/kde/build/KDE/kdelibs/kio/slaveinterface.moc:177
#22 0x00007fdcf2d5d8cf in KIO::SlaveInterface::dispatch (this=0x2788e60, _cmd=<value optimized out>, rawdata=@0x3) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slaveinterface.cpp:193
#23 0x00007fdcf2d5a448 in KIO::SlaveInterface::dispatch (this=0x2788e60) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slaveinterface.cpp:91
#24 0x00007fdcf2d4c613 in KIO::Slave::gotInput (this=0x2788e60) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slave.cpp:322
#25 0x00007fdcf2d4d648 in KIO::Slave::qt_metacall (this=0x2788e60, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7ffffb29ad00) at /home/kde-devel/kde/build/KDE/kdelibs/kio/slave.moc:75
#26 0x00007fdcefaaaac0 in QMetaObject::activate (sender=0x26ea510, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffffffffffff) at kernel/qobject.cpp:3028
#27 0x00007fdcf2c68370 in KIO::ConnectionPrivate::dequeue (this=0x27a8b10) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/connection.cpp:82
#28 0x00007fdcf2c684aa in KIO::Connection::qt_metacall (this=0x26ea510, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x2848150) at /home/kde-devel/kde/build/KDE/kdelibs/kio/connection.moc:72
#29 0x00007fdcefaa4c6e in QObject::event (this=0x26ea510, e=0x28463a0) at kernel/qobject.cpp:1152
#30 0x00007fdcefefc0ad in QApplicationPrivate::notify_helper (this=0x1eeba10, receiver=0x26ea510, e=0x28463a0) at kernel/qapplication.cpp:3803
#31 0x00007fdceff0340e in QApplication::notify (this=0x7ffffb29b740, receiver=0x26ea510, e=0x28463a0) at kernel/qapplication.cpp:3768
#32 0x00007fdcf133e22b in KApplication::notify (this=0x7ffffb29b740, receiver=0x26ea510, event=0x28463a0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#33 0x00007fdcefa95d90 in QCoreApplication::notifyInternal (this=0x7ffffb29b740, receiver=0x26ea510, event=0x28463a0) at kernel/qcoreapplication.cpp:583
#34 0x00007fdcefa99643 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1ea5eb0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#35 0x00007fdcefabcfa3 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214
#36 0x00007fdcebc94aa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0x00007fdcebc9821d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#38 0x00007fdcebc983db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0x00007fdcefabccdf in QEventDispatcherGlib::processEvents (this=0x1eb49b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#40 0x00007fdceff83f7f in QGuiEventDispatcherGlib::processEvents (this=0x186a, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#41 0x00007fdcefa949c2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -81152400}) at kernel/qeventloop.cpp:143
#42 0x00007fdcefa94b55 in QEventLoop::exec (this=0x7ffffb29b6b0, flags={i = -81152320}) at kernel/qeventloop.cpp:190
#43 0x00007fdcefa998f7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#44 0x000000000044376d in main (argc=6, argv=0x7ffffb29bc28) at /home/kde-devel/kde/src/KDE/kdebase/apps/dolphin/src/main.cpp:94

I'm going to check this later with a clean user account.
Comment 3 Dario Andres 2008-12-19 15:27:27 UTC
I can't reproduce it with a clear account (deleting the ~/.kde4 folder). I will update this bug report if I find a way to reproduce it clearly. :)
Comment 4 Dario Andres 2008-12-21 23:20:45 UTC
Mh, as today dolphin crashes again when going to remote:/ . I have been using this clean .kde4/ account for 2 days , and I browsed some samba shares manually using the SMB kioslave . 

Update:

I've found something interesting. Deleting my .kde4/share/config/dolphinrc will solve this problem. So maybe a faulty dolphinrc is generated, and it crashes Dolphin when going to remote:/

Here I'm using:

Qt: 4.4.3
KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))
kdelibs svn rev. 899634 / kdebase svn rev. 899635
on ArchLinux x86_64 - Kernel 2.6.27.8

Peter can you check out the attachment ? Does this dolphinrc make Dolphin crash when going to "remote:/" (may other configuration files be related in this issue too) ?? If you need some information or config files, just ask me. Thanks :)
Comment 5 Dario Andres 2008-12-21 23:21:19 UTC
Created attachment 29526 [details]
Dolphinrc that makes Dolphin crash when going to remote:/
Comment 6 Dario Andres 2008-12-22 00:53:16 UTC
I discovered new things:

Dolphin crashes when browsing remote:/ if the "Folders" panel is enabled. (I suppose that was the change between my dolphinrc problematic file and a default one)

Steps to reproduce (at least here)

- Start Dolphin
- Disable all the Panels
- Close Dolphin (to clean-up things)

- Start Dolphin again
- Browse to "remote:/" (Network Places)
Dolphin doesn't crash.
- Add the "Folders" panel

Dolphin crashes with the same info as I described in comment 2
Comment 7 Dario Andres 2008-12-22 01:08:19 UTC

*** This bug has been marked as a duplicate of bug 178416 ***