Bug 362222 - Baloo crashes every session; file search doesn't work
Summary: Baloo crashes every session; file search doesn't work
Status: RESOLVED DUPLICATE of bug 389848
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.18.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords: drkonqi
: 355924 362389 368760 377604 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-04-25 08:56 UTC by Sam Muirhead
Modified: 2018-04-14 01:50 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Baloo backtrace (4.31 KB, text/plain)
2018-03-24 14:07 UTC, abogical
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Muirhead 2016-04-25 08:56:47 UTC
Application: baloo_file (5.18.0)

Qt Version: 5.5.1
Operating System: Linux 4.4.0-21-generic x86_64
Distribution: Ubuntu 16.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
This error message occurs during every session, and I assume that the lack of functioning 'search' facility in Dolphin is also related to it. It happens seemingly randomly, regardless of which program I am using or if I'm creating/deleting files, doing CPU-intensive work, or anything else.

The crash can be reproduced every time.

-- Backtrace:
Application: Baloo File Indexing Daemon (baloo_file), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fda8ee008c0 (LWP 1398))]

Thread 2 (Thread 0x7fd943b2f700 (LWP 2703)):
[KCrash Handler]
#6  0x00007fda8ce4b418 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007fda8ce4d01a in __GI_abort () at abort.c:89
#8  0x00007fda8b650002 in mdb_assert_fail (env=0x1a4ebe0, expr_txt=expr_txt@entry=0x7fda8b651a5f "rc == 0", func=func@entry=0x7fda8b652398 <__func__.7098> "mdb_page_dirty", line=line@entry=2065, file=0x7fda8b651a40 "mdb.c") at mdb.c:1481
#9  0x00007fda8b6456a5 in mdb_page_dirty (txn=0x1b27b20, mp=<optimized out>) at mdb.c:2065
#10 0x00007fda8b646863 in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7fd943b2ddf8, mc=0x7fd943b2e330) at mdb.c:2246
#11 0x00007fda8b646ac9 in mdb_page_touch (mc=mc@entry=0x7fd943b2e330) at mdb.c:2364
#12 0x00007fda8b6486df in mdb_cursor_touch (mc=mc@entry=0x7fd943b2e330) at mdb.c:6267
#13 0x00007fda8b64b805 in mdb_cursor_put (mc=0x7fd943b2e330, key=0x7fd943b2e710, data=0x7fd943b2e720, flags=<optimized out>) at mdb.c:6401
#14 0x00007fda8b64e260 in mdb_put (txn=0x1b27b20, dbi=8, key=key@entry=0x7fd943b2e710, data=data@entry=0x7fd943b2e720, flags=flags@entry=0) at mdb.c:8759
#15 0x00007fda8dfe0629 in Baloo::IdFilenameDB::put (this=this@entry=0x7fd943b2e790, docId=docId@entry=25509614657272833, path=...) at ../../../src/engine/idfilenamedb.cpp:75
#16 0x00007fda8dfdc58a in Baloo::DocumentUrlDB::add (this=this@entry=0x7fd943b2ea50, id=id@entry=25509614657272833, parentId=parentId@entry=25332872458075137, name=...) at ../../../src/engine/documenturldb.cpp:135
#17 0x00007fda8dfdc916 in Baloo::DocumentUrlDB::put (this=this@entry=0x7fd943b2ea50, docId=docId@entry=25509614657272833, url=...) at ../../../src/engine/documenturldb.cpp:69
#18 0x00007fda8dff40ea in Baloo::WriteTransaction::addDocument (this=0x7fd93c003460, doc=...) at ../../../src/engine/writetransaction.cpp:56
#19 0x00007fda8dfedfe9 in Baloo::Transaction::addDocument (this=this@entry=0x7fd943b2eb30, doc=...) at ../../../src/engine/transaction.cpp:226
#20 0x000000000041ec74 in Baloo::ModifiedFileIndexer::run (this=0x1ff3190) at ../../../src/file/modifiedfileindexer.cpp:99
#21 0x00007fda8d90c343 in QThreadPoolThread::run (this=0x1f96020) at thread/qthreadpool.cpp:93
#22 0x00007fda8d90f84e in QThreadPrivate::start (arg=0x1f96020) at thread/qthread_unix.cpp:331
#23 0x00007fda8c5736fa in start_thread (arg=0x7fd943b2f700) at pthread_create.c:333
#24 0x00007fda8cf1cb5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fda8ee008c0 (LWP 1398)):
#0  0x00007fda8cf0c9cd in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fda8a1246c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fda8a0e0e04 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fda8a0e12c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fda8a0e142c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fda8db46a7f in QEventDispatcherGlib::processEvents (this=0x1a49380, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#6  0x00007fda8daeddea in QEventLoop::exec (this=this@entry=0x7ffe0cfd3b60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#7  0x00007fda8daf5e8c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229
#8  0x000000000041698c in main (argc=1, argv=<optimized out>) at ../../../src/file/main.cpp:88

