Bug 419172 - Baloo crash on login
Summary: Baloo crash on login
Status: RESOLVED FIXED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.68.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Stefan Brüns
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-03-24 08:26 UTC by Martin Riethmayer
Modified: 2020-03-26 22:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Riethmayer 2020-03-24 08:26:52 UTC
Application: baloo_file (5.68.0)

Qt Version: 5.14.1
Frameworks Version: 5.68.0
Operating System: Linux 4.12.14-lp151.28.40-default x86_64
Windowing system: X11
Distribution: "openSUSE Leap 15.1"

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

Ballo crashes after/during login (every time). Very willing to help finding out the cause for this! I'm also on IRC in #plasma (ripper17)

The crash can be reproduced every time.

-- 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 0x7f4b02156f00 (LWP 2876))]

Thread 3 (Thread 0x7f4af6521700 (LWP 3357)):
[KCrash Handler]
#6  0x00007f4affa4d160 in raise () from /lib64/libc.so.6
#7  0x00007f4affa4e741 in abort () from /lib64/libc.so.6
#8  0x00007f4afdbeca82 in mdb_assert_fail (env=0x5640676b7540, expr_txt=expr_txt@entry=0x7f4afdbee50f "rc == 0", func=func@entry=0x7f4afdbeee88 <__func__.6935> "mdb_page_dirty", line=line@entry=2071, file=0x7f4afdbee4f0 "mdb.c") at mdb.c:1487
#9  0x00007f4afdbe1d85 in mdb_page_dirty (txn=0x5640676bd160, mp=<optimized out>) at mdb.c:2071
#10 0x00007f4afdbe2f6a in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7f4af651ff48, mc=<optimized out>) at mdb.c:2252
#11 0x00007f4afdbe31d9 in mdb_page_touch (mc=mc@entry=0x7f4af6520480) at mdb.c:2370
#12 0x00007f4afdbe4cf4 in mdb_cursor_touch (mc=mc@entry=0x7f4af6520480) at mdb.c:6308
#13 0x00007f4afdbe7e8e in mdb_cursor_put (mc=0x7f4af6520480, key=0x7f4af6520860, data=0x7f4af6520870, flags=<optimized out>) at mdb.c:6442
#14 0x00007f4afdbeab1b in mdb_put (txn=0x5640676bd160, dbi=9, key=key@entry=0x7f4af6520860, data=data@entry=0x7f4af6520870, flags=flags@entry=0) at mdb.c:8800
#15 0x00007f4b0110cc28 in Baloo::DocumentTimeDB::put (this=this@entry=0x7f4af6520970, docId=<optimized out>, docId@entry=1358280967818577923, info=...) at /usr/src/debug/baloo5-5.68.0-lp151.230.1.x86_64/src/engine/documenttimedb.cpp:74
#16 0x00007f4b011288ac in Baloo::WriteTransaction::addDocument (this=0x5640678b2300, doc=...) at /usr/src/debug/baloo5-5.68.0-lp151.230.1.x86_64/src/engine/writetransaction.cpp:81
#17 0x00007f4b01120ae6 in Baloo::Transaction::addDocument (this=this@entry=0x7f4af6520af0, doc=...) at /usr/src/debug/baloo5-5.68.0-lp151.230.1.x86_64/src/engine/transaction.cpp:254
#18 0x0000564065cfbbba in Baloo::UnindexedFileIndexer::run (this=0x5640679691d0) at /usr/src/debug/baloo5-5.68.0-lp151.230.1.x86_64/src/file/unindexedfileindexer.cpp:73
#19 0x00007f4b00555282 in QThreadPoolThread::run (this=0x56406793f300) at thread/qthreadpool.cpp:99
#20 0x00007f4b00551b2c in QThreadPrivate::start (arg=0x56406793f300) at thread/qthread_unix.cpp:342
#21 0x00007f4afe04b569 in start_thread () from /lib64/libpthread.so.0
#22 0x00007f4affb0f9ef in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f4af7034700 (LWP 2882)):
#0  0x00007f4affb00c98 in read () from /lib64/libc.so.6
#1  0x00007f4afc0f2c80 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f4afc0adcb8 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f4afc0ae150 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f4afc0ae2bc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f4b007a07eb in QEventDispatcherGlib::processEvents (this=0x7f4af0000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f4b0073fd4a in QEventLoop::exec (this=this@entry=0x7f4af7033c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007f4b00550657 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#8  0x00007f4b0134d115 in ?? () from /usr/lib64/libQt5DBus.so.5
#9  0x00007f4b00551b2c in QThreadPrivate::start (arg=0x7f4b015c4da0) at thread/qthread_unix.cpp:342
#10 0x00007f4afe04b569 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f4affb0f9ef in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f4b02156f00 (LWP 2876)):
#0  0x00007f4affb0519b in poll () from /lib64/libc.so.6
#1  0x00007f4afc0ae1a9 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f4afc0ae2bc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f4b007a07cc in QEventDispatcherGlib::processEvents (this=0x5640676a3c30, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#4  0x00007f4b0073fd4a in QEventLoop::exec (this=this@entry=0x7ffd117546b0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f4b007494c0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1400
#6  0x0000564065cf04cc in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/baloo5-5.68.0-lp151.230.1.x86_64/src/file/main.cpp:103
[Inferior 1 (process 2876) detached]

The reporter indicates this bug may be a duplicate of or related to bug 389848.

Possible duplicates by query: bug 418926, bug 418744, bug 417970, bug 417717, bug 415863.

Reported using DrKonqi
Comment 1 Stefan Brüns 2020-03-24 17:40:09 UTC
Unfortunately your DB is internally inconsistent.

Try running `balooctl purge`.

Its probably time to dump LMDB in favor of e.g. sqlite, as several other projects have done:

RPM:
- https://github.com/rpm-software-management/rpm/commit/7de982ac0957c42f228b43685d9f486e55eac331

openLDAP (LMDB-backed) vs 389-DS:
- https://access.redhat.com/solutions/2440481 - "Starting with Red Hat Enterprise Linux 7.4, the openldap-servers package has been deprecated"
- https://www.suse.com/releasenotes/x86_64/SUSE-SLES/15/#Intro.New - "389 Directory Server replaces OpenLDAP to provide a sustainable directory service."

Problems in Firefox:
https://bugs.openldap.org/show_bug.cgi?id=9037

Problems in Monero, Nimiq, ... (google for MDB_BAD_TXN):
https://monero.stackexchange.com/questions/6586/daemon-shuts-down-on-startup-mdb-bad-txn-transaction-must-abort-has-a-child
Comment 2 Martin Riethmayer 2020-03-26 22:18:42 UTC
Thanks, fixed