Bug 177795

Summary: Trying to reproduce bug 158934 Dolphin crashed when click on a non-existant location bar item with Folders panel enabled
Product: [Unmaintained] kdelibs Reporter: Dario Andres <andresbajotierra>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dario Andres 2008-12-14 20:51:36 UTC
Version:           KDE4.2svn (kdelibs svn rev. 896844 / kdebase svn rev. 896844) (using Devel)
OS:                Linux
Installed from:    Compiled sources

Here using:
Qt: 4.4.3
KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))
kdelibs svn rev. 896844 / kdebase svn rev. 896844
(today (20081214) build)

on ArchLinux x86_64

While trying to reproduce bug 158934 I experienced a Dolphin crash

Steps to reproduce:
-- Have Folders panel enabled in Dolphin

Now reproduce bug 158934:
(Insert a USB device , browse to some folders ("MediaDisk/Folder1/Folder2") inside it using Dolphin, safely remove the device.)

You get a location bar with non-existant paths. If you click on a non-existant item in the location bar (like "Folder1" in the example (as you are now inside "Folder1/Folder2") ), Dolphin crashes with the following backtraces:


Application: Dolphin (dolphin), signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
0x00007f7bf30d1ed1 in nanosleep () from /lib/libc.so.6

Thread 1 (Thread 0x7f7bf88d3750 (LWP 26010)):
[KCrash Handler]
#5  0x00007f7bf844b76f in KDirModelNode::rowNumber (this=0x12c2220) at /usr/include/QtCore/qlist.h:83
#6  0x00007f7bf844b978 in KDirModelPrivate::indexForNode (this=0x1456bf0, node=0x12c2220, rowNumber=-1) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirmodel.cpp:291
#7  0x00007f7bf845029b in KDirModel::indexForUrl (this=0xca9fe0, url=@0x137a980) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirmodel.cpp:856
#8  0x000000000044b53b in TreeViewSidebarPage::selectLeafDirectory (this=0x137a920) at /home/kde-devel/kde/src/KDE/kdebase/apps/dolphin/src/treeviewsidebarpage.cpp:260
#9  0x000000000044b7ba in TreeViewSidebarPage::expandToDir (this=0x137a920, index=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/apps/dolphin/src/treeviewsidebarpage.cpp:218
#10 0x000000000044ba0c in TreeViewSidebarPage::qt_metacall (this=0x137a920, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff00a0fdb0)
    at /home/kde-devel/kde/build/KDE/kdebase/apps/dolphin/src/treeviewsidebarpage.moc:86
#11 0x00007f7bf5224ac0 in QMetaObject::activate (sender=0xca9fe0, from_signal_index=<value optimized out>, to_signal_index=20, argv=0x0) at kernel/qobject.cpp:3028
#12 0x00007f7bf844b8b2 in KDirModel::expand (this=0x12c2220, _t1=<value optimized out>) at /home/kde-devel/kde/build/KDE/kdelibs/kio/kdirmodel.moc:90
#13 0x00007f7bf844fb7d in KDirModelPrivate::expandAllParentsUntil (this=0x1456bf0, _url=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirmodel.cpp:255
#14 0x00007f7bf844fd32 in KDirModel::expandToUrl (this=0xca9fe0, url=@0x1456bf0) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirmodel.cpp:1003
#15 0x000000000044b6bd in TreeViewSidebarPage::loadTree (this=0x137a920, url=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/apps/dolphin/src/treeviewsidebarpage.cpp:255
#16 0x000000000044ba59 in TreeViewSidebarPage::qt_metacall (this=0x137a920, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff00a10340)
    at /home/kde-devel/kde/build/KDE/kdebase/apps/dolphin/src/treeviewsidebarpage.moc:83
#17 0x00007f7bf5224ac0 in QMetaObject::activate (sender=0xd724c0, from_signal_index=<value optimized out>, to_signal_index=47, argv=0x0) at kernel/qobject.cpp:3028
#18 0x00000000004262a3 in DolphinMainWindow::urlChanged (this=0x12c2220, _t1=<value optimized out>) at /home/kde-devel/kde/build/KDE/kdebase/apps/dolphin/src/dolphinmainwindow.moc:254
#19 0x000000000042a1aa in DolphinMainWindow::changeUrl (this=0xd724c0, url=@0x7fff00a105b0) at /home/kde-devel/kde/src/KDE/kdebase/apps/dolphin/src/dolphinmainwindow.cpp:221
#20 0x0000000000431131 in DolphinMainWindow::qt_metacall (this=0xd724c0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff00a104d0)
    at /home/kde-devel/kde/build/KDE/kdebase/apps/dolphin/src/dolphinmainwindow.moc:165
