Bug 388200

Summary: Baloo_file/baloo_file_extr crash when running "balooctl check"
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Steve <stevewhorwood>
Component: Baloo File DaemonAssignee: Pinak Ahuja <pinak.ahuja>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate, stefan.bruens
Priority: NOR Keywords: drkonqi
Version: 5.32.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Steve 2017-12-24 18:16:46 UTC
Application: baloo_file (5.32.0)

Qt Version: 5.6.2
Frameworks Version: 5.32.0
Operating System: Linux 4.14.8-2.g3f42b52-default x86_64
Distribution: "openSUSE Leap 42.3"

-- Information about the crash:
Running "balooctl status" immediately after "balooctl check" gives:
balooctl status
Baloo File Indexer is not running
Indexed 27472 / 27473 files
Current size of index is 59.36 MiB

Shortly after this, both processes crashed again.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Baloo File Indexing Daemon (baloo_file), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fad51cec880 (LWP 23840))]

Thread 3 (Thread 0x7fad45e72700 (LWP 23844)):
#0  0x00007fad4f81f20d in poll () from /lib64/libc.so.6
#1  0x00007fad4c22d314 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fad4c22d42c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fad504291ab in QEventDispatcherGlib::processEvents (this=0x7f6d380008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:419
#4  0x00007fad503d6bfb in QEventLoop::exec (this=this@entry=0x7fad45e71c10, flags=..., flags@entry=...) at kernel/qeventloop.cpp:206
#5  0x00000000004161fe in Baloo::FileContentIndexer::run (this=0x17ff6d0) at /usr/src/debug/baloo-5.32.0/src/file/filecontentindexer.cpp:73
#6  0x00007fad5021385e in QThreadPoolThread::run (this=0x17eff90) at thread/qthreadpool.cpp:93
#7  0x00007fad50216a29 in QThreadPrivate::start (arg=0x17eff90) at thread/qthread_unix.cpp:365
#8  0x00007fad4e858744 in start_thread () from /lib64/libpthread.so.0
#9  0x00007fad4f827aad in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fad46975700 (LWP 23842)):
#0  0x00007fad4f833ef4 in __libc_enable_asynccancel () from /lib64/libc.so.6
#1  0x00007fad4f81f202 in poll () from /lib64/libc.so.6
#2  0x00007fad4c22d314 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fad4c22d42c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fad504291ab in QEventDispatcherGlib::processEvents (this=0x7fad400008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:419
#5  0x00007fad503d6bfb in QEventLoop::exec (this=this@entry=0x7fad46974d20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:206
#6  0x00007fad50211f5a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#7  0x00007fad515db295 in ?? () from /usr/lib64/libQt5DBus.so.5
#8  0x00007fad50216a29 in QThreadPrivate::start (arg=0x7fad51844ce0) at thread/qthread_unix.cpp:365
#9  0x00007fad4e858744 in start_thread () from /lib64/libpthread.so.0
#10 0x00007fad4f827aad in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fad51cec880 (LWP 23840)):
[KCrash Handler]
#6  0x00007fad4d5221f1 in mdb_get (txn=0x1, dbi=7, key=0x7ffcbc7521a0, data=0x7ffcbc7521b0) at mdb.c:5286
#7  0x00007fad50acb77d in Baloo::IdTreeDB::get (this=this@entry=0x7ffcbc752220, docId=docId@entry=0) at /usr/src/debug/baloo-5.32.0/src/engine/idtreedb.cpp:82
#8  0x00007fad50ac9280 in Baloo::DocumentUrlDB::getId (this=this@entry=0x7ffcbc752290, docId=0, fileName=...) at /usr/src/debug/baloo-5.32.0/src/engine/documenturldb.cpp:176
#9  0x00007fad50ada5c1 in Baloo::Transaction::documentId (this=this@entry=0x7ffcbc752310, path=...) at /usr/src/debug/baloo-5.32.0/src/engine/transaction.cpp:121
#10 0x000000000041e4d3 in Baloo::MetadataMover::removeMetadata (this=this@entry=0x1861580, tr=tr@entry=0x7ffcbc752310, url=...) at /usr/src/debug/baloo-5.32.0/src/file/metadatamover.cpp:74
#11 0x000000000041e58d in Baloo::MetadataMover::removeFileMetadata (this=0x1861580, file=...) at /usr/src/debug/baloo-5.32.0/src/file/metadatamover.cpp:66
#12 0x00007fad50402de3 in QtPrivate::QSlotObjectBase::call (a=0x7ffcbc752480, r=0x1861580, this=0x181d5a0) at ../../src/corelib/kernel/qobject_impl.h:124
#13 QMetaObject::activate (sender=sender@entry=0x1801f20, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffcbc752480) at kernel/qobject.cpp:3715
#14 0x00007fad504033d7 in QMetaObject::activate (sender=sender@entry=0x1801f20, m=m@entry=0x63b960 <Baloo::PendingFileQueue::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffcbc752480) at kernel/qobject.cpp:3595
#15 0x0000000000428615 in Baloo::PendingFileQueue::removeFileIndex (this=this@entry=0x1801f20, _t1=...) at /usr/src/debug/baloo-5.32.0/build/src/file/moc_pendingfilequeue.cpp:221
#16 0x000000000041c9c6 in Baloo::PendingFileQueue::processCache (this=0x1801f20) at /usr/src/debug/baloo-5.32.0/src/file/pendingfilequeue.cpp:88
#17 0x00007fad50402de3 in QtPrivate::QSlotObjectBase::call (a=0x7ffcbc7525c0, r=0x1801f20, this=0x17ee3e0) at ../../src/corelib/kernel/qobject_impl.h:124
#18 QMetaObject::activate (sender=sender@entry=0x1801f38, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3715
#19 0x00007fad504033d7 in QMetaObject::activate (sender=sender@entry=0x1801f38, m=m@entry=0x7fad5081f700 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3595
#20 0x00007fad5047c2e0 in QTimer::timeout (this=this@entry=0x1801f38) at .moc/moc_qtimer.cpp:198
#21 0x00007fad5040fdd2 in QTimer::timerEvent (this=0x1801f38, e=<optimized out>) at kernel/qtimer.cpp:247
#22 0x00007fad50403bf4 in QObject::event (this=0x1801f38, e=<optimized out>) at kernel/qobject.cpp:1237
#23 0x00007fad503d8cac in doNotify (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1090
#24 QCoreApplication::notify (this=<optimized out>, receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1076
#25 0x00007fad503d8be5 in QCoreApplication::notifyInternal2 (receiver=0x1801f38, event=event@entry=0x7ffcbc752860) at kernel/qcoreapplication.cpp:1015
#26 0x00007fad50428afe in QCoreApplication::sendEvent (event=0x7ffcbc752860, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:225
#27 QTimerInfoList::activateTimers (this=0x17e4630) at kernel/qtimerinfo_unix.cpp:637
#28 0x00007fad50428ef9 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:176
#29 idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:223
#30 0x00007fad4c22d134 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#31 0x00007fad4c22d388 in ?? () from /usr/lib64/libglib-2.0.so.0
#32 0x00007fad4c22d42c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#33 0x00007fad5042918c in QEventDispatcherGlib::processEvents (this=0x17e4a20, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#34 0x00007fad503d6bfb in QEventLoop::exec (this=this@entry=0x7ffcbc752aa0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:206
#35 0x00007fad503deae6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1285
#36 0x000000000040b590 in main (argc=1, argv=<optimized out>) at /usr/src/debug/baloo-5.32.0/src/file/main.cpp:104

Possible duplicates by query: bug 383625, bug 383385, bug 379985, bug 379928, bug 379685.

Reported using DrKonqi
Comment 1 Nate Graham 2018-08-28 19:25:10 UTC

*** This bug has been marked as a duplicate of bug 352984 ***