Bug 177125

Summary: dolphin crashes when deleting a file
Product: [Unmaintained] kdelibs Reporter: Cristi <cuciferus>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: crash CC: alex.ganster, andresbajotierra, archeybunker, belitsky.a, EagleScreen, lindsay.mathieson, mail, mattiassicha, mschiff, mtadeunet, net-account, opensource, pascal, peterix, romain.pub, schwarzer, slashdevdsp, steffen.schloenvoigt
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Cristi 2008-12-07 08:47:24 UTC
Version:           1.1.80 (using Devel)
Compiler:          x86_64-pc-linux-gnu-4.3.2 
OS:                Linux
Installed from:    Compiled sources

deleting a file in dolphin will crash it...the file gets deleted though.This happens on ext3 and reiserfs also and it's simple to reproduce:just delete a file/directory,a regular one(with rw permisions)
Application: Dolphin (dolphin), signal SIGSEGV
0x00007fe50b044be0 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7fe510b98750 (LWP 4166)):
[KCrash Handler]                            
#5  QListData::size (this=0x3f) at /usr/include/qt4/QtCore/qlist.h:89
#6  0x00007fe51063ff78 in QList<KDirModelNode*>::indexOf (this=0x3f, t=@0x7fff18bd7b80, from=0) at /usr/include/qt4/QtCore/qlist.h:625                                                                                                                    
#7  0x00007fe51063b9d4 in KDirModelNode::rowNumber (this=<value optimized out>) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kio/kio/kdirmodel.cpp:117                                                                                       
#8  0x00007fe51063babd in KDirModelPrivate::indexForNode (this=0x22f7090, node=0x2727970, rowNumber=-1) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kio/kio/kdirmodel.cpp:291                                                               
#9  0x00007fe51063d794 in KDirModel::indexForUrl (this=0x2353970, url=@0x2355488) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kio/kio/kdirmodel.cpp:854                                                                                     
#10 0x00007fe50fe1f553 in DolphinView::restoreCurrentItem (this=0x23553e0) at /var/tmp/paludis/kde-base-dolphin-scm/work/dolphin/apps/dolphin/src/dolphinview.cpp:1095                                                                                    
#11 0x00007fe50fe20312 in DolphinView::qt_metacall (this=0x23553e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff18bd7d60)                                                                                                       
    at /var/tmp/paludis/kde-base-dolphin-scm/work/dolphin_build/apps/dolphin/src/dolphinview.moc:204                         