Reported using DrKonqi
Comment 1 Christoph Cullmann 2016-09-11 21:04:57 UTC
*** Bug 355924 has been marked as a duplicate of this bug. ***
Comment 2 Christoph Feck 2017-03-24 22:35:28 UTC
*** Bug 377604 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2017-10-27 19:58:09 UTC
*** Bug 362389 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2017-10-27 19:59:35 UTC
Not Bug 360946, even though this was reported against an old Frameworks version; we're not dying in Query::exec().
Comment 5 Nate Graham 2017-10-27 20:02:15 UTC
*** Bug 368760 has been marked as a duplicate of this bug. ***
Comment 6 Jdogzilla 2017-11-25 05:10:28 UTC
Here is the backtrace from the crash on my machine using Kubuntu 17.10.  Happens EVERY TIME I login to my machine (without fail). 

Application: Baloo File Indexing Daemon (baloo_file), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f984499ad80 (LWP 4231))]

Thread 3 (Thread 0x7f5833dfe700 (LWP 8471)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f98422faf5d in __GI_abort () at abort.c:90
#8  0x00007f98400c44d2 in ?? () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#9  0x00007f98400b95d5 in ?? () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#10 0x00007f98400ba803 in ?? () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#11 0x00007f98400baa79 in ?? () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#12 0x00007f98400bc764 in ?? () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#13 0x00007f98400bf992 in mdb_cursor_put () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#14 0x00007f98400c25a0 in mdb_put () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#15 0x00007f9843769902 in Baloo::DocumentTimeDB::put(unsigned long long, Baloo::DocumentTimeDB::TimeInfo const&) () from /usr/lib/x86_64-linux-gnu/libKF5BalooEngine.so.5
#16 0x00007f984377bcdc in Baloo::WriteTransaction::addDocument(Baloo::Document const&) () from /usr/lib/x86_64-linux-gnu/libKF5BalooEngine.so.5
#17 0x000056354311ea29 in ?? ()
#18 0x00007f9842e26581 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f9842e2a29d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f984140d7fc in start_thread (arg=0x7f5833dfe700) at pthread_create.c:465
#21 0x00007f98423d6b0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f9838834700 (LWP 4240)):
#0  0x00007f98423ca901 in __GI___poll (fds=0x7f9834002de0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f983eb81169 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f983eb8127c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f984306049b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f9843005e3a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9842e253ca in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9844271e45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f9842e2a29d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f984140d7fc in start_thread (arg=0x7f9838834700) at pthread_create.c:465
#9  0x00007f98423d6b0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f984499ad80 (LWP 4231)):
#0  0x00007f9842e2343f in QReadWriteLock::unlock() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007f9842ee1054 in QRegularExpression::match(QString const&, int, QRegularExpression::MatchType, QFlags<QRegularExpression::MatchOption>) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x0000563543128a48 in ?? ()
#3  0x000056354311ab84 in ?? ()
#4  0x000056354312adf7 in ?? ()
#5  0x000056354312b11c in ?? ()
#6  0x0000563543136a4e in ?? ()
#7  0x00005635431348e9 in ?? ()
#8  0x00007f9843037452 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f9843007dd1 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f984300a55d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f9843060e53 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f983eb80fb7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007f983eb811f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007f983eb8127c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007f984306047f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f9843005e3a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f984300eda4 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00005635431197fc in ?? ()
#19 0x00007f98422e31c1 in __libc_start_main (main=0x563543119550, argc=1, argv=0x7ffd12a1b938, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd12a1b928) at ../csu/libc-start.c:308
#20 0x0000563543119a6a in _start ()
Comment 7 abogical 2018-03-24 14:07:29 UTC
Created attachment 111602 [details]
Baloo backtrace

Same bug happens in my end. Backtrace is attached.

OS: openSUSE Tumbleweed x86_64
Kernel: 4.15.10-1-default
KDE Plasma Version: 5.12.3
KDE Frameworks Version: 5.44.0
Qt Version: 4.15.10-1-default
Comment 8 abogical 2018-03-24 14:15:41 UTC
When running balooctl check, the following terminal output is produced:
mdb.c:2071: Assertion 'rc == 0' failed in mdb_page_dirty()
Comment 9 Dominik Haumann 2018-04-14 01:50:33 UTC
Closing as duplicate of a newer report, since the backtraces there are more up to date.

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