Bug 229096 - Dolphin crashes after unplugging a USB stick [Solid::DevicePrivate::udi, Solid::Device::udi, KFilePlacesItem::device, KFilePlacesModel::deviceForIndex]
Summary: Dolphin crashes after unplugging a USB stick [Solid::DevicePrivate::udi, Soli...
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
: 230784 230984 235239 240486 240713 240807 241382 243737 275554 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-02 05:23 UTC by Bruno Bigras
Modified: 2011-06-17 00:39 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (12.87 KB, text/plain)
2010-03-15 02:10 UTC, Bruno Bigras
Details
New crash information added by DrKonqi (9.87 KB, text/plain)
2010-03-31 04:46 UTC, TJ
Details
New crash information added by DrKonqi (11.56 KB, text/plain)
2010-05-25 07:00 UTC, Marcel Partap
Details
New crash information added by DrKonqi (11.60 KB, text/plain)
2010-06-01 01:50 UTC, TJ
Details
New crash information added by DrKonqi (10.04 KB, text/plain)
2010-06-10 21:14 UTC, Connel Hooley
Details
New crash information added by DrKonqi (11.66 KB, text/plain)
2010-06-16 00:46 UTC, m.wege
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Bigras 2010-03-02 05:23:24 UTC
Application: dolphin (1.4)
KDE Platform Version: 4.4.65 (KDE 4.4.65 (KDE 4.5 >= 20100224)) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-20-generic x86_64
Distribution: Ubuntu 9.10

-- Information about the crash:
I mounted my usb stck and browed it with Dolphin.

I then used the 'Device notifier' thing to unmount my usb stick. Dolphin detect it but crashes.

The crash can be reproduced every time.

 -- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
The current source language is "auto; currently c".
[KCrash Handler]
#5  QBasicAtomicInt::ref (this=0x740074006889a0) at /kdeqt/4.6/include/QtCore/qatomic_x86_64.h:121
#6  0x00007f851d900c9d in Solid::DevicePrivate::udi (this=<value optimized out>) at /home/bruno/kde4/trunk/src/KDE/kdelibs/solid/solid/device_p.h:41
#7  0x00007f851d8ff5d7 in Solid::Device::udi (this=<value optimized out>) at /home/bruno/kde4/trunk/src/KDE/kdelibs/solid/solid/device.cpp:99
#8  0x00007f852377325f in KFilePlacesItem::device (this=0x2849f40) at /home/bruno/kde4/trunk/src/KDE/kdelibs/kfile/kfileplacesitem.cpp:105
#9  0x00007f8523776c02 in KFilePlacesModel::deviceForIndex (this=<value optimized out>, index=<value optimized out>) at /home/bruno/kde4/trunk/src/KDE/kdelibs/kfile/kfileplacesmodel.cpp:238
#10 0x00007f8523780b77 in KFilePlacesViewDelegate::sizeHint (this=<value optimized out>, option=..., index=...) at /home/bruno/kde4/trunk/src/KDE/kdelibs/kfile/kfileplacesview.cpp:131
#11 0x00007f851fd824d3 in QListViewPrivate::itemSize (this=0x2937450, option=..., index=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qlistview.cpp:1780
#12 0x00007f851fd8b15d in QCommonListViewBase::itemSize (this=0x293f460, opt=..., idx=...) at ../../include/QtGui/private/../../../../../../src/qt/qt/src/gui/itemviews/qlistview_p.h:473
#13 0x00007f851fd84c7d in QListModeViewBase::indexToListViewItem (this=0x293f460, index=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qlistview.cpp:2207
#14 0x00007f851fd81eba in QListViewPrivate::indexToListViewItem (this=0x2937450, index=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qlistview.cpp:1725
#15 0x00007f851fd8a965 in QListViewPrivate::rectForIndex (this=0x2937450, index=...) at ../../include/QtGui/private/../../../../../../src/qt/qt/src/gui/itemviews/qlistview_p.h:345
#16 0x00007f851fd7f033 in QListView::rectForIndex (this=0x2935eb0, index=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qlistview.cpp:1226
#17 0x00007f851fd7bb8f in QListView::visualRect (this=0x2935eb0, index=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qlistview.cpp:561
#18 0x00007f851fd807c8 in QListView::visualRegionForSelection (this=0x2935eb0, selection=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qlistview.cpp:1416
#19 0x00007f851fd62a71 in QAbstractItemView::selectionChanged (this=0x2935eb0, selected=..., deselected=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qabstractitemview.cpp:3312
#20 0x00007f851fd896e2 in QListView::selectionChanged (this=0x2935eb0, selected=..., deselected=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qlistview.cpp:3106
#21 0x00007f851fd66c49 in QAbstractItemView::qt_metacall (this=0x2935eb0, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7fff0cba7270) at .moc/debug-shared/moc_qabstractitemview.cpp:237
#22 0x00007f851ff33077 in QListView::qt_metacall (this=0x2935eb0, _c=QMetaObject::InvokeMetaMethod, _id=50, _a=0x7fff0cba7270) at .moc/debug-shared/moc_qlistview.cpp:111
#23 0x00007f852377fef5 in KFilePlacesView::qt_metacall (this=0x740074006889a0, _c=44509528, _id=-48, _a=0x285cd76) at /home/bruno/kde4/trunk/bld/KDE/kdelibs/kfile/kfileplacesview.moc:107
#24 0x0000000000444fb0 in PlacesPanel::qt_metacall (this=0x740074006889a0, _c=44509528, _id=-48, _a=0x285cd76) at /home/bruno/kde4/trunk/bld/KDE/kdebase/apps/dolphin/src/placespanel.moc:75
#25 0x00007f852087a3cf in QMetaObject::metacall (object=0x2935eb0, cl=QMetaObject::InvokeMetaMethod, idx=50, argv=0x7fff0cba7270)
    at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#26 0x00007f8520890841 in QMetaObject::activate (sender=0x2943a30, m=0x7f8520458e20, local_signal_index=0, argv=0x7fff0cba7270) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qobject.cpp:3293
#27 0x00007f851fdc9a71 in QItemSelectionModel::selectionChanged (this=0x2943a30, _t1=..., _t2=...) at .moc/debug-shared/moc_qitemselectionmodel.cpp:152
#28 0x00007f851fdc9329 in QItemSelectionModel::emitSelectionChanged (this=0x2943a30, newSelection=..., oldSelection=...)
    at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qitemselectionmodel.cpp:1592
#29 0x00007f851fdc664a in QItemSelectionModel::select (this=0x2943a30, selection=..., command=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qitemselectionmodel.cpp:1099
#30 0x00007f851fdc6261 in QItemSelectionModel::select (this=0x2943a30, index=..., command=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qitemselectionmodel.cpp:987
#31 0x00007f851fdc6b4b in QItemSelectionModel::setCurrentIndex (this=0x2943a30, index=..., command=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qitemselectionmodel.cpp:1166
#32 0x00007f851fd58828 in QAbstractItemView::setCurrentIndex (this=0x2935eb0, index=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qabstractitemview.cpp:1003
#33 0x00007f851fd6201e in QAbstractItemView::rowsAboutToBeRemoved (this=0x2935eb0, parent=..., start=4, end=4) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qabstractitemview.cpp:3172
#34 0x00007f851fd7cc04 in QListView::rowsAboutToBeRemoved (this=0x2935eb0, parent=..., start=4, end=4) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/itemviews/qlistview.cpp:757
#35 0x00007f851fd66c0c in QAbstractItemView::qt_metacall (this=0x2935eb0, _c=QMetaObject::InvokeMetaMethod, _id=18, _a=0x7fff0cba7ae0) at .moc/debug-shared/moc_qabstractitemview.cpp:236
#36 0x00007f851ff33077 in QListView::qt_metacall (this=0x2935eb0, _c=QMetaObject::InvokeMetaMethod, _id=49, _a=0x7fff0cba7ae0) at .moc/debug-shared/moc_qlistview.cpp:111
#37 0x00007f852377fef5 in KFilePlacesView::qt_metacall (this=0x740074006889a0, _c=44509528, _id=-48, _a=0x285cd76) at /home/bruno/kde4/trunk/bld/KDE/kdelibs/kfile/kfileplacesview.moc:107
#38 0x0000000000444fb0 in PlacesPanel::qt_metacall (this=0x740074006889a0, _c=44509528, _id=-48, _a=0x285cd76) at /home/bruno/kde4/trunk/bld/KDE/kdebase/apps/dolphin/src/placespanel.moc:75
#39 0x00007f852087a3cf in QMetaObject::metacall (object=0x2935eb0, cl=QMetaObject::InvokeMetaMethod, idx=49, argv=0x7fff0cba7ae0)
    at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#40 0x00007f8520890841 in QMetaObject::activate (sender=0x2698900, m=0x7f8520bf03c0, local_signal_index=6, argv=0x7fff0cba7ae0) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qobject.cpp:3293
#41 0x00007f85208f6dd5 in QAbstractItemModel::rowsAboutToBeRemoved (this=0x2698900, _t1=..., _t2=4, _t3=4) at .moc/debug-shared/moc_qabstractitemmodel.cpp:188
#42 0x00007f85208664c3 in QAbstractItemModel::beginRemoveRows (this=0x2698900, parent=..., first=4, last=4) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qabstractitemmodel.cpp:2447
#43 0x00007f8523775d89 in KFilePlacesModel::Private::_k_reloadBookmarks (this=0x2696910) at /home/bruno/kde4/trunk/src/KDE/kdelibs/kfile/kfileplacesmodel.cpp:398
#44 0x00007f8523776692 in KFilePlacesModel::qt_metacall (this=0x2698900, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff0cba80a0)
    at /home/bruno/kde4/trunk/bld/KDE/kdelibs/kfile/kfileplacesmodel.moc:93
#45 0x00007f852087a3cf in QMetaObject::metacall (object=0x2698900, cl=QMetaObject::InvokeMetaMethod, idx=28, argv=0x7fff0cba80a0)
    at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#46 0x00007f8520890841 in QMetaObject::activate (sender=0x27c6210, m=0x7f851db67e20, local_signal_index=1, argv=0x7fff0cba80a0) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qobject.cpp:3293
#47 0x00007f851d9011c5 in Solid::DeviceNotifier::deviceRemoved (this=0x740074006889a0, _t1=<value optimized out>) at /home/bruno/kde4/trunk/bld/KDE/kdelibs/solid/solid/devicenotifier.moc:94
#48 0x00007f851d902049 in Solid::DeviceManagerPrivate::qt_metacall (this=0x27c6210, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff0cba81f0)
    at /home/bruno/kde4/trunk/bld/KDE/kdelibs/solid/solid/devicemanager_p.moc:80
#49 0x00007f852087a3cf in QMetaObject::metacall (object=0x27c6210, cl=QMetaObject::InvokeMetaMethod, idx=7, argv=0x7fff0cba81f0)
    at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#50 0x00007f8520890841 in QMetaObject::activate (sender=0x27c7530, m=0x7f851db69ee0, local_signal_index=1, argv=0x7fff0cba81f0) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qobject.cpp:3293
#51 0x00007f851d913565 in Solid::Ifaces::DeviceManager::deviceRemoved (this=0x740074006889a0, _t1=<value optimized out>)
    at /home/bruno/kde4/trunk/bld/KDE/kdelibs/solid/solid/ifaces/devicemanager.moc:94
#52 0x00007f851d936828 in Solid::Backends::Hal::HalManager::qt_metacall (this=0x27c7530, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff0cba83d0)
    at /home/bruno/kde4/trunk/bld/KDE/kdelibs/solid/solid/backends/hal/halmanager.moc:78
#53 0x00007f8520c19ec0 in QDBusConnectionPrivate::deliverCall (this=0x27c7a70, object=0x27c7530, msg=..., metaTypes=..., slotIdx=7) at /home/bruno/kdeqt/4.6/src/qt/qt/src/dbus/qdbusintegrator.cpp:904
#54 0x00007f8520c27d81 in QDBusCallDeliveryEvent::placeMetaCall (this=0x2c15a00, object=0x27c7530) at /home/bruno/kdeqt/4.6/src/qt/qt/src/dbus/qdbusintegrator_p.h:101
#55 0x00007f852088c105 in QObject::event (this=0x27c7530, e=0x2c15a00) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qobject.cpp:1248
#56 0x00007f851f68d836 in QApplicationPrivate::notify_helper (this=0x25e53c0, receiver=0x27c7530, e=0x2c15a00) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/kernel/qapplication.cpp:4300
#57 0x00007f851f68ad4d in QApplication::notify (this=0x7fff0cba9160, receiver=0x27c7530, e=0x2c15a00) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/kernel/qapplication.cpp:3704
#58 0x00007f85217bdabe in KApplication::notify (this=0x7fff0cba9160, receiver=0x27c7530, event=0x2c15a00) at /home/bruno/kde4/trunk/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#59 0x00007f8520872270 in QCoreApplication::notifyInternal (this=0x7fff0cba9160, receiver=0x27c7530, event=0x2c15a00) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qcoreapplication.cpp:704
#60 0x00007f852087624b in QCoreApplication::sendEvent (receiver=0x27c7530, event=0x2c15a00) at ../../include/QtCore/../../../../../src/qt/qt/src/corelib/kernel/qcoreapplication.h:215
#61 0x00007f85208734d6 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x25beb30) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qcoreapplication.cpp:1345
#62 0x00007f85208730f1 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qcoreapplication.cpp:1238
#63 0x00007f85208af9cd in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../../src/qt/qt/src/corelib/kernel/qcoreapplication.h:220
#64 0x00007f85208adf7d in postEventSourceDispatch (s=0x25e81a0) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:276
#65 0x00007f851a54abce in g_main_dispatch (context=0x25e80c0) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:1960
#66 IA__g_main_context_dispatch (context=0x25e80c0) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2513
#67 0x00007f851a54e598 in g_main_context_iterate (context=0x25e80c0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2591
#68 0x00007f851a54e6c0 in IA__g_main_context_iteration (context=0x25e80c0, may_block=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2654
#69 0x00007f85208af237 in QEventDispatcherGlib::processEvents (this=0x25be240, flags=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:412
#70 0x00007f851f775cc8 in QGuiEventDispatcherGlib::processEvents (this=0x25be240, flags=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#71 0x00007f852086f268 in QEventLoop::processEvents (this=0x7fff0cba90c0, flags=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qeventloop.cpp:149
#72 0x00007f852086f3be in QEventLoop::exec (this=0x7fff0cba90c0, flags=...) at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qeventloop.cpp:201
#73 0x00007f8520872972 in QCoreApplication::exec () at /home/bruno/kdeqt/4.6/src/qt/qt/src/corelib/kernel/qcoreapplication.cpp:981
#74 0x00007f851f68a8d4 in QApplication::exec () at /home/bruno/kdeqt/4.6/src/qt/qt/src/gui/kernel/qapplication.cpp:3579
#75 0x00000000004384f2 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/bruno/kde4/trunk/src/KDE/kdebase/apps/dolphin/src/main.cpp:101

Reported using DrKonqi
Comment 1 Bruno Bigras 2010-03-15 02:10:00 UTC
Created attachment 41646 [details]
New crash information added by DrKonqi

- What I was doing when the application crashed:

It seems that the crash happens when I unplug the usb stick. Unmounting is okay.

It still happens everytime.
Comment 2 Dario Andres 2010-03-16 18:25:17 UTC
*** Bug 230984 has been marked as a duplicate of this bug. ***
Comment 3 TJ 2010-03-31 04:46:34 UTC
Created attachment 42394 [details]
New crash information added by DrKonqi

dolphin (1.4) on KDE Platform 4.4.69 (KDE 4.4.69 (KDE 4.5 >= 20100324)) using Qt 4.6.2

- What I was doing when the application crashed:

Unplugged USB flash driver without umounting

-- Backtrace (Reduced):
#7  QString (this=0x1585fe8) at /usr/include/qt4/QtCore/qstring.h:715
#8  Solid::DevicePrivate::udi (this=0x1585fe8) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device_p.h:41
#9  Solid::Device::udi (this=0x1585fe8) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device.cpp:99
#10 0x00007fabb155295c in KFilePlacesItem::device (this=0x1585fb0) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesitem.cpp:105
#11 0x00007fabb15556fb in KFilePlacesModel::deviceForIndex (this=<value optimized out>, index=<value optimized out>)
    at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesmodel.cpp:238
Comment 4 Mikko C. 2010-05-07 11:52:42 UTC
confirmed here with kde trunk.
Unplugged an USB stick without unmounting it.


[KCrash Handler]
#6  QBasicAtomicInt::ref (this=0x7400740068e5e0) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121
#7  0x00007fa8082fb52d in Solid::DevicePrivate::udi (this=<value optimized out>) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device_p.h:41
#8  0x00007fa8082f9c97 in Solid::Device::udi (this=<value optimized out>) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device.cpp:99
#9  0x00007fa802fb2d28 in KFilePlacesItem::device (this=0xd2c0e0) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesitem.cpp:105
#10 0x00007fa802fb6763 in KFilePlacesModel::deviceForIndex (this=<value optimized out>, index=<value optimized out>)
    at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesmodel.cpp:238
#11 0x00007fa802fbf680 in KFilePlacesViewDelegate::sizeHint (this=<value optimized out>, option=..., index=...)
    at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesview.cpp:131
#12 0x00007fa80e1af142 in QListViewPrivate::itemSize (this=0x92c8c0, option=..., index=...) at itemviews/qlistview.cpp:1780
#13 0x00007fa80e1b57fd in QCommonListViewBase::itemSize (this=0x936120, index=<value optimized out>) at ../../include/QtGui/private/../../../src/gui/itemviews/qlistview_p.h:473
#14 QListModeViewBase::indexToListViewItem (this=0x936120, index=<value optimized out>) at itemviews/qlistview.cpp:2207
#15 0x00007fa80e1af4d5 in QListViewPrivate::indexToListViewItem (this=0x92c8c0, index=...) at itemviews/qlistview.cpp:1725
#16 0x00007fa80e1afd45 in QListViewPrivate::rectForIndex (this=<value optimized out>, index=...) at ../../include/QtGui/private/../../../src/gui/itemviews/qlistview_p.h:345
#17 QListView::rectForIndex (this=<value optimized out>, index=...) at itemviews/qlistview.cpp:1226
#18 0x00007fa80e1afe0e in QListView::visualRect (this=0x7400740068e5e0, index=...) at itemviews/qlistview.cpp:561
#19 0x00007fa80e1ad6bf in QListView::visualRegionForSelection (this=0x925ef0, selection=<value optimized out>) at itemviews/qlistview.cpp:1416
#20 0x00007fa80e184496 in QAbstractItemView::selectionChanged (this=0x925ef0, selected=<value optimized out>, deselected=...) at itemviews/qabstractitemview.cpp:3312
Comment 5 Marcel Partap 2010-05-25 07:00:00 UTC
Created attachment 43864 [details]
New crash information added by DrKonqi

konqueror (4.4.80 (KDE 4.4.80 (KDE 4.5 Beta1))) on KDE Platform 4.4.80 (KDE 4.4.80 (KDE 4.5 Beta1)) using Qt 4.7.0

Still reproducable with on 4.5 Beta 1 (4.4.80)... seems to be within the places panel as konqueror is taken down aswell if that is opened while removing an USB volume.

-- Backtrace (Reduced):
#7  QString (this=0x2055c08) at /usr/include/qt4/QtCore/qstring.h:728
#8  Solid::DevicePrivate::udi (this=0x2055c08) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/solid/solid/device_p.h:41
#9  Solid::Device::udi (this=0x2055c08) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/solid/solid/device.cpp:99
#10 0x00007fdbc2495545 in KFilePlacesItem::device (this=0x2055bd0) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kfile/kfileplacesitem.cpp:105
#11 0x00007fdbc2497afb in KFilePlacesModel::deviceForIndex (this=<value optimized out>, index=<value optimized out>)
    at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kfile/kfileplacesmodel.cpp:238
Comment 6 Kevin Ottens 2010-05-29 13:24:04 UTC
Tried to reproduce it today without success (r1131691). Could someone try again with this revision?

If you manage to reproduce it, we'll very likely need a more detailed description on how to reproduce it (in case some steps are missing or could be ambiguous).
Comment 7 Mikko C. 2010-05-29 13:28:01 UTC
Still valid here, KDE svn compiled on Fri May 28 18:45:01 2010
To reproduce:
- plug in an usb stick
- mount it through the devices plasmoid applet
- (Dolphin should open automatically now)
- unplug the stick without un-mounting it 
- crash.
Comment 8 Kevin Ottens 2010-05-29 16:16:01 UTC
Still can't reproduce... Someone else will have to pick this one I'm afraid.
Comment 9 TJ 2010-06-01 01:50:19 UTC
Created attachment 47539 [details]
New crash information added by DrKonqi

dolphin (1.4.9) on KDE Platform 4.4.81 (KDE 4.4.81 (KDE 4.5 >= 20100527)) using Qt 4.6.2

- What I was doing when the application crashed:

Here is more data, hopefully of some use:

- Dolphin crashes regardless of how the USB stick was mounted -- I tried via Notifier plasmoid and directly in Dolphin

- It crashes regardless of whether you dismount the stick or not before unplugging it

- If you open a folder that is *not* on the USB stick (eg, Home folder) and then pull the stick (with or without unmounting it), the Dolphin does *not* crash

Who's your daddy now? ;) Just kidding. :P Thanks guys, you are the bombs! I love KDE 4 :)

-TJ

-- Backtrace (Reduced):
#7  QString (this=0x2129568) at /usr/include/qt4/QtCore/qstring.h:715
#8  Solid::DevicePrivate::udi (this=0x2129568) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device_p.h:41
#9  Solid::Device::udi (this=0x2129568) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device.cpp:99
#10 0x00007fd3824fc4bc in KFilePlacesItem::device (this=0x2129530) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesitem.cpp:105
#11 0x00007fd3824ff25b in KFilePlacesModel::deviceForIndex (this=<value optimized out>, index=<value optimized out>)
    at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesmodel.cpp:238
Comment 10 Kevin Ottens 2010-06-01 08:48:07 UTC
Now we're talking I can reliably reproduce it.
Comment 11 Christoph Feck 2010-06-10 02:12:44 UTC
*** Bug 240807 has been marked as a duplicate of this bug. ***
Comment 12 Christoph Feck 2010-06-10 03:12:29 UTC
*** Bug 240486 has been marked as a duplicate of this bug. ***
Comment 13 Christoph Feck 2010-06-10 03:13:49 UTC
*** Bug 240713 has been marked as a duplicate of this bug. ***
Comment 14 Connel Hooley 2010-06-10 21:14:15 UTC
Created attachment 47869 [details]
New crash information added by DrKonqi

dolphin (1.4.9) on KDE Platform 4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2)) "release 3" using Qt 4.6.2