#12 0x00007fe50d3b6d3c in QMetaObject::activate (sender=0x22f6c00, from_signal_index=<value optimized out>, to_signal_index=5, argv=0xffffffff) at kernel/qobject.cpp:3028                                                                                
#13 0x00007fe51062fa84 in KDirListerCache::slotUpdateResult (this=0x227bad0, j=<value optimized out>) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kio/kio/kdirlister.cpp:1579                                                               
#14 0x00007fe51063416f in KDirListerCache::qt_metacall (this=0x227bad0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff18bd8280)                                                                                                   
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs_build/kio/kdirlister_p.moc:101                                     
#15 0x00007fe50d3b6d3c in QMetaObject::activate (sender=0x25c0380, from_signal_index=<value optimized out>, to_signal_index=7, argv=0xffffffff) at kernel/qobject.cpp:3028                                                                                
#16 0x00007fe50e53bcf2 in KJob::result (this=0x3f, _t1=0x25c0380) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs_build/kdecore/kjob.moc:186                                                                                                        
#17 0x00007fe50e53c0d3 in KJob::emitResult (this=0x25c0380) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kdecore/jobs/kjob.cpp:294                                                                                                           
#18 0x00007fe51060fe0e in KIO::SimpleJob::slotFinished (this=0x25c0380) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kio/kio/job.cpp:489                                                                                                     
#19 0x00007fe51060ffd8 in KIO::ListJob::slotFinished (this=0x25c0380) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kio/kio/job.cpp:2416                                                                                                      
#20 0x00007fe510614445 in KIO::ListJob::qt_metacall (this=0x25c0380, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff18bd85c0)                                                                                                      
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs_build/kio/jobclasses.moc:747                                       
#21 0x00007fe50d3b6d3c in QMetaObject::activate (sender=0x26e02d0, from_signal_index=<value optimized out>, to_signal_index=8, argv=0xffffffff) at kernel/qobject.cpp:3028                                                                                
#22 0x00007fe5106a2e23 in KIO::SlaveInterface::dispatch (this=0x26e02d0, _cmd=104, rawdata=<value optimized out>)            
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kio/kio/slaveinterface.cpp:175                                 
#23 0x00007fe5106a36c7 in KIO::SlaveInterface::dispatch (this=0x26e02d0) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kio/kio/slaveinterface.cpp:91                                                                                          
#24 0x00007fe51069788a in KIO::Slave::gotInput (this=0x26e02d0) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kio/kio/slave.cpp:322                                                                                                           
#25 0x00007fe510698900 in KIO::Slave::qt_metacall (this=0x26e02d0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff18bd8970)                                                                                                                            
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs_build/kio/slave.moc:75                                             
#26 0x00007fe50d3b6d3c in QMetaObject::activate (sender=0x2700900, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffff) at kernel/qobject.cpp:3028                                                                                
#27 0x00007fe5105ea0db in KIO::ConnectionPrivate::dequeue (this=0x2700b40) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kio/kio/connection.cpp:82                                                                                            
#28 0x00007fe5105eae82 in KIO::Connection::qt_metacall (this=0x2700900, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x27299f0)                                                                                                                            
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs_build/kio/connection.moc:72                                        
#29 0x00007fe50d3afe2d in QObject::event (this=0x2700900, e=0x27456d0) at kernel/qobject.cpp:1152                            
#30 0x00007fe50d821f4d in QApplicationPrivate::notify_helper (this=0x217ed90, receiver=0x2700900, e=0x27456d0) at kernel/qapplication.cpp:3809                                                                                                            
#31 0x00007fe50d828d8e in QApplication::notify (this=0x7fff18bd93a0, receiver=0x2700900, e=0x27456d0) at kernel/qapplication.cpp:3774                                                                                                                     
#32 0x00007fe50eced026 in KApplication::notify (this=0x7fff18bd93a0, receiver=0x2700900, event=0x27456d0) at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kdeui/kernel/kapplication.cpp:307                                                     
#33 0x00007fe50d39fc2e in QCoreApplication::notifyInternal (this=0x7fff18bd93a0, receiver=0x2700900, event=0x27456d0) at kernel/qcoreapplication.cpp:593
#34 0x00007fe50d3a0beb in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x215ca90) at kernel/qcoreapplication.h:215
#35 0x00007fe50d3caab3 in postEventSourceDispatch (s=<value optimized out>) at kernel/qcoreapplication.h:220
#36 0x00007fe509748031 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0x00007fe50974b70d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#38 0x00007fe50974b8cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0x00007fe50d3ca7ff in QEventDispatcherGlib::processEvents (this=0x2179d20, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:325
#40 0x00007fe50d8b6a5f in QGuiEventDispatcherGlib::processEvents (this=0x3f, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#41 0x00007fe50d39e832 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 415077072}) at kernel/qeventloop.cpp:149
#42 0x00007fe50d39e9bd in QEventLoop::exec (this=0x7fff18bd9310, flags={i = 415077152}) at kernel/qeventloop.cpp:200
#43 0x00007fe50d3a0efd in QCoreApplication::exec () at kernel/qcoreapplication.cpp:851
#44 0x000000000043e201 in main (argc=6, argv=0x7fff18bd9888) at /var/tmp/paludis/kde-base-dolphin-scm/work/dolphin/apps/dolphin/src/main.cpp:94
Comment 1 Peter Penz 2008-12-07 13:41:02 UTC
Thanks for the report, this has been fixed already.
Comment 2 Peter Penz 2008-12-13 18:10:38 UTC
*** Bug 177663 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2008-12-13 19:36:05 UTC
*** Bug 176849 has been marked as a duplicate of this bug. ***
Comment 4 Cristi 2008-12-15 10:02:01 UTC
well it still happens here with yesterday update from svn. Should I post another backtrace?
Comment 5 Peter Penz 2008-12-15 10:12:14 UTC
If the backtrace is different from the first one, please attach it :-) However I cannot reproduce the crash. Are you sure that you have a clean build of kdelibs + kdebase?
Comment 6 Cristi 2008-12-15 10:16:39 UTC
I can't read backtraces so to my untrained eye the look the same, although I'm pretty sure I updated the whole pack. I'll try again tonight
Comment 7 Dario Andres 2008-12-15 22:43:42 UTC
*** Bug 177873 has been marked as a duplicate of this bug. ***
Comment 8 Peter Penz 2008-12-17 12:17:25 UTC
*** Bug 177978 has been marked as a duplicate of this bug. ***
Comment 9 Dario Andres 2008-12-19 00:03:24 UTC
Mh, I have experienced this bug with today's svn build.

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 - 2.6.27.8

I was doing some cleanup in my testing KDE4.2svn account home dir, when I deleted (completely erase, not moving to trash) a folder with a custom icon and some test files inside (some empty folders, an ogg file, and a empty folder with a custom icon inside too).

