Bug 374204 - When inserting an USB pendrive and closing a tab, Baloo crashes in Baloo::StorageDevices::Entry::Entry()
Summary: When inserting an USB pendrive and closing a tab, Baloo crashes in Baloo::Sto...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.29.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords: drkonqi
: 374848 400062 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-27 10:43 UTC by Jaime Torres
Modified: 2020-10-26 16:11 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (10.80 KB, text/plain)
2017-08-09 19:30 UTC, Jaime Torres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2016-12-27 10:43:28 UTC
Application: dolphin (16.12.0)

Qt Version: 5.7.0
Frameworks Version: 5.29.0
Operating System: Linux 4.8.14-1-default x86_64
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:

I just inserted an USB pendrive, closed a tab and when I was close to create a new tab, dolphin crashed.

-- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc64fa2ad40 (LWP 3200))]

Thread 5 (Thread 0x7fc61f54a700 (LWP 3452)):
#0  g_private_get (key=key@entry=0x7fc6428beb40 <g_thread_specific_private>) at gthread-posix.c:1055
#1  0x00007fc64261f6c0 in g_thread_self () at gthread.c:982
#2  0x00007fc6425f797d in g_main_context_iteration (context=0x7fc618000990, may_block=may_block@entry=1) at gmain.c:3990
#3  0x00007fc6495ba79b in QEventDispatcherGlib::processEvents (this=0x7fc6180008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fc6495641ea in QEventLoop::exec (this=this@entry=0x7fc61f549d00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210
#5  0x00007fc6493928b3 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#6  0x00007fc649397558 in QThreadPrivate::start (arg=0x2bdfaf0) at thread/qthread_unix.cpp:344
#7  0x00007fc644974454 in start_thread (arg=0x7fc61f54a700) at pthread_create.c:333
#8  0x00007fc64f32837f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 4 (Thread 0x7fc624c33700 (LWP 3331)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc62f651afb in ?? () from /usr/lib64/dri/r600_dri.so
#2  0x00007fc62f651957 in ?? () from /usr/lib64/dri/r600_dri.so
#3  0x00007fc644974454 in start_thread (arg=0x7fc624c33700) at pthread_create.c:333
#4  0x00007fc64f32837f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 3 (Thread 0x7fc6360dd700 (LWP 3238)):
#0  0x00007fc64f31f66d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fc6425f7876 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7fc628096490, timeout=<optimized out>, context=0x7fc628000990) at gmain.c:4228
#2  g_main_context_iterate (context=context@entry=0x7fc628000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3924
#3  0x00007fc6425f798c in g_main_context_iteration (context=0x7fc628000990, may_block=may_block@entry=1) at gmain.c:3990
#4  0x00007fc6495ba79b in QEventDispatcherGlib::processEvents (this=0x7fc6280008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007fc6495641ea in QEventLoop::exec (this=this@entry=0x7fc6360dccd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210
#6  0x00007fc6493928b3 in QThread::exec (this=this@entry=0x7fc649c3dd20 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:507
#7  0x00007fc6499cc3e5 in QDBusConnectionManager::run (this=0x7fc649c3dd20 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:196
#8  0x00007fc649397558 in QThreadPrivate::start (arg=0x7fc649c3dd20 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:344
#9  0x00007fc644974454 in start_thread (arg=0x7fc6360dd700) at pthread_create.c:333
#10 0x00007fc64f32837f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7fc637a19700 (LWP 3202)):
#0  0x00007fc64f31f66d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fc641d2e3e0 in poll (__timeout=-1, __nfds=1, __fds=0x7fc637a18c00) at /usr/include/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x25a4960, cond=cond@entry=0x25a49a0, vector=vector@entry=0x0, count=count@entry=0x0) at xcb_conn.c:479
#3  0x00007fc641d30179 in xcb_wait_for_event (c=0x25a4960) at xcb_in.c:693
#4  0x00007fc639f845f9 in QXcbEventReader::run (this=0x25b79b0) at qxcbconnection.cpp:1337
#5  0x00007fc649397558 in QThreadPrivate::start (arg=0x25b79b0) at thread/qthread_unix.cpp:344
#6  0x00007fc644974454 in start_thread (arg=0x7fc637a19700) at pthread_create.c:333
#7  0x00007fc64f32837f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7fc64fa2ad40 (LWP 3200)):
[KCrash Handler]
#6  0x00007fc64ce5e31a in QExplicitlySharedDataPointer<Solid::DevicePrivate>::~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qshareddata.h:165
#7  Solid::Device::~Device (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/solid-5.29.0/src/solid/devices/frontend/device.cpp:68
#8  0x00007fc64d14128d in Baloo::StorageDevices::Entry::~Entry (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/baloo-5.29.0/src/file/storagedevices.h:45
#9  QHashNode<QString, Baloo::StorageDevices::Entry>::~QHashNode (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qhash.h:147
#10 QHash<QString, Baloo::StorageDevices::Entry>::deleteNode2 (node=0x31a0af0) at /usr/include/qt5/QtCore/qhash.h:533
#11 0x00007fc6493f5619 in QHashData::free_helper (this=0x2b0d760, node_delete=0x7fc64d141280 <QHash<QString, Baloo::StorageDevices::Entry>::deleteNode2(QHashData::Node*)>) at tools/qhash.cpp:594
#12 0x00007fc64d140224 in QHash<QString, Baloo::StorageDevices::Entry>::freeData (this=0x2b0bb60, x=<optimized out>) at /usr/include/qt5/QtCore/qhash.h:573
#13 QHash<QString, Baloo::StorageDevices::Entry>::~QHash (this=0x2b0bb60, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qhash.h:252
#14 Baloo::StorageDevices::~StorageDevices (this=0x2b0bb50, __in_chrg=<optimized out>) at /usr/src/debug/baloo-5.29.0/src/file/storagedevices.cpp:51
#15 Baloo::StorageDevices::~StorageDevices (this=0x2b0bb50, __in_chrg=<optimized out>) at /usr/src/debug/baloo-5.29.0/src/file/storagedevices.cpp:53
#16 0x00007fc6495906d1 in QObjectPrivate::deleteChildren (this=this@entry=0x2e09e30) at kernel/qobject.cpp:1970
#17 0x00007fc649599a4f in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1041
#18 0x00007fc64d13cb01 in Baloo::IndexerConfig::Private::~Private (this=0x2c79680, __in_chrg=<optimized out>) at /usr/src/debug/baloo-5.29.0/src/lib/indexerconfig.cpp:35
#19 Baloo::IndexerConfig::~IndexerConfig (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/baloo-5.29.0/src/lib/indexerconfig.cpp:47
#20 0x00007fc64ef87763 in KFileItemModelRolesUpdater::~KFileItemModelRolesUpdater (this=0x2e09c60, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/kitemviews/kfileitemmodelrolesupdater.cpp:149
#21 0x00007fc64ef87929 in KFileItemModelRolesUpdater::~KFileItemModelRolesUpdater (this=0x2e09c60, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/kitemviews/kfileitemmodelrolesupdater.cpp:152
#22 0x00007fc6495906d1 in QObjectPrivate::deleteChildren (this=this@entry=0x2c87930) at kernel/qobject.cpp:1970
#23 0x00007fc649599a4f in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1041
#24 0x00007fc64a824e9c in QGraphicsWidget::~QGraphicsWidget (this=0x2e23bd0, __in_chrg=<optimized out>) at graphicsview/qgraphicswidget.cpp:231
#25 0x00007fc64efcc3b9 in DolphinItemListView::~DolphinItemListView (this=0x2e23bd0, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/views/dolphinitemlistview.cpp:50
#26 0x00007fc6495906d1 in QObjectPrivate::deleteChildren (this=this@entry=0x2e56240) at kernel/qobject.cpp:1970
#27 0x00007fc649599a4f in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1041
#28 0x00007fc64ef966f9 in KItemListController::~KItemListController (this=0x2e561c0, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/kitemviews/kitemlistcontroller.cpp:83
#29 0x00007fc64ef90e3b in KItemListContainer::~KItemListContainer (this=0x2f20040, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/kitemviews/kitemlistcontainer.cpp:102
#30 0x00007fc64ef90e69 in KItemListContainer::~KItemListContainer (this=0x2f20040, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/kitemviews/kitemlistcontainer.cpp:104
#31 0x00007fc6495906d1 in QObjectPrivate::deleteChildren (this=this@entry=0x2c4ccd0) at kernel/qobject.cpp:1970
#32 0x00007fc64a52b3fb in QWidget::~QWidget (this=0x2c4cc10, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1687
#33 0x00007fc64efd0e49 in DolphinView::~DolphinView (this=0x2c4cc10, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/views/dolphinview.cpp:199
#34 0x00007fc6495906d1 in QObjectPrivate::deleteChildren (this=this@entry=0x2c4c700) at kernel/qobject.cpp:1970
#35 0x00007fc64a52b3fb in QWidget::~QWidget (this=0x2dd4f00, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1687
#36 0x00007fc64f62f3e1 in DolphinViewContainer::~DolphinViewContainer (this=0x2dd4f00, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/dolphinviewcontainer.cpp:201
#37 DolphinViewContainer::~DolphinViewContainer (this=0x2dd4f00, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/dolphinviewcontainer.cpp:203
#38 0x00007fc6495906d1 in QObjectPrivate::deleteChildren (this=this@entry=0x2c679e0) at kernel/qobject.cpp:1970
#39 0x00007fc64a52b3fb in QWidget::~QWidget (this=0x2ad0510, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1687
#40 0x00007fc64a676f19 in QSplitter::~QSplitter (this=0x2ad0510, __in_chrg=<optimized out>) at widgets/qsplitter.cpp:976
#41 0x00007fc6495906d1 in QObjectPrivate::deleteChildren (this=this@entry=0x2c3eac0) at kernel/qobject.cpp:1970
#42 0x00007fc64a52b3fb in QWidget::~QWidget (this=0x2dd1c90, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1687
#43 0x00007fc64f6830ed in DolphinTabPage::~DolphinTabPage (this=0x2dd1c90, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/dolphintabpage.h:31
#44 DolphinTabPage::~DolphinTabPage (this=0x2dd1c90, __in_chrg=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/dolphintabpage.h:31
#45 0x00007fc649592d90 in QObject::event (this=this@entry=0x2dd1c90, e=e@entry=0x2de0ff0) at kernel/qobject.cpp:1254
#46 0x00007fc64a52fc4b in QWidget::event (this=0x2dd1c90, event=0x2de0ff0) at kernel/qwidget.cpp:9208
#47 0x00007fc64a4e892c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x2dd1c90, e=0x2de0ff0) at kernel/qapplication.cpp:3799
#48 0x00007fc64a4f00e1 in QApplication::notify (this=0x7ffedc22a630, receiver=0x2dd1c90, e=0x2de0ff0) at kernel/qapplication.cpp:3556
#49 0x00007fc649566200 in QCoreApplication::notifyInternal2 (receiver=0x2dd1c90, event=event@entry=0x2de0ff0) at kernel/qcoreapplication.cpp:988
#50 0x00007fc64956898d in QCoreApplication::sendEvent (event=0x2de0ff0, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#51 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x25891c0) at kernel/qcoreapplication.cpp:1649
#52 0x00007fc649568df8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1503
#53 0x00007fc6495ba373 in postEventSourceDispatch (s=0x25e82e0) at kernel/qeventdispatcher_glib.cpp:276
#54 0x00007fc6425f7677 in g_main_dispatch (context=0x7fc6300016f0) at gmain.c:3203
#55 g_main_context_dispatch (context=context@entry=0x7fc6300016f0) at gmain.c:3856
#56 0x00007fc6425f78e0 in g_main_context_iterate (context=context@entry=0x7fc6300016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3929
#57 0x00007fc6425f798c in g_main_context_iteration (context=0x7fc6300016f0, may_block=may_block@entry=1) at gmain.c:3990
#58 0x00007fc6495ba77f in QEventDispatcherGlib::processEvents (this=0x25e8fc0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#59 0x00007fc6495641ea in QEventLoop::exec (this=this@entry=0x7ffedc22a4f0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:210
#60 0x00007fc64956c95c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#61 0x00007fc649d3ff4c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1639
#62 0x00007fc64a4e8885 in QApplication::exec () at kernel/qapplication.cpp:2975
#63 0x00007fc64f63d786 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dolphin-16.12.0/src/main.cpp:150
#64 0x00007fc64f25f291 in __libc_start_main (main=0x400640 <main>, argc=3, argv=0x7ffedc22a7b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffedc22a7a8) at ../csu/libc-start.c:289
#65 0x000000000040067a in _start () at ../sysdeps/x86_64/start.S:120