#21 0x00007f7bf5224ac0 in QMetaObject::activate (sender=0x10a14b0, from_signal_index=<value optimized out>, to_signal_index=28, argv=0x0) at kernel/qobject.cpp:3028
#22 0x00007f7bf8100835 in KUrlNavigator::urlChanged (this=0x12c2220, _t1=<value optimized out>) at /home/kde-devel/kde/build/KDE/kdelibs/kfile/kurlnavigator.moc:140
#23 0x00007f7bf8104191 in KUrlNavigator::setUrl (this=0x10a14b0, url=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdelibs/kfile/kurlnavigator.cpp:1023
#24 0x00007f7bf80fe865 in KUrlNavigatorButton::updateNavigatorUrl (this=0x1d08d90) at /home/kde-devel/kde/src/KDE/kdelibs/kfile/kurlnavigatorbutton.cpp:292
#25 0x00007f7bf80ffd90 in KUrlNavigatorButton::qt_metacall (this=0x1d08d90, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff00a10880)
    at /home/kde-devel/kde/build/KDE/kdelibs/kfile/kurlnavigatorbutton_p.moc:79
#26 0x00007f7bf5224ac0 in QMetaObject::activate (sender=0x1d08d90, from_signal_index=<value optimized out>, to_signal_index=30, argv=0x0) at kernel/qobject.cpp:3028
#27 0x00007f7bf5bc8b97 in QAbstractButton::clicked (this=0x12c2220, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:185
#28 0x00007f7bf596c78b in QAbstractButtonPrivate::emitClicked (this=0x1d07610) at widgets/qabstractbutton.cpp:538
#29 0x00007f7bf596e122 in QAbstractButtonPrivate::click (this=0x1d07610) at widgets/qabstractbutton.cpp:531
#30 0x00007f7bf596e355 in QAbstractButton::mouseReleaseEvent (this=0x1d08d90, e=0x7fff00a111a0) at widgets/qabstractbutton.cpp:1110
#31 0x00007f7bf56c8cb4 in QWidget::event (this=0x1d08d90, event=0x7fff00a111a0) at kernel/qwidget.cpp:7163
#32 0x00007f7bf56760ad in QApplicationPrivate::notify_helper (this=0xca1680, receiver=0x1d08d90, e=0x7fff00a111a0) at kernel/qapplication.cpp:3803
#33 0x00007f7bf567dc65 in QApplication::notify (this=<value optimized out>, receiver=0x1d08d90, e=0x7fff00a111a0) at kernel/qapplication.cpp:3528
#34 0x00007f7bf6ab822b in KApplication::notify (this=0x7fff00a11e30, receiver=0x1d08d90, event=0x7fff00a111a0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#35 0x00007f7bf520fd90 in QCoreApplication::notifyInternal (this=0x7fff00a11e30, receiver=0x1d08d90, event=0x7fff00a111a0) at kernel/qcoreapplication.cpp:583
#36 0x00007f7bf567cfe2 in QApplicationPrivate::sendMouseEvent (receiver=0x1d08d90, event=0x7fff00a111a0, alienWidget=0x1d08d90, nativeWidget=0xd724c0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f7bf5f66450) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#37 0x00007f7bf56dabec in QETWidget::translateMouseEvent (this=0xd724c0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4044
#38 0x00007f7bf56d9d47 in QApplication::x11ProcessEvent (this=0x8d, event=0x7fff00a11a70) at kernel/qapplication_x11.cpp:3162
#39 0x00007f7bf56fe724 in x11EventSourceDispatch (s=0xca4cb0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#40 0x00007f7bf140faa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#41 0x00007f7bf141321d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#42 0x00007f7bf14133db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#43 0x00007f7bf5236cdf in QEventDispatcherGlib::processEvents (this=0xc639b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#44 0x00007f7bf56fdf7f in QGuiEventDispatcherGlib::processEvents (this=0x12c2220, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#45 0x00007f7bf520e9c2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 10558816}) at kernel/qeventloop.cpp:143
#46 0x00007f7bf520eb55 in QEventLoop::exec (this=0x7fff00a11da0, flags={i = 10558896}) at kernel/qeventloop.cpp:190
#47 0x00007f7bf52138f7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#48 0x000000000044378d in main (argc=6, argv=0x7fff00a12318) at /home/kde-devel/kde/src/KDE/kdebase/apps/dolphin/src/main.cpp:94

If you need more information just ask me.
Comment 1 Dario Andres 2008-12-14 20:53:38 UTC
More info: may be you have to click also in the "MediaDisk" item in the location bar in order to reproduce the crash.
Comment 2 David Faure 2008-12-23 01:38:18 UTC
Possibly fixed by the fix for bug 177125? Can you update and retest?
Comment 3 Dario Andres 2008-12-23 02:04:45 UTC
Seems to be fixed here using:

Qt: 4.4.3
KDE: 4.1.86 (KDE 4.1.86 (KDE 4.2 >= 20081221))
kdelibs svn rev. 900491 / kdebase svn rev. 900491
on ArchLinux x86_64 - Kernel 2.6.27.8

Good work ^_^. Thanks!