Also after removing a folder with one test txt file inside.

Backtrace:

Application: Dolphin (dolphin), signal SIGSEGV
0x00007fb349ffafd0 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7fb34e472750 (LWP 5635)):
[KCrash Handler]
#5  KDirModelNode::rowNumber (this=0x1b84690) at /usr/include/QtCore/qlist.h:83
#6  0x00007fb34dfe9a48 in KDirModelPrivate::indexForNode (this=0x17d1440, node=0x1b84690, rowNumber=-1) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirmodel.cpp:291
#7  0x00007fb34dfee36b in KDirModel::indexForUrl (this=0x184dd40, url=@0x18548b8) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirmodel.cpp:856
#8  0x00007fb34d7b42ee in DolphinView::restoreCurrentItem (this=0x1854810) at /home/kde-devel/kde/src/KDE/kdebase/apps/dolphin/src/dolphinview.cpp:1095
#9  0x00007fb34d7b7d9f in DolphinView::qt_metacall (this=0x1854810, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff565afd60)
    at /home/kde-devel/kde/build/KDE/kdebase/apps/dolphin/src/dolphinview.moc:204
#10 0x00007fb34adc2ac0 in QMetaObject::activate (sender=0x184dce0, from_signal_index=<value optimized out>, to_signal_index=5, argv=0xffffffff) at kernel/qobject.cpp:3028
#11 0x00007fb34dfe41e4 in KDirListerCache::slotUpdateResult (this=0x152a570, j=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirlister.cpp:1581
#12 0x00007fb34dfe5327 in KDirListerCache::qt_metacall (this=0x152a570, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff565b01f0)
    at /home/kde-devel/kde/build/KDE/kdelibs/kio/kdirlister_p.moc:101
#13 0x00007fb34adc2ac0 in QMetaObject::activate (sender=0x1c94650, from_signal_index=<value optimized out>, to_signal_index=7, argv=0xffffffff) at kernel/qobject.cpp:3028
#14 0x00007fb34be5ef92 in KJob::result (this=0x1b84690, _t1=0x1c94650) at /home/kde-devel/kde/build/KDE/kdelibs/kdecore/kjob.moc:186
#15 0x00007fb34be5f35f in KJob::emitResult (this=0x1c94650) at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/jobs/kjob.cpp:294
#16 0x00007fb34dfb4fe0 in KIO::SimpleJob::slotFinished (this=0x1c94650) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/job.cpp:489
#17 0x00007fb34dfb7b15 in KIO::ListJob::slotFinished (this=0x1c94650) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/job.cpp:2416
#18 0x00007fb34dfb9c2d in KIO::ListJob::qt_metacall (this=0x1c94650, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff565b0530)
    at /home/kde-devel/kde/build/KDE/kdelibs/kio/jobclasses.moc:747
#19 0x00007fb34adc2ac0 in QMetaObject::activate (sender=0x1bd8230, from_signal_index=<value optimized out>, to_signal_index=8, argv=0xffffffff) at kernel/qobject.cpp:3028
#20 0x00007fb34e075971 in KIO::SlaveInterface::dispatch (this=0x1bd8230, _cmd=104, rawdata=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slaveinterface.cpp:175
#21 0x00007fb34e072448 in KIO::SlaveInterface::dispatch (this=0x1bd8230) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slaveinterface.cpp:91
#22 0x00007fb34e064613 in KIO::Slave::gotInput (this=0x1bd8230) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slave.cpp:322
#23 0x00007fb34e065648 in KIO::Slave::qt_metacall (this=0x1bd8230, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff565b0950) at /home/kde-devel/kde/build/KDE/kdelibs/kio/slave.moc:75
#24 0x00007fb34adc2ac0 in QMetaObject::activate (sender=0x1b909a0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffff) at kernel/qobject.cpp:3028
#25 0x00007fb34df80370 in KIO::ConnectionPrivate::dequeue (this=0x1ca7f40) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/connection.cpp:82
#26 0x00007fb34df804aa in KIO::Connection::qt_metacall (this=0x1b909a0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x1bb9780) at /home/kde-devel/kde/build/KDE/kdelibs/kio/connection.moc:72
#27 0x00007fb34adbcc6e in QObject::event (this=0x1b909a0, e=0x1be94e0) at kernel/qobject.cpp:1152
#28 0x00007fb34b2140ad in QApplicationPrivate::notify_helper (this=0x136b790, receiver=0x1b909a0, e=0x1be94e0) at kernel/qapplication.cpp:3803
#29 0x00007fb34b21b40e in QApplication::notify (this=0x7fff565b1390, receiver=0x1b909a0, e=0x1be94e0) at kernel/qapplication.cpp:3768
#30 0x00007fb34c65622b in KApplication::notify (this=0x7fff565b1390, receiver=0x1b909a0, event=0x1be94e0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#31 0x00007fb34adadd90 in QCoreApplication::notifyInternal (this=0x7fff565b1390, receiver=0x1b909a0, event=0x1be94e0) at kernel/qcoreapplication.cpp:583
#32 0x00007fb34adb1643 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x131eeb0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#33 0x00007fb34add4fa3 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214
#34 0x00007fb346facaa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#35 0x00007fb346fb021d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#36 0x00007fb346fb03db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#37 0x00007fb34add4cdf in QEventDispatcherGlib::processEvents (this=0x132d9b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#38 0x00007fb34b29bf7f in QGuiEventDispatcherGlib::processEvents (this=0x1b84690, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#39 0x00007fb34adac9c2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1448809152}) at kernel/qeventloop.cpp:143
#40 0x00007fb34adacb55 in QEventLoop::exec (this=0x7fff565b1300, flags={i = 1448809232}) at kernel/qeventloop.cpp:190
#41 0x00007fb34adb18f7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#42 0x000000000044376d in main (argc=6, argv=0x7fff565b1878) at /home/kde-devel/kde/src/KDE/kdebase/apps/dolphin/src/main.cpp:94