- What I was doing when the application crashed:

I browsed to my USB stick in dolphin. I then unplugged my stick (without unmonuting it) and dolphin crashed.

-- Backtrace (Reduced):
#7  ref (this=0x82f2014) at /usr/include/QtCore/qatomic_i386.h:120
#8  QString (this=0x82f2014) at /usr/include/QtCore/qstring.h:715
#9  udi (this=0x82f2014) at /usr/src/debug/kdelibs-4.4.85/solid/solid/device_p.h:41
#10 Solid::Device::udi (this=0x82f2014) at /usr/src/debug/kdelibs-4.4.85/solid/solid/device.cpp:99
#11 0xb2c65589 in KFilePlacesItem::device (this=0x82f1ff8) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesitem.cpp:105
Comment 15 Clemens Eisserer 2010-06-15 20:57:48 UTC
4.4.85/QT-4.7:
#7  ref (this=0xa0f3084) at /usr/include/QtCore/qatomic_i386.h:120
#8  QString (this=0xa0f3084) at /usr/include/QtCore/qstring.h:715
#9  udi (this=0xa0f3084) at /usr/src/debug/kdelibs-4.4.85/solid/solid/device_p.h:41
#10 Solid::Device::udi (this=0xa0f3084) at /usr/src/debug/kdelibs-4.4.85/solid/solid/device.cpp:99
#11 0x03afb60a in KFilePlacesItem::device (this=0xa0f3068) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesitem.cpp:105
#12 0x03afdb44 in KFilePlacesModel::deviceForIndex (this=0x9d406b8, index=...) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesmodel.cpp:238
#13 0x03b0498f in KFilePlacesViewDelegate::sizeHint (this=0xa013990, option=..., index=...) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesview.cpp:131
Comment 16 Kevin Ottens 2010-06-16 00:09:27 UTC
Should be fixed in revision 1138395. I forgot the "BUG:" keyword in the commit message...
Comment 17 m.wege 2010-06-16 00:46:19 UTC
Created attachment 48052 [details]
New crash information added by DrKonqi

