Bug 226911

Summary: Dolphin crashes when removing media while viewing a subfolder [QMetaObject::activate, KDirWatch::deleted, KDirWatch::setDeleted, KDirWatchPrivate::emitEvent]
Product: [Unmaintained] kio Reporter: Alex Merry <alex.merry>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DUPLICATE    
Severity: crash CC: slashdevdsp
Priority: NOR    
Version: 4.4   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alex Merry 2010-02-15 00:36:36 UTC
Application: dolphin (1.4)
KDE Platform Version: 4.4.00 (KDE 4.4.0) (Compiled from sources)
Qt Version: 4.6.1
Operating System: Linux 2.6.32-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
If I open some removable media, go into a subfolder and then right-click the media/device on the places bar and tell it to safely remove the device, the device is torn down and then dolphin crashes.

If I am viewing the root folder of the media when I ask for it to be safely removed, there is no problem.

The crash can be reproduced every time.

 -- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f9a4c2b379e in QMetaObject::activate (sender=0x20978d0, m=0x7f9a4dc1b620, local_signal_index=2, argv=0x7fffd7f3a130) at /home/kde-devel/src/qt/src/corelib/kernel/qobject.cpp:3229
#6  0x00007f9a4d84a68d in KDirWatch::deleted (this=0x20978d0, _t1=...) at /home/kde-devel/build/KDE/kdelibs/kio/kdirwatch.moc:103
#7  0x00007f9a4d84a406 in KDirWatch::setDeleted (this=0x20978d0, _file=...) at /home/kde-devel/src/KDE/kdelibs/kio/kio/kdirwatch.cpp:1845
#8  0x00007f9a4d8474c1 in KDirWatchPrivate::emitEvent (this=0x1cd1e40, e=0x21e2be8, event=4, fileName=...) at /home/kde-devel/src/KDE/kdelibs/kio/kio/kdirwatch.cpp:1261
#9  0x00007f9a4d847ead in KDirWatchPrivate::slotRescan (this=0x1cd1e40) at /home/kde-devel/src/KDE/kdelibs/kio/kio/kdirwatch.cpp:1395
#10 0x00007f9a4d84a7ad in KDirWatchPrivate::qt_metacall (this=0x1cd1e40, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffd7f3a4a0) at /home/kde-devel/build/KDE/kdelibs/kio/kdirwatch_p.moc:81
#11 0x00007f9a4c29ffb1 in QMetaObject::metacall (object=0x1cd1e40, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0x7fffd7f3a4a0) at /home/kde-devel/src/qt/src/corelib/kernel/qmetaobject.cpp:237
#12 0x00007f9a4c2b397f in QMetaObject::activate (sender=0x1cd1ea8, m=0x7f9a4c5e9d00, local_signal_index=0, argv=0x0) at /home/kde-devel/src/qt/src/corelib/kernel/qobject.cpp:3264
#13 0x00007f9a4c30e37d in QTimer::timeout (this=0x1cd1ea8) at .moc/debug-shared/moc_qtimer.cpp:134
#14 0x00007f9a4c2bc2b5 in QTimer::timerEvent (this=0x1cd1ea8, e=0x7fffd7f3ae90) at /home/kde-devel/src/qt/src/corelib/kernel/qtimer.cpp:271
#15 0x00007f9a4c2af8fd in QObject::event (this=0x1cd1ea8, e=0x7fffd7f3ae90) at /home/kde-devel/src/qt/src/corelib/kernel/qobject.cpp:1204
#16 0x00007f9a4b240c6a in QApplicationPrivate::notify_helper (this=0x1b0dbd0, receiver=0x1cd1ea8, e=0x7fffd7f3ae90) at /home/kde-devel/src/qt/src/gui/kernel/qapplication.cpp:4297
#17 0x00007f9a4b23e2c2 in QApplication::notify (this=0x7fffd7f3b2a0, receiver=0x1cd1ea8, e=0x7fffd7f3ae90) at /home/kde-devel/src/qt/src/gui/kernel/qapplication.cpp:3701
#18 0x00007f9a4d2391af in KApplication::notify (this=0x7fffd7f3b2a0, receiver=0x1cd1ea8, event=0x7fffd7f3ae90) at /home/kde-devel/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#19 0x00007f9a4c298d31 in QCoreApplication::notifyInternal (this=0x7fffd7f3b2a0, receiver=0x1cd1ea8, event=0x7fffd7f3ae90) at /home/kde-devel/src/qt/src/corelib/kernel/qcoreapplication.cpp:704
#20 0x00007f9a4c29c391 in QCoreApplication::sendEvent (receiver=0x1cd1ea8, event=0x7fffd7f3ae90) at ../../include/QtCore/../../../src/qt/src/corelib/kernel/qcoreapplication.h:215
#21 0x00007f9a4c2d1f53 in QTimerInfoList::activateTimers (this=0x1b12d60) at /home/kde-devel/src/qt/src/corelib/kernel/qeventdispatcher_unix.cpp:603
#22 0x00007f9a4c2cda0c in timerSourceDispatch (source=0x1b12d00) at /home/kde-devel/src/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:184
#23 0x00007f9a45b4826e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00007f9a45b4bc28 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#25 0x00007f9a45b4bd50 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x00007f9a4c2cec69 in QEventDispatcherGlib::processEvents (this=0x1ac2c40, flags=...) at /home/kde-devel/src/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:412
#27 0x00007f9a4b30fd1c in QGuiEventDispatcherGlib::processEvents (this=0x1ac2c40, flags=...) at /home/kde-devel/src/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f9a4c29654c in QEventLoop::processEvents (this=0x7fffd7f3b200, flags=...) at /home/kde-devel/src/qt/src/corelib/kernel/qeventloop.cpp:149
#29 0x00007f9a4c2966a0 in QEventLoop::exec (this=0x7fffd7f3b200, flags=...) at /home/kde-devel/src/qt/src/corelib/kernel/qeventloop.cpp:197
#30 0x00007f9a4c2993f6 in QCoreApplication::exec () at /home/kde-devel/src/qt/src/corelib/kernel/qcoreapplication.cpp:981
#31 0x00007f9a4b23de40 in QApplication::exec () at /home/kde-devel/src/qt/src/gui/kernel/qapplication.cpp:3576
#32 0x000000000043f242 in main (argc=6, argv=0x7fffd7f3b7a8) at /home/kde-devel/src/KDE/kdebase/apps/dolphin/src/main.cpp:101