Reported using DrKonqi
Comment 1 Jaime Torres 2016-12-27 10:51:50 UTC
I've noticed that the USB has been unmounted (do not know which program has done this, it has not been done manually!) properly (dmesg).
Comment 2 Elvis Angelaccio 2016-12-27 16:34:06 UTC
Thanks for the report. Can you reproduce the crash every time?
Comment 3 Jaime Torres 2016-12-28 12:15:00 UTC
No, I can't because I do not know what happened for the USB pen-drive to be unmounted inappropriately.
Unmounting it properly, I do not have any problem at all.
Comment 4 Elvis Angelaccio 2016-12-28 12:21:15 UTC
Thanks for the update. I'm moving this to baloo in case the baloo developers want to investigate the backtrace.
Comment 5 Elvis Angelaccio 2017-01-10 08:58:43 UTC
*** Bug 374848 has been marked as a duplicate of this bug. ***
Comment 6 Jaime Torres 2017-08-09 19:30:30 UTC
Created attachment 107182 [details]
New crash information added by DrKonqi

dolphin (17.04.3) using Qt 5.9.1

- What I was doing when the application crashed:

In another session, removed a pendrive.
Probably the other session was stopped (like in sigstop).

-- Backtrace (Reduced):
#6  0x00007f6ee3b222da in QExplicitlySharedDataPointer<Solid::DevicePrivate>::~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qshareddata.h:165
#7  0x00007f6ee3e1089f in Baloo::StorageDevices::Entry::~Entry (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/baloo-5.36.0/src/file/storagedevices.h:45
#8  QHashNode<QString, Baloo::StorageDevices::Entry>::~QHashNode (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qhash.h:149
#9  QHash<QString, Baloo::StorageDevices::Entry>::deleteNode2 (node=0x55e93e9d4e00) at /usr/include/qt5/QtCore/qhash.h:536
#10 QHash<QString, Baloo::StorageDevices::Entry>::deleteNode (node=0x55e93e9d4e00, this=0x55e93e871ad0) at /usr/include/qt5/QtCore/qhash.h:526
Comment 7 Nate Graham 2020-10-26 15:49:27 UTC
*** Bug 400062 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2020-10-26 16:11:10 UTC
No duplicate bug reports seen in almost a year. After all the bugfixing work done during that time, I think we can call this fixed!