------

May this bug report be re-opened ?

Comment 10 Peter Penz 2008-12-19 00:11:04 UTC
@DarĂ­o: I've reopened this issue and have assigned it to David Faure (KDirModel issue). Hm, I was quite sure this issue has already been fixed some days ago...
Comment 11 Peter Penz 2008-12-19 17:10:54 UTC
*** Bug 177663 has been marked as a duplicate of this bug. ***
Comment 12 Peter Penz 2008-12-20 13:57:25 UTC
*** Bug 178170 has been marked as a duplicate of this bug. ***
Comment 13 Peter Penz 2008-12-20 14:01:19 UTC
*** Bug 178205 has been marked as a duplicate of this bug. ***
Comment 14 George Kiagiadakis 2008-12-22 11:26:14 UTC
Still getting this crash here too... kdelibs 899730 and dolphin 899357.
Comment 15 David Faure 2008-12-22 15:54:36 UTC
SVN commit 900309 by dfaure:

Fix KDirModel hash corruption: when deleting a directory, the child urls were removed from the hash but not the directory itself. Ouch.
BUG: 177125


 M  +1 -2      kio/kdirmodel.cpp  
 M  +32 -0     tests/kdirmodeltest.cpp  
 M  +1 -0      tests/kdirmodeltest.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=900309
Comment 16 David Faure 2008-12-22 22:03:52 UTC
*** Bug 178482 has been marked as a duplicate of this bug. ***
Comment 17 Dario Andres 2008-12-23 01:41:52 UTC
Bug 178521 seems to be related to this but in SVN revision 900391. (?)
Comment 18 Dario Andres 2008-12-25 11:04:06 UTC
*** Bug 178706 has been marked as a duplicate of this bug. ***
Comment 19 Dario Andres 2008-12-25 17:58:26 UTC
*** Bug 178744 has been marked as a duplicate of this bug. ***
Comment 20 Dario Andres 2008-12-27 13:41:21 UTC
*** Bug 178887 has been marked as a duplicate of this bug. ***
Comment 21 Dario Andres 2008-12-27 13:42:10 UTC
*** Bug 178822 has been marked as a duplicate of this bug. ***
Comment 22 FiNeX 2008-12-28 19:10:11 UTC
*** Bug 178943 has been marked as a duplicate of this bug. ***
Comment 23 Dario Andres 2008-12-29 22:44:15 UTC
*** Bug 179084 has been marked as a duplicate of this bug. ***
Comment 24 Dario Andres 2009-01-04 18:05:48 UTC
*** Bug 179634 has been marked as a duplicate of this bug. ***
Comment 25 Dario Andres 2009-01-04 23:10:05 UTC
*** Bug 179656 has been marked as a duplicate of this bug. ***
Comment 26 Dario Andres 2009-01-05 23:04:05 UTC
*** Bug 179760 has been marked as a duplicate of this bug. ***
Comment 27 Dario Andres 2009-01-08 21:22:54 UTC
*** Bug 180061 has been marked as a duplicate of this bug. ***
Comment 28 Dario Andres 2009-01-11 19:14:03 UTC
*** Bug 180352 has been marked as a duplicate of this bug. ***