Possible duplicates by query: bug 148640.

Reported using DrKonqi
Comment 1 Frank Reininghaus 2010-02-15 14:22:43 UTC
*** Bug 226980 has been marked as a duplicate of this bug. ***
Comment 2 David Faure 2010-02-15 23:51:00 UTC

*** This bug has been marked as a duplicate of bug 226788 ***
Comment 3 Telmo Xtra 2010-06-11 23:35:32 UTC
I can confirm this on KDE 4.5 BETA 2. It happens every-time that I remove media and dolphin is showing a folder from that media.

Application: Dolphin (dolphin), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f113ed84760 (LWP 10959))]

Thread 2 (Thread 0x7f112b930710 (LWP 10964)):
#0  0x00007f113e66af53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f11362194a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f11362198fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f113aa949c6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f113aa675b2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f113aa6798c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f113a9731cd in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f113aa474d8 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f113a97614e in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f113879b9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f113e6776cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f113ed84760 (LWP 10959)):
[KCrash Handler]
#6  0x00007f113a14ba0d in Solid::Device::udi() const () from /usr/lib/libsolid.so.4
#7  0x00007f113e34858c in ?? () from /usr/lib/libkfile.so.4
#8  0x00007f113e34ab43 in KFilePlacesModel::deviceForIndex(QModelIndex const&) const () from /usr/lib/libkfile.so.4
#9  0x00007f113e351817 in ?? () from /usr/lib/libkfile.so.4
#10 0x00007f113bc16a93 in ?? () from /usr/lib/libQtGui.so.4
#11 0x00007f113bc1728d in ?? () from /usr/lib/libQtGui.so.4
#12 0x00007f113bc17508 in ?? () from /usr/lib/libQtGui.so.4
#13 0x00007f113bc0c375 in ?? () from /usr/lib/libQtGui.so.4
#14 0x00007f113bc0c75f in QListView::doItemsLayout() () from /usr/lib/libQtGui.so.4
#15 0x00007f113bc13481 in QListView::rectForIndex(QModelIndex const&) const () from /usr/lib/libQtGui.so.4
#16 0x00007f113bc1354e in QListView::visualRect(QModelIndex const&) const () from /usr/lib/libQtGui.so.4
#17 0x00007f113bc10af5 in QListView::visualRegionForSelection(QItemSelection const&) const () from /usr/lib/libQtGui.so.4
#18 0x00007f113bbea5f4 in QAbstractItemView::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/libQtGui.so.4
#19 0x00007f113bc12ddb in QListView::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/libQtGui.so.4
#20 0x00007f113bbf3f09 in QAbstractItemView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#21 0x00007f113bd77955 in QListView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#22 0x00007f113e3541e5 in KFilePlacesView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkfile.so.4
#23 0x00007f113e964d10 in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_dolphin.so
#24 0x00007f113aa80597 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#25 0x00007f113bc44ae7 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/libQtGui.so.4
#26 0x00007f113bc47bc7 in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/libQtGui.so.4
#27 0x00007f113bc4953b in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQtGui.so.4
#28 0x00007f113bc463a1 in QItemSelectionModel::select(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQtGui.so.4
#29 0x00007f113bc44d3f in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQtGui.so.4
#30 0x00007f113e352f3f in KFilePlacesView::setUrl(KUrl const&) () from /usr/lib/libkfile.so.4
#31 0x00007f113e964eb7 in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_dolphin.so
#32 0x00007f113bbf3eef in QAbstractItemView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#33 0x00007f113bd77955 in QListView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#34 0x00007f113e3541e5 in KFilePlacesView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkfile.so.4
#35 0x00007f113e964d10 in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_dolphin.so
#36 0x00007f113aa80597 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#37 0x00007f113aacb654 in QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex const&, int, int) () from /usr/lib/libQtCore.so.4
#38 0x00007f113aa60283 in QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) () from /usr/lib/libQtCore.so.4
#39 0x00007f113e34bdde in KFilePlacesModel::Private::_k_reloadBookmarks() () from /usr/lib/libkfile.so.4
#40 0x00007f113e34dcb2 in KFilePlacesModel::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkfile.so.4
#41 0x00007f113aa80597 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#42 0x00007f113a14cf15 in Solid::DeviceNotifier::deviceRemoved(QString const&) () from /usr/lib/libsolid.so.4
#43 0x00007f113a14ff53 in ?? () from /usr/lib/libsolid.so.4
#44 0x00007f113a1503f1 in ?? () from /usr/lib/libsolid.so.4
#45 0x00007f113aa80597 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#46 0x00007f113a161c35 in ?? () from /usr/lib/libsolid.so.4
#47 0x00007f113a193046 in ?? () from /usr/lib/libsolid.so.4
#48 0x00007f113a1930d6 in ?? () from /usr/lib/libsolid.so.4
#49 0x00007f113adbf93e in ?? () from /usr/lib/libQtDBus.so.4
#50 0x00007f113adca76f in ?? () from /usr/lib/libQtDBus.so.4
#51 0x00007f113aa7a66e in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#52 0x00007f113b6af84c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#53 0x00007f113b6b52ed in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#54 0x00007f113c3eaf16 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#55 0x00007f113aa6887c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#56 0x00007f113aa6b7a2 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#57 0x00007f113aa94e33 in ?? () from /usr/lib/libQtCore.so.4
#58 0x00007f11362158c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#59 0x00007f1136219748 in ?? () from /lib/libglib-2.0.so.0
#60 0x00007f11362198fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#61 0x00007f113aa94973 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#62 0x00007f113b760dee in ?? () from /usr/lib/libQtGui.so.4
#63 0x00007f113aa675b2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#64 0x00007f113aa6798c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#65 0x00007f113aa6ba3b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#66 0x00007f113e95ed3f in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_dolphin.so
#67 0x00007f113e5afc4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fff904e2ca8) at libc-start.c:226
#68 0x00000000004006b9 in _start ()