Bug 353483

Summary: Crash in DocumentDB::put
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Jean-Paul Lambrechts <jlambrec>
Component: Baloo File DaemonAssignee: Pinak Ahuja <pinak.ahuja>
Status: RESOLVED DUPLICATE    
Severity: crash CC: aspotashev, dverbeek, mail, matejm98mthw, nate, pinak.ahuja, ymm-nuk
Priority: NOR Keywords: drkonqi
Version: 5.51.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jean-Paul Lambrechts 2015-10-03 04:16:32 UTC
Application: baloo_file (5.13.0)

Qt Version: 5.5.0
Operating System: Linux 4.1.7-200.fc22.x86_64 x86_64
Distribution: "Fedora release 22 (Twenty Two)"

-- Information about the crash:
- What I was doing when the application crashed: I was opening a database file in libreoffice after just booting up

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

Thread 3 (Thread 0x7fdd6c909700 (LWP 2079)):
#0  0x0000003c8b0f72fd in poll () at /lib64/libc.so.6
#1  0x0000003c8e80a182 in _xcb_conn_wait () at /lib64/libxcb.so.1
#2  0x0000003c8e80bc77 in xcb_wait_for_event () at /lib64/libxcb.so.1
#3  0x00007fdd6d18c999 in QXcbEventReader::run() () at /lib64/libQt5XcbQpa.so.5
#4  0x00000039790a254e in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#5  0x0000003c8b807555 in start_thread () at /lib64/libpthread.so.0
#6  0x0000003c8b102b9d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fdc2757e700 (LWP 2900)):
[KCrash Handler]
#5  0x0000003c8b0349c8 in raise () at /lib64/libc.so.6
#6  0x0000003c8b03665a in abort () at /lib64/libc.so.6
#7  0x000000307b804432 in  () at /lib64/liblmdb.so.0.0.0
#8  0x000000307b804875 in mdb_page_dirty () at /lib64/liblmdb.so.0.0.0
#9  0x000000307b805a2a in mdb_page_alloc.isra () at /lib64/liblmdb.so.0.0.0
#10 0x000000307b805c89 in mdb_page_touch () at /lib64/liblmdb.so.0.0.0
#11 0x000000307b80783f in mdb_cursor_touch () at /lib64/liblmdb.so.0.0.0
#12 0x000000307b80a3fa in mdb_cursor_put () at /lib64/liblmdb.so.0.0.0
#13 0x000000307b80cc49 in mdb_put () at /lib64/liblmdb.so.0.0.0
#14 0x000000307bc0e4dd in Baloo::DocumentDB::put(unsigned long long, QVector<QByteArray> const&) () at /lib64/libKF5BalooEngine.so.5
#15 0x000000307bc2b980 in Baloo::WriteTransaction::addDocument(Baloo::Document const&) () at /lib64/libKF5BalooEngine.so.5
#16 0x000000000041c0bf in Baloo::NewFileIndexer::run() ()
#17 0x000000397909f043 in QThreadPoolThread::run() () at /lib64/libQt5Core.so.5
#18 0x00000039790a254e in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#19 0x0000003c8b807555 in start_thread () at /lib64/libpthread.so.0
#20 0x0000003c8b102b9d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fdd73cf9840 (LWP 2074)):
#0  0x0000003c8b80f29d in __lll_lock_wait () at /lib64/libpthread.so.0
#1  0x0000003c8b80989d in pthread_mutex_lock () at /lib64/libpthread.so.0
#2  0x000000307b803d42 in mdb_txn_renew0 () at /lib64/liblmdb.so.0.0.0
#3  0x000000307b804e28 in mdb_txn_begin () at /lib64/liblmdb.so.0.0.0
#4  0x000000307bc26b9b in Baloo::Transaction::Transaction(Baloo::Database const&, Baloo::Transaction::TransactionType) () at /lib64/libKF5BalooEngine.so.5
#5  0x000000000042837f in Baloo::MetadataMover::removeFileMetadata(QString const&) ()
#6  0x00000039792b1fe7 in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#7  0x00000000004320f5 in Baloo::PendingFileQueue::removeFileIndex(QString const&) ()
#8  0x0000000000425b1e in Baloo::PendingFileQueue::processCache() ()
#9  0x00000039792b1fe7 in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#10 0x00000039792bea38 in QTimer::timerEvent(QTimerEvent*) () at /lib64/libQt5Core.so.5
#11 0x00000039792b2fd3 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#12 0x000000324c5544ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#13 0x000000324c559976 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#14 0x000000397928361b in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#15 0x00000039792d8bad in QTimerInfoList::activateTimers() () at /lib64/libQt5Core.so.5
#16 0x00000039792d90e9 in idleTimerSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5Core.so.5
#17 0x00007fdd73f5ca8a in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#18 0x00007fdd73f5ce20 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#19 0x00007fdd73f5cecc in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#20 0x00000039792d9d8f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#21 0x0000003979280daa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#22 0x0000003979288e6c in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#23 0x0000000000413990 in main ()

Reported using DrKonqi
Comment 1 Christoph Cullmann 2016-09-11 17:36:01 UTC
*** Bug 358729 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2018-10-17 15:55:01 UTC
*** Bug 399851 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2018-10-17 15:56:23 UTC
*** Bug 380080 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2018-10-17 15:56:31 UTC
*** Bug 390200 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2018-10-17 16:15:27 UTC
*** Bug 399851 has been marked as a duplicate of this bug. ***
Comment 6 Matej Mrenica 2018-10-17 16:18:30 UTC
Arch Linux
Plasma 5.14.1
Kf5 5.51
Baloo and lmdb rebuilt with debug and !strip

Application: Baloo File Indexing Daemon (baloo_file), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f8d85169800 (LWP 10339))]

Thread 3 (Thread 0x7f4d7ffff700 (LWP 10371)):
[KCrash Handler]
#6  0x00007f8d88bebdc4 in mdb_midl_xmerge (idl=idl@entry=0x7f4cdcaf5018, merge=merge@entry=0x7f4d86858010) at midl.c:207
#7  0x00007f8d88be34a5 in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7f4d7fffe0d8, mc=<optimized out>) at mdb.c:2277
#8  0x00007f8d88be391b in mdb_page_touch (mc=mc@entry=0x7f4d7fffe610) at mdb.c:2495
#9  0x00007f8d88be554c in mdb_cursor_touch (mc=mc@entry=0x7f4d7fffe610) at mdb.c:6492
#10 0x00007f8d88be864b in mdb_cursor_put (mc=mc@entry=0x7f4d7fffe610, key=key@entry=0x7f4d7fffe9f0, data=data@entry=0x7f4d7fffea00, flags=flags@entry=0) at mdb.c:6626
#11 0x00007f8d88beb2eb in mdb_put (txn=0x55633b2ff3e0, dbi=4, key=key@entry=0x7f4d7fffe9f0, data=data@entry=0x7f4d7fffea00, flags=flags@entry=0) at mdb.c:8991
#12 0x00007f8d8a880b53 in Baloo::DocumentDB::put (this=this@entry=0x7f4d7fffeab0, docId=<optimized out>, docId@entry=19199732173831682, list=...) at /usr/src/debug/baloo-5.51.0/src/engine/documentdb.cpp:77
#13 0x00007f8d8a8a5398 in Baloo::WriteTransaction::addDocument (this=0x55633b44f470, doc=...) at /usr/src/debug/baloo-5.51.0/src/engine/writetransaction.cpp:62
#14 0x00007f8d8a89d9ba in Baloo::Transaction::addDocument (this=this@entry=0x7f4d7fffebe0, doc=...) at /usr/src/debug/baloo-5.51.0/src/engine/transaction.cpp:233
#15 0x000055633943212d in Baloo::ModifiedFileIndexer::run (this=0x55633b4424a0) at /usr/include/qt/QtCore/qrefcount.h:60
#16 0x00007f8d8a31b971 in ?? () from /usr/lib/libQt5Core.so.5
#17 0x00007f8d8a31799c in ?? () from /usr/lib/libQt5Core.so.5
#18 0x00007f8d8969ba9d in start_thread () from /usr/lib/libpthread.so.0
#19 0x00007f8d89e7cb23 in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f8d84e83700 (LWP 10342)):
#0  0x00007f8d89e71c21 in poll () from /usr/lib/libc.so.6
#1  0x00007f8d8833eee0 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f8d8833efce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f8d8a529624 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007f8d8a4d265c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f8d8a316599 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f8d8a95fba6 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007f8d8a31799c in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f8d8969ba9d in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f8d89e7cb23 in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f8d85169800 (LWP 10339)):
#0  0x00007f8d89e71c21 in poll () from /usr/lib/libc.so.6
#1  0x00007f8d8833eee0 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f8d8833efce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f8d8a529624 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007f8d8a4d265c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f8d8a4da966 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00005563394243f4 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/baloo-5.51.0/src/file/main.cpp:104
[Inferior 1 (process 10339) detached]
`
Comment 7 Nate Graham 2018-11-26 18:13:45 UTC

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