dolphin (1.4.9) on KDE Platform 4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2)) using Qt 4.7.0

- What I was doing when the application crashed:
I closed dolphin, after removing an external medium (which I had unmounted)

-- Backtrace (Reduced):
#8  QString (this=0x9083374) at /usr/include/qt4/QtCore/qstring.h:728
#9  Solid::DevicePrivate::udi (this=0x9083374) at ../../../solid/solid/device_p.h:41
#10 Solid::Device::udi (this=0x9083374) at ../../../solid/solid/device.cpp:99
#11 0xb75d3009 in KFilePlacesItem::device (this=0x9083358) at ../../kfile/kfileplacesitem.cpp:105
#12 0xb75d58d4 in KFilePlacesModel::deviceForIndex (this=0x8a3d9f8, index=...) at ../../kfile/kfileplacesmodel.cpp:238
Comment 18 Christoph Feck 2010-06-26 02:47:37 UTC
*** Bug 241382 has been marked as a duplicate of this bug. ***
Comment 19 Christoph Feck 2010-06-26 02:48:49 UTC
*** Bug 235239 has been marked as a duplicate of this bug. ***
Comment 20 Christoph Feck 2010-06-26 02:50:39 UTC
*** Bug 230784 has been marked as a duplicate of this bug. ***
Comment 21 Frank Reininghaus 2010-07-08 10:01:02 UTC
*** Bug 243737 has been marked as a duplicate of this bug. ***
Comment 22 Marcel Partap 2010-07-11 15:06:46 UTC
(In reply to comment #16)
> Should be fixed in revision 1138395. I forgot the "BUG:" keyword in the commit
> message...

quoting the commit msg (http://websvn.kde.org/?view=revision&revision=1138395) :
> Make sure we call deref() as many time as ref() was called...
> Also only delete the DevicePrivate instances which have no
> QExplicitSharedPointer pointing to them anymore when
> DeviceManagerPrivate goes away, otherwise we'll have troubles if some
> app actually keeps a Solid::Device instance longer.
>
> device.cpp        |    4 ++--
> devicemanager.cpp |    4 +++-
> 2 files changed, 5 insertions(+), 3 deletions(-)

Hi Kevin, big thx for squashishing this one! As it was a (un)pretty nasty bug and did survive for a relatively long time, this one might be especially interesting for experienced and unexperienced KDE developers alike. It would be great if you could elaborate a bit on why this one was so hard to track down, and how you exactly did it - merci ;)
Comment 23 Christoph Feck 2011-06-17 00:39:58 UTC
*** Bug 275554 has been marked as a duplicate of this bug. ***