Bug 389848 - baloo_file crashes in mdb_put() in LMDB
Summary: baloo_file crashes in mdb_put() in LMDB
Status: RESOLVED FIXED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.42.0
Platform: openSUSE Linux
: VHI crash
Target Milestone: ---
Assignee: baloo-bugs-null
URL: https://bugs.openldap.org/show_bug.cg...
Keywords: drkonqi
: 353483 358729 362222 368733 369184 370727 370903 371382 371784 373179 376781 378340 378750 380080 380111 383101 385187 386702 386987 387104 387672 388897 389625 390127 390200 392094 392920 394637 394916 395475 396078 396277 396402 396658 397582 399851 400498 400728 401288 402492 402510 403010 403013 403107 403343 403741 404239 404688 404940 405072 405101 405480 406173 406704 407342 408008 408018 408293 409829 410134 410494 410916 411064 411139 411192 411660 411706 411839 412359 412567 412780 412847 413060 413289 413421 413485 413558 413773 413797 414240 414397 415416 417348 417398 417717 417970 417976 418926 419346 419917 420296 420615 420677 421728 422483 425484 426195 427480 427742 428123 430113 430455 430731 437191 437974 440474 465529 467485 473970 474840 478539 481370 481616 485019 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-03 23:01 UTC by laurie jarden
Modified: 2024-04-13 10:49 UTC (History)
132 users (show)

See Also:
Latest Commit:
Version Fixed In: Frameworks 6.2


Attachments
New crash information added by DrKonqi (8.19 KB, text/plain)
2018-07-25 08:52 UTC, Don Curtis
Details
baloo_file_extractor log crash (3.43 KB, text/plain)
2019-06-03 18:17 UTC, plasmapeleng
Details
New crash information added by DrKonqi (4.64 KB, text/plain)
2019-08-14 21:26 UTC, bulve.rec
Details
attachment-23301-0.html (2.25 KB, text/html)
2019-08-23 02:03 UTC, marty
Details
New crash information added by DrKonqi (3.71 KB, text/plain)
2019-11-13 17:47 UTC, Francisco Cribari
Details
New crash information added by DrKonqi (5.12 KB, patch)
2019-12-02 17:28 UTC, vortex
Details
New crash information added by DrKonqi (5.49 KB, text/plain)
2020-01-15 08:55 UTC, webadm
Details
New crash information added by DrKonqi (6.39 KB, patch)
2020-02-21 18:09 UTC, Denis Tolstov
Details
New crash information added by DrKonqi (4.31 KB, patch)
2021-09-22 10:15 UTC, Vitalii Sh.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description laurie jarden 2018-02-03 23:01:45 UTC
Application: baloo_file (5.42.0)

Qt Version: 5.10.0
Frameworks Version: 5.42.0
Operating System: Linux 4.15.0-1-default x86_64
Distribution (Platform): openSUSE RPMs

-- Information about the crash:
- What I was doing when the application crashed:
login to computer
- Unusual behavior I noticed:no background wallpaper on login, mouse pointer only.
used ctrl+alt+backspace backspace to logout.
Baloo crach handler appeared on login.

-- 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 0x7f792b2e1640 (LWP 18438))]

Thread 3 (Thread 0x7f791fcb5700 (LWP 18503)):
[KCrash Handler]
#6  0x00007f7928c950d0 in raise () from /lib64/libc.so.6
#7  0x00007f7928c966b1 in abort () from /lib64/libc.so.6
#8  0x00007f7926a13922 in mdb_assert_fail (env=0x56462d7a99a0, expr_txt=expr_txt@entry=0x7f7926a153ec "mp->mp_pgno != pgno", func=func@entry=0x7f7926a15cf8 <__func__.7011> "mdb_page_touch", line=line@entry=2376, file=0x7f7926a15390 "mdb.c") at mdb.c:1487
#9  0x00007f7926a0a3d2 in mdb_page_touch (mc=mc@entry=0x7f791fcb3f30) at mdb.c:2376
#10 0x00007f7926a0a840 in mdb_page_search (mc=mc@entry=0x7f791fcb3f30, key=0x56462d8296e0, flags=flags@entry=1) at mdb.c:5435
#11 0x00007f7926a0bd09 in mdb_cursor_touch (mc=mc@entry=0x7f791fcb4410) at mdb.c:6265
#12 0x00007f7926a0eeee in mdb_cursor_put (mc=0x7f791fcb4410, key=0x7f791fcb47e0, data=0x7f791fcb47f0, flags=<optimized out>) at mdb.c:6407
#13 0x00007f7926a119ab in mdb_put (txn=0x56462d825d10, dbi=7, key=key@entry=0x7f791fcb47e0, data=data@entry=0x7f791fcb47f0, flags=flags@entry=0) at mdb.c:8765
#14 0x00007f792a08211d in Baloo::IdTreeDB::put (this=this@entry=0x7f791fcb4850, docId=<optimized out>, docId@entry=6918587754259417092, subDocIds=...) at /usr/src/debug/baloo5-5.42.0-1.1.x86_64/src/engine/idtreedb.cpp:71
#15 0x00007f792a07ebf5 in Baloo::DocumentUrlDB::add (this=this@entry=0x7f791fcb4ad0, id=id@entry=6918611398054381572, parentId=parentId@entry=6918587754259417092, name=...) at /usr/src/debug/baloo5-5.42.0-1.1.x86_64/src/engine/documenturldb.cpp:118
#16 0x00007f792a07eef3 in Baloo::DocumentUrlDB::put (this=this@entry=0x7f791fcb4ad0, docId=docId@entry=6918611398054381572, url=...) at /usr/src/debug/baloo5-5.42.0-1.1.x86_64/src/engine/documenturldb.cpp:69
#17 0x00007f792a0936a4 in Baloo::WriteTransaction::addDocument (this=0x56462d80e340, doc=...) at /usr/src/debug/baloo5-5.42.0-1.1.x86_64/src/engine/writetransaction.cpp:57
#18 0x00007f792a08f399 in Baloo::Transaction::addDocument (this=this@entry=0x7f791fcb4b90, doc=...) at /usr/src/debug/baloo5-5.42.0-1.1.x86_64/src/engine/transaction.cpp:226
#19 0x000056462be353c6 in Baloo::NewFileIndexer::run (this=0x56462d823ca0) at /usr/src/debug/baloo5-5.42.0-1.1.x86_64/src/file/newfileindexer.cpp:72
#20 0x00007f792979eb22 in QThreadPoolThread::run() () from /usr/lib64/libQt5Core.so.5
#21 0x00007f79297a18d0 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#22 0x00007f7927dae558 in start_thread () from /lib64/libpthread.so.0
#23 0x00007f7928d5772f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f79207b8700 (LWP 18443)):
#0  0x00007f7928d4cf8b in poll () from /lib64/libc.so.6
#1  0x00007f792540d149 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f792540d25c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f79299ce78b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f79299756ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f792979c8da in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f792ab8ebd5 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f79297a18d0 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f7927dae558 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f7928d5772f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f792b2e1640 (LWP 18438)):
#0  0x00007f7928d4cf8b in poll () from /lib64/libc.so.6
#1  0x00007f792540d149 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f792540d25c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f79299ce78b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f79299756ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f792997e1f4 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x000056462be2d21c in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/baloo5-5.42.0-1.1.x86_64/src/file/main.cpp:104

Reported using DrKonqi
Comment 1 Nikolai 2018-02-11 13:02:40 UTC
can confirm same behavior on openSUSE tumblweed, plasma 5.12, KF5 5.42, QT 5.10.
Comment 2 Matej Mrenica 2018-02-23 07:38:48 UTC
Also happens on Arch Linux
Comment 3 Dominik Haumann 2018-04-14 01:50:33 UTC
*** Bug 362222 has been marked as a duplicate of this bug. ***
Comment 4 Dominik Haumann 2018-04-14 01:51:53 UTC
*** Bug 368733 has been marked as a duplicate of this bug. ***
Comment 5 Dominik Haumann 2018-04-14 01:52:35 UTC
*** Bug 369184 has been marked as a duplicate of this bug. ***
Comment 6 Dominik Haumann 2018-04-14 01:52:58 UTC
*** Bug 370727 has been marked as a duplicate of this bug. ***
Comment 7 Dominik Haumann 2018-04-14 01:53:32 UTC
*** Bug 370903 has been marked as a duplicate of this bug. ***
Comment 8 Dominik Haumann 2018-04-14 01:53:57 UTC
*** Bug 371382 has been marked as a duplicate of this bug. ***
Comment 9 Dominik Haumann 2018-04-14 01:54:44 UTC
*** Bug 371784 has been marked as a duplicate of this bug. ***
Comment 10 Dominik Haumann 2018-04-14 01:55:40 UTC
*** Bug 383101 has been marked as a duplicate of this bug. ***
Comment 11 Dominik Haumann 2018-04-14 01:58:22 UTC
See also bug 389625. Michael possibly looks into this.
Comment 12 Dominik Haumann 2018-04-14 01:59:37 UTC
*** Bug 390127 has been marked as a duplicate of this bug. ***
Comment 13 Dominik Haumann 2018-04-14 02:00:03 UTC
*** Bug 392094 has been marked as a duplicate of this bug. ***
Comment 14 Matej Mrenica 2018-06-01 14:56:21 UTC
*** Bug 364356 has been marked as a duplicate of this bug. ***
Comment 15 Matej Mrenica 2018-06-01 14:56:31 UTC
*** Bug 394918 has been marked as a duplicate of this bug. ***
Comment 16 Matej Mrenica 2018-06-01 14:56:46 UTC
*** Bug 394916 has been marked as a duplicate of this bug. ***
Comment 17 Matej Mrenica 2018-06-01 14:56:50 UTC
*** Bug 393945 has been marked as a duplicate of this bug. ***
Comment 18 Matej Mrenica 2018-06-01 14:56:54 UTC
*** Bug 394662 has been marked as a duplicate of this bug. ***
Comment 19 Matej Mrenica 2018-06-01 14:56:58 UTC
*** Bug 394404 has been marked as a duplicate of this bug. ***
Comment 20 Matej Mrenica 2018-06-01 14:57:12 UTC
*** Bug 393583 has been marked as a duplicate of this bug. ***
Comment 21 Matej Mrenica 2018-06-01 14:57:19 UTC
*** Bug 373626 has been marked as a duplicate of this bug. ***
Comment 22 Matej Mrenica 2018-06-01 14:59:01 UTC
*** Bug 393896 has been marked as a duplicate of this bug. ***
Comment 23 Matej Mrenica 2018-06-01 14:59:14 UTC
*** Bug 393756 has been marked as a duplicate of this bug. ***
Comment 24 Matej Mrenica 2018-06-01 14:59:24 UTC
*** Bug 393494 has been marked as a duplicate of this bug. ***
Comment 25 Matej Mrenica 2018-06-01 14:59:31 UTC
*** Bug 385187 has been marked as a duplicate of this bug. ***
Comment 26 Matej Mrenica 2018-06-01 14:59:47 UTC
*** Bug 389455 has been marked as a duplicate of this bug. ***
Comment 27 Matej Mrenica 2018-06-01 14:59:54 UTC
*** Bug 390824 has been marked as a duplicate of this bug. ***
Comment 28 Matej Mrenica 2018-06-01 14:59:58 UTC
*** Bug 392920 has been marked as a duplicate of this bug. ***
Comment 29 Nate Graham 2018-07-13 17:30:16 UTC
*** Bug 394637 has been marked as a duplicate of this bug. ***
Comment 30 Nate Graham 2018-07-13 17:30:30 UTC
*** Bug 396402 has been marked as a duplicate of this bug. ***
Comment 31 Nate Graham 2018-07-13 19:45:52 UTC
*** Bug 394916 has been marked as a duplicate of this bug. ***
Comment 32 Nate Graham 2018-07-13 19:45:55 UTC
*** Bug 396277 has been marked as a duplicate of this bug. ***
Comment 33 Don Curtis 2018-07-16 08:16:04 UTC
(My DrKonqi crash report: Bug 396277)
In my case, this behaviour appeared after the following upgrade:
Qt Version: 5.6.2 upgraded to 5.9.4;
Frameworks Version: 5.32.0 upgraded to 5.45.0;
(Distribution upgrade from openSUSE Leap 42.3 to Leap 15.0).
------------------------------------------------------------
I noticed that, with the updated system version and, a "fresh" test user, Baloo didn't crash.
Also not after I enabled the PIM plugin in the Digital Clock -- akonadi started.
Also not with a user which doesn't use the Kontact PIM -- only digiKam and Oracle's VirtualBox -- akonadi is not started for this user.
------------------------------------------------------------
For the case of the user which was suffering the Baloo crashes I did the following from a VT with the Display Manager stopped:
 1. Removed the following files in '~/.config/':
    baloorc
    baloofilerc
    baloofileinformationrc
 2. Removed the entire contents of '~/.local/share/baloo/':
    index
    index-lock
    KDE PIM Kontact directories
 3. Restarted the Display Manager and logged in the user with the "Baloo
    crashing issue".
------------------------------------------------------------
Baloo doesn't crash any more.
------------------------------------------------------------
My guess at the root cause:
 * Outdated Baloo configuration files and an outdated index database cause
   an exception with the current Baloo implementation.
Comment 34 David Kredba 2018-07-17 06:27:07 UTC
I expect Baloo will take care of not any more usable configuration files and definitely that it will update the database (structure, anything) so the index file will not be needed to be deleted and that all the files will not be indexed from scratch.
Comment 35 Don Curtis 2018-07-25 08:52:00 UTC
Created attachment 114108 [details]
New crash information added by DrKonqi

baloo_file (5.45.0) using Qt 5.9.4

- What I was doing when the application crashed:

Nothing special -- I had logged in and was writing an e-Mail with KMail which had some (large) photos as attachments when I noticed that, Baloo had crashed.
Baloo File Indexing Daemon (baloo_file), signal: Aborted -- mdb_assert_fail -- mdb_page_dirty …

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007efdef92a6c1 in __GI_abort () at abort.c:79
#8  0x00007efded6c2922 in mdb_assert_fail (env=0x55beddd98390, expr_txt=expr_txt@entry=0x7efded6c43af "rc == 0", func=func@entry=0x7efded6c4ce8 <__func__.6935> "mdb_page_dirty", line=line@entry=2071, file=0x7efded6c4390 "mdb.c") at mdb.c:1487
#9  0x00007efded6b7e05 in mdb_page_dirty (txn=0x55beddd99750, mp=<optimized out>) at mdb.c:2071
#10 0x00007efded6b8fea in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7ffe994e8538, mc=<optimized out>) at mdb.c:2252
Comment 36 Don Curtis 2018-07-25 08:57:16 UTC
Forgot to mention:
 * The contents of ~/.local/share/baloo/ have been removed several times.
 * All files related to Baloo in ~/.config/ (for example: baloofilerc) have been
   removed several times.
Today's report is a double Baloo crash
 -- two times DrKonqui in quick succession …
Comment 37 GregS 2018-07-25 10:11:31 UTC
(In reply to Don Curtis from comment #33)
> (My DrKonqi crash report: Bug 396277)
> In my case, this behaviour appeared after the following upgrade:
> Qt Version: 5.6.2 upgraded to 5.9.4;
> Frameworks Version: 5.32.0 upgraded to 5.45.0;
> (Distribution upgrade from openSUSE Leap 42.3 to Leap 15.0).
> ------------------------------------------------------------
> I noticed that, with the updated system version and, a "fresh" test user,
> Baloo didn't crash.
> Also not after I enabled the PIM plugin in the Digital Clock -- akonadi
> started.
> Also not with a user which doesn't use the Kontact PIM -- only digiKam and
> Oracle's VirtualBox -- akonadi is not started for this user.
> ------------------------------------------------------------
> For the case of the user which was suffering the Baloo crashes I did the
> following from a VT with the Display Manager stopped:
>  1. Removed the following files in '~/.config/':
>     baloorc
>     baloofilerc
>     baloofileinformationrc
>  2. Removed the entire contents of '~/.local/share/baloo/':
>     index
>     index-lock
>     KDE PIM Kontact directories
>  3. Restarted the Display Manager and logged in the user with the "Baloo
>     crashing issue".
> ------------------------------------------------------------
> Baloo doesn't crash any more.
> ------------------------------------------------------------
> My guess at the root cause:
>  * Outdated Baloo configuration files and an outdated index database cause
>    an exception with the current Baloo implementation.

Tried this (Fedora 27 - has been a recurring issue since Fedora 22).
So far, no more crashes.
I guess the suggestion above WRT outdated files may be on the money.
Comment 38 Nate Graham 2018-08-21 20:35:03 UTC
*** Bug 397582 has been marked as a duplicate of this bug. ***
Comment 39 Stefan Brüns 2018-10-15 17:51:47 UTC
This has been tracked in the OpenLDAP (lmdb) Issue Tracker System, ITS 8756.

The fix has been cherry-picked into the liblmdb-0_9_22 package for openSUSE Tumbleweed and is part of the latest snapshot (20181012).
Comment 40 Nate Graham 2018-10-15 18:04:13 UTC
What's the full URL of the upstream bug report?
Comment 41 Stefan Brüns 2018-10-15 19:19:02 UTC
(In reply to Nate Graham from comment #40)
> What's the full URL of the upstream bug report?

https://www.openldap.org/its/index.cgi/Software%20Bugs?id=8756;selectid=8756
Comment 42 Nate Graham 2018-11-01 20:12:01 UTC
*** Bug 400498 has been marked as a duplicate of this bug. ***
Comment 43 Stefan Brüns 2018-11-01 20:38:14 UTC
*** Bug 396078 has been marked as a duplicate of this bug. ***
Comment 44 Stefan Brüns 2018-11-01 20:42:01 UTC
*** Bug 387672 has been marked as a duplicate of this bug. ***
Comment 45 Stefan Brüns 2018-11-01 20:44:55 UTC
*** Bug 389625 has been marked as a duplicate of this bug. ***
Comment 46 Nate Graham 2018-11-26 17:34:51 UTC
*** Bug 388897 has been marked as a duplicate of this bug. ***
Comment 47 Nate Graham 2018-11-26 17:34:54 UTC
*** Bug 396658 has been marked as a duplicate of this bug. ***
Comment 48 Nate Graham 2018-11-26 17:50:40 UTC
*** Bug 401288 has been marked as a duplicate of this bug. ***
Comment 49 Nate Graham 2018-11-26 17:52:49 UTC
*** Bug 400728 has been marked as a duplicate of this bug. ***
Comment 50 Nate Graham 2018-11-26 18:13:17 UTC
*** Bug 399851 has been marked as a duplicate of this bug. ***
Comment 51 Nate Graham 2018-11-26 18:13:20 UTC
*** Bug 390200 has been marked as a duplicate of this bug. ***
Comment 52 Nate Graham 2018-11-26 18:13:24 UTC
*** Bug 380080 has been marked as a duplicate of this bug. ***
Comment 53 Nate Graham 2018-11-26 18:13:32 UTC
*** Bug 358729 has been marked as a duplicate of this bug. ***
Comment 54 Nate Graham 2018-11-26 18:13:45 UTC
*** Bug 353483 has been marked as a duplicate of this bug. ***
Comment 55 Nate Graham 2018-11-26 18:16:03 UTC
*** Bug 387104 has been marked as a duplicate of this bug. ***
Comment 56 Nate Graham 2018-11-26 18:16:52 UTC
*** Bug 395475 has been marked as a duplicate of this bug. ***
Comment 57 Nate Graham 2018-11-26 18:20:23 UTC
*** Bug 373179 has been marked as a duplicate of this bug. ***
Comment 58 Nate Graham 2018-11-26 18:30:08 UTC
*** Bug 376781 has been marked as a duplicate of this bug. ***
Comment 59 Nate Graham 2018-11-26 18:31:59 UTC
*** Bug 378340 has been marked as a duplicate of this bug. ***
Comment 60 Nate Graham 2018-11-26 18:32:21 UTC
*** Bug 378750 has been marked as a duplicate of this bug. ***
Comment 61 Nate Graham 2018-11-26 18:32:39 UTC
*** Bug 386987 has been marked as a duplicate of this bug. ***
Comment 62 Nate Graham 2018-11-26 18:33:45 UTC
*** Bug 385187 has been marked as a duplicate of this bug. ***
Comment 63 Nate Graham 2018-12-26 23:38:10 UTC
*** Bug 402510 has been marked as a duplicate of this bug. ***
Comment 64 Nate Graham 2018-12-27 04:43:52 UTC
*** Bug 402492 has been marked as a duplicate of this bug. ***
Comment 65 Nate Graham 2019-01-15 17:49:58 UTC
*** Bug 403013 has been marked as a duplicate of this bug. ***
Comment 66 Nate Graham 2019-01-15 19:57:28 UTC
*** Bug 403107 has been marked as a duplicate of this bug. ***
Comment 67 Nate Graham 2019-01-15 19:57:42 UTC
*** Bug 403010 has been marked as a duplicate of this bug. ***
Comment 68 Nate Graham 2019-01-18 21:46:20 UTC
*** Bug 403343 has been marked as a duplicate of this bug. ***
Comment 69 Patrick Silva 2019-01-19 15:45:34 UTC
I have lmdb 0.9.23 installed on Arch Linux and baloo is still crashing immediately after login.
Comment 70 Nate Graham 2019-01-19 15:46:35 UTC
With the same backtrace as this bug? Baloo crashes in a lot of different ways. :/
Comment 71 Matej Mrenica 2019-01-19 16:15:57 UTC
(In reply to Nate Graham from comment #70)
> With the same backtrace as this bug? Baloo crashes in a lot of different
> ways. :/

Mine does crash too, but it seems to be a different backtrace. Should I create a new bug report or post here?
Comment 72 Patrick Silva 2019-01-19 16:58:38 UTC
(In reply to Nate Graham from comment #70)
> With the same backtrace as this bug?
Different.
drkonqi says that the backtrace is duplicate of bug 367480.
Comment 73 Nate Graham 2019-01-19 17:44:49 UTC
Makes sense, since that one is still open.

If DrKonqi reports that your Baloo crash is a duplicate, there's no need to file it. We know about these issues... we just need to get them fixed... somehow...
Comment 74 Nate Graham 2019-02-05 22:02:45 UTC
*** Bug 403741 has been marked as a duplicate of this bug. ***
Comment 75 Nate Graham 2019-02-12 16:28:32 UTC
*** Bug 404239 has been marked as a duplicate of this bug. ***
Comment 76 Nate Graham 2019-02-22 22:38:10 UTC
*** Bug 404688 has been marked as a duplicate of this bug. ***
Comment 77 Nate Graham 2019-03-02 13:42:06 UTC
*** Bug 404940 has been marked as a duplicate of this bug. ***
Comment 78 Nate Graham 2019-03-08 00:09:32 UTC
*** Bug 405072 has been marked as a duplicate of this bug. ***
Comment 79 Nate Graham 2019-03-16 11:56:26 UTC
*** Bug 405480 has been marked as a duplicate of this bug. ***
Comment 80 Nate Graham 2019-04-05 13:32:59 UTC
*** Bug 406173 has been marked as a duplicate of this bug. ***
Comment 81 Nate Graham 2019-04-05 13:33:33 UTC
*** Bug 380111 has been marked as a duplicate of this bug. ***
Comment 82 Nate Graham 2019-04-23 17:28:48 UTC
*** Bug 406704 has been marked as a duplicate of this bug. ***
Comment 83 Christoph Feck 2019-05-21 18:45:18 UTC
*** Bug 407342 has been marked as a duplicate of this bug. ***
Comment 84 Nate Graham 2019-05-28 15:01:59 UTC
*** Bug 408008 has been marked as a duplicate of this bug. ***
Comment 85 Nate Graham 2019-05-28 15:07:17 UTC
*** Bug 408018 has been marked as a duplicate of this bug. ***
Comment 86 plasmapeleng 2019-06-03 18:17:21 UTC
Created attachment 120531 [details]
baloo_file_extractor log crash

I've finished one project and deleted the detritus. Log out / Log in. Crash.
Comment 87 Nate Graham 2019-06-05 14:53:19 UTC
*** Bug 408293 has been marked as a duplicate of this bug. ***
Comment 88 Nate Graham 2019-08-05 03:45:19 UTC
*** Bug 410134 has been marked as a duplicate of this bug. ***
Comment 89 Nate Graham 2019-08-05 03:45:41 UTC
*** Bug 409829 has been marked as a duplicate of this bug. ***
Comment 90 Nate Graham 2019-08-05 03:46:00 UTC
*** Bug 410494 has been marked as a duplicate of this bug. ***
Comment 91 Nate Graham 2019-08-05 03:47:15 UTC
We continue to amass duplicates even from users of rolling release distros with recent Frameworks versions and LMDB 0.9.23 or later. Re-opening. :(
Comment 92 Bernhard Seebass 2019-08-14 09:41:36 UTC
Baloo never used to work on my machine and it was impossible to search for files in dolphin.

Executing 'balooctl enable' printed the message 'KCrash: Application 'baloo_file' crashing...'

Today I found the hint to remove the baloo index file:

balooctl purge
balooctl enable

After a few seconds, the index was created and now file search in dolphin works (by name only, not by content, enabling content indexer lead to another KCrash).
Comment 93 Philippe ROUBACH 2019-08-14 09:53:52 UTC
i get no more crash since update(what one ?)

openSuse Argon 15.1
kde app 19.04.3
plasma 5.16.3
kde framework 5.60.0
qt 5.13.0
Comment 94 stakanov.s 2019-08-14 10:06:45 UTC
(In reply to Philippe ROUBACH from comment #93)
> i get no more crash since update(what one ?)
> 
> openSuse Argon 15.1
> kde app 19.04.3
> plasma 5.16.3
> kde framework 5.60.0
> qt 5.13.0

Well, with 15.1 and frameworks 5.55 (stock as all the rest of the system) you get first no crash after erasing the indexes and rebuilding them. But then the problem reappears in all its ugliness. So for Opensuse 15.1 (as long as you do not use some extra repos) you do have it to a full extend.
Comment 95 Philippe ROUBACH 2019-08-14 10:36:26 UTC
For those which does not know what openSuse Argon is, Argon is a Neon with opensuse basement. Then we get permanently last kde updates as with Neon

And yes crash did not appear again after recreating baloo index by deleting all about baloo in ~/.config folder and ~/.local/share/
Comment 96 plasmapeleng 2019-08-14 10:51:54 UTC
what helped in my case was deleting index file @ ~/.local/share/baloo/ and re indexing the hard drive. it took baloo 2-3 hours to accomplish this task.
Comment 97 stakanov.s 2019-08-14 11:01:04 UTC
(In reply to plasmapeleng from comment #96)
> what helped in my case was deleting index file @ ~/.local/share/baloo/ and
> re indexing the hard drive. it took baloo 2-3 hours to accomplish this task.

yes, this worked in my case but only a few weeks. Now I am back to the original misery. Unfortunately the bugfix was not backported to Leap 15.1 (maybe lack of motivation or personnel) and so the workaround is not long term. Unfortunately.
Comment 98 plasmapeleng 2019-08-14 11:51:18 UTC
(In reply to stakanov from comment #97)
> (In reply to plasmapeleng from comment #96)
> > what helped in my case was deleting index file @ ~/.local/share/baloo/ and
> > re indexing the hard drive. it took baloo 2-3 hours to accomplish this task.
> 
> yes, this worked in my case but only a few weeks. Now I am back to the
> original misery. Unfortunately the bugfix was not backported to Leap 15.1
> (maybe lack of motivation or personnel) and so the workaround is not long
> term. Unfortunately.

that's annoying indeed. have no idea what the deal is though. was a bit nervous after the initial install. failed to index the drive properly by the first runs. we'll see, have no problems with baloo so far
Comment 99 bulve.rec 2019-08-14 21:26:15 UTC
Created attachment 122125 [details]
New crash information added by DrKonqi

baloo_file (5.55.0) using Qt 5.9.7

- What I was doing when the application crashed:
Anything thats related with search and indexing, when system starts indexing it just crashing when you loged in to your account. That's happening since brand new install Leap 15. Still same problem untill today with 15.1 Have to use other search app.

-- Backtrace (Reduced):
#8  0x00007f9c648d28b2 in mdb_assert_fail (env=0x559add3b02a0, expr_txt=expr_txt@entry=0x7f9c648d433f "rc == 0", func=func@entry=0x7f9c648d4c78 <__func__.6935> "mdb_page_dirty", line=line@entry=2071, file=0x7f9c648d4320 "mdb.c") at mdb.c:1487
#9  0x00007f9c648c7d85 in mdb_page_dirty (txn=0x559add3b1700, mp=<optimized out>) at mdb.c:2071
#10 0x00007f9c648c8f6a in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7f9c5dd5b038, mc=<optimized out>) at mdb.c:2252
#11 0x00007f9c648c91d9 in mdb_page_touch (mc=mc@entry=0x7f9c5dd5b570) at mdb.c:2370
#12 0x00007f9c648cacaf in mdb_cursor_touch (mc=mc@entry=0x7f9c5dd5b570) at mdb.c:6273
Comment 100 plasmapeleng 2019-08-15 12:18:46 UTC
(In reply to plasmapeleng from comment #98)
> (In reply to stakanov from comment #97)
> > (In reply to plasmapeleng from comment #96)
> > > what helped in my case was deleting index file @ ~/.local/share/baloo/ and
> > > re indexing the hard drive. it took baloo 2-3 hours to accomplish this task.
> > 
> > yes, this worked in my case but only a few weeks. Now I am back to the
> > original misery. Unfortunately the bugfix was not backported to Leap 15.1
> > (maybe lack of motivation or personnel) and so the workaround is not long
> > term. Unfortunately.
> 
> that's annoying indeed. have no idea what the deal is though. was a bit
> nervous after the initial install. failed to index the drive properly by the
> first runs. we'll see, have no problems with baloo so far

yes, you are right, i confirm. baloo has crashed. to bring it to senses i've disabled "index file content" in the factory state. now index file @ ~/.local/share/baloo/ is some 45 Mb instead of 1.3 Gb and the initial indexing was almost instant.
Comment 101 Nate Graham 2019-08-15 21:05:01 UTC
*** Bug 410916 has been marked as a duplicate of this bug. ***
Comment 102 Stefan Brüns 2019-08-22 23:17:12 UTC
*** Bug 411139 has been marked as a duplicate of this bug. ***
Comment 103 Stefan Brüns 2019-08-22 23:17:30 UTC
*** Bug 411064 has been marked as a duplicate of this bug. ***
Comment 104 Stefan Brüns 2019-08-22 23:17:46 UTC
*** Bug 411192 has been marked as a duplicate of this bug. ***
Comment 105 marty 2019-08-23 02:03:02 UTC
Created attachment 122303 [details]
attachment-23301-0.html

See and try out options suggested here (worked to solve my baloo_file crash
problem) : https://bbs.archlinux.org/viewtopic.php?id=193169

On Thu, Aug 22, 2019 at 6:17 PM Stefan Brüns <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=389848
>
> Stefan Brüns <stefan.bruens@rwth-aachen.de> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |pedrogron77@gmail.com
>
> --- Comment #104 from Stefan Brüns <stefan.bruens@rwth-aachen.de> ---
> *** Bug 411192 has been marked as a duplicate of this bug. ***
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 106 Stefan Brüns 2019-09-06 23:08:02 UTC
*** Bug 411660 has been marked as a duplicate of this bug. ***
Comment 107 Nate Graham 2019-09-12 15:56:59 UTC
*** Bug 411706 has been marked as a duplicate of this bug. ***
Comment 108 Nate Graham 2019-09-12 16:07:39 UTC
*** Bug 411839 has been marked as a duplicate of this bug. ***
Comment 109 Nate Graham 2019-10-07 00:25:47 UTC
*** Bug 412567 has been marked as a duplicate of this bug. ***
Comment 110 Nate Graham 2019-10-07 03:01:39 UTC
*** Bug 412359 has been marked as a duplicate of this bug. ***
Comment 111 Nate Graham 2019-10-09 20:00:53 UTC
*** Bug 412780 has been marked as a duplicate of this bug. ***
Comment 112 Nate Graham 2019-10-16 22:03:52 UTC
*** Bug 413060 has been marked as a duplicate of this bug. ***
Comment 113 Nate Graham 2019-10-27 23:08:35 UTC
*** Bug 413289 has been marked as a duplicate of this bug. ***
Comment 114 Nate Graham 2019-10-27 23:28:44 UTC
*** Bug 413421 has been marked as a duplicate of this bug. ***
Comment 115 Nate Graham 2019-10-28 18:05:57 UTC
*** Bug 413558 has been marked as a duplicate of this bug. ***
Comment 116 Nate Graham 2019-11-04 17:56:38 UTC
*** Bug 413797 has been marked as a duplicate of this bug. ***
Comment 117 Nate Graham 2019-11-04 18:17:48 UTC
*** Bug 413773 has been marked as a duplicate of this bug. ***
Comment 118 Francisco Cribari 2019-11-13 17:47:40 UTC
Created attachment 123898 [details]
New crash information added by DrKonqi

baloo_file (5.64.0) using Qt 5.13.2

- What I was doing when the application crashed:

The crash happens at every single login. 

- Unusual behavior I noticed:

Crash

- Custom settings of the application:

No custom settings. Crash happens with the vailla kernel and also with the zen kernel. I use the Breeze theme and no custom settings.

-- Backtrace (Reduced):
#13 0x00007fa7477be619 in mdb_cursor_put () from /usr/lib/liblmdb.so
#14 0x00007fa7477c14ab in mdb_put () from /usr/lib/liblmdb.so
#15 0x00007fa7492d0b7a in Baloo::DocumentTimeDB::put(unsigned long long, Baloo::DocumentTimeDB::TimeInfo const&) () from /usr/lib/libKF5BalooEngine.so.5
#16 0x00007fa7492f7a95 in Baloo::WriteTransaction::replaceDocument(Baloo::Document const&, QFlags<Baloo::DocumentOperation>) () from /usr/lib/libKF5BalooEngine.so.5
#17 0x00007fa7492ea695 in Baloo::Transaction::replaceDocument(Baloo::Document const&, QFlags<Baloo::DocumentOperation>) () from /usr/lib/libKF5BalooEngine.so.5
Comment 119 Nate Graham 2019-11-19 16:15:05 UTC
*** Bug 405101 has been marked as a duplicate of this bug. ***
Comment 120 Nate Graham 2019-11-19 16:15:17 UTC
*** Bug 414240 has been marked as a duplicate of this bug. ***
Comment 121 Nate Graham 2019-11-22 18:19:00 UTC
*** Bug 414397 has been marked as a duplicate of this bug. ***
Comment 122 vortex 2019-12-02 17:28:35 UTC
Created attachment 124273 [details]
New crash information added by DrKonqi

baloo_file (5.64.0) using Qt 5.13.1

Just logged into KDE and was greetet with the Crash Dialog of Ballo, happens since a long time now, I just decited to fianly send an error report because it is still not fixed after month.

-- Backtrace (Reduced):
#8  0x00007fc3c31416f3 in mdb_assert_fail (env=0x56209e87cc70, expr_txt=expr_txt@entry=0x7fc3c314302f "rc == 0", func=func@entry=0x7fc3c3143978 <__func__.7210> "mdb_page_dirty", line=line@entry=2127, file=0x7fc3c3143010 "mdb.c") at mdb.c:1542
#9  0x00007fc3c3136435 in mdb_page_dirty (mp=<optimized out>, txn=0x56209e87e070) at mdb.c:2114
#10 mdb_page_dirty (txn=0x56209e87e070, mp=<optimized out>) at mdb.c:2114
#11 0x00007fc3c3137676 in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7fc3bfa1de78, mc=<optimized out>) at mdb.c:2308
#12 0x00007fc3c31378b3 in mdb_page_touch (mc=mc@entry=0x7fc3bfa1e3b0) at mdb.c:2495
Comment 123 Marian 2019-12-10 21:22:55 UTC
Same Problem.

Application: baloo_file_extractor (5.64.0)

Qt Version: 5.13.2
Frameworks Version: 5.64.0
Operating System: Linux 4.20.17-042017-generic x86_64
Distribution: KDE neon User Edition 5.17

-- Information about the crash:
Error message after login.

The crash can be reproduced every time.

-- Backtrace:
Application: Extraktor súborov Baloo (baloo_file_extractor), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa242f5fc80 (LWP 2379))]

Thread 3 (Thread 0x7fa22f5d1700 (LWP 2398)):
#0  0x00007fa23fa25bf9 in __GI___poll (fds=0x7fa22801a8e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fa23c0ea5c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa23c0ea6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa240378b9b in QEventDispatcherGlib::processEvents (this=0x7fa228000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fa24031906a in QEventLoop::exec (this=this@entry=0x7fa22f5d0d70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007fa2401343aa in QThread::exec (this=this@entry=0x7fa241fa6d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:531
#6  0x00007fa241d2f0e5 in QDBusConnectionManager::run (this=0x7fa241fa6d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#7  0x00007fa240135b52 in QThreadPrivate::start (arg=0x7fa241fa6d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:360
#8  0x00007fa23e28d6db in start_thread (arg=0x7fa22f5d1700) at pthread_create.c:463
#9  0x00007fa23fa3288f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fa234968700 (LWP 2391)):
#0  0x00007fa23fa25bf9 in __GI___poll (fds=0x7fa234967ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fa23bc79747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fa23bc7b36a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fa23774de10 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fa240135b52 in QThreadPrivate::start (arg=0x559965564f60) at thread/qthread_unix.cpp:360
#5  0x00007fa23e28d6db in start_thread (arg=0x7fa234968700) at pthread_create.c:463
#6  0x00007fa23fa3288f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fa242f5fc80 (LWP 2379)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007fa23f951801 in __GI_abort () at abort.c:79
#8  0x00007fa23ec3d932 in ?? () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#9  0x00007fa23ec327b5 in ?? () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#10 0x00007fa23ec339bb in ?? () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#11 0x00007fa23ec33c29 in ?? () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#12 0x00007fa23ec35854 in ?? () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#13 0x00007fa23ec389ee in mdb_cursor_put () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#14 0x00007fa23ec3b72b in mdb_put () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#15 0x00007fa2423db60c in Baloo::PositionDB::put (this=this@entry=0x7fff97965340, term=..., list=...) at ./src/engine/positiondb.cpp:82
#16 0x00007fa2423ed16e in Baloo::WriteTransaction::commit (this=0x5599655bf4e0) at ./src/engine/writetransaction.cpp:333
#17 0x00007fa2423e3dd1 in Baloo::Transaction::commit (this=0x5599655c5eb0) at ./src/engine/transaction.cpp:304
#18 0x00005599650132f4 in Baloo::App::processNextFile (this=0x7fff97965b10) at ./src/file/extractor/app.cpp:119
#19 0x00007fa2403586b4 in QtPrivate::QSlotObjectBase::call (a=0x7fff979654c0, r=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#20 QSingleShotTimer::timerEvent (this=0x5599655da200) at kernel/qtimer.cpp:318
#21 0x00007fa24034c3eb in QObject::event (this=0x5599655da200, e=<optimized out>) at kernel/qobject.cpp:1282
#22 0x00007fa24111feac in QApplicationPrivate::notify_helper (this=this@entry=0x55996553d120, receiver=receiver@entry=0x5599655da200, e=e@entry=0x7fff97965800) at kernel/qapplication.cpp:3703
#23 0x00007fa2411274b0 in QApplication::notify (this=0x7fff97965ae0, receiver=0x5599655da200, e=0x7fff97965800) at kernel/qapplication.cpp:3449
#24 0x00007fa24031af08 in QCoreApplication::notifyInternal2 (receiver=0x5599655da200, event=0x7fff97965800) at kernel/qcoreapplication.cpp:1095
#25 0x00007fa240378009 in QTimerInfoList::activateTimers (this=0x55996559c930) at kernel/qtimerinfo_unix.cpp:643
#26 0x00007fa2403787d1 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:183
#27 0x00007fa23c0ea417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fa23c0ea650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fa23c0ea6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fa240378b7f in QEventDispatcherGlib::processEvents (this=0x559965549a20, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#31 0x00007fa24031906a in QEventLoop::exec (this=this@entry=0x7fff97965a50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#32 0x00007fa2403223e0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1403
#33 0x0000559965011c5d in main (argc=<optimized out>, argv=<optimized out>) at ./src/file/extractor/main.cpp:59
Comment 124 Ismael Asensio 2019-12-21 22:27:14 UTC
*** Bug 415416 has been marked as a duplicate of this bug. ***
Comment 125 Ismael Asensio 2019-12-23 14:07:18 UTC
*** Bug 412847 has been marked as a duplicate of this bug. ***
Comment 126 pkjdje 2019-12-23 16:02:09 UTC
HI,
Due to several kubuntu distro updates since my origonal bug
report and the lack of errors recieved concerning Balloo.
Although I would not say the origonal bug is fixed, it does
not seem evident in a new Minimal install of Kubuntu 19.10.
Whether this is  due to updates or different baloo packages
used  in K19.10 I cannot say.

Unfortunately during upgrades I have lost my origonal bug
report and details,
However, I hope you can at least say the bug does not seem
to affect Kubuntu 19.10 Minimal,

I would also appreciate my removal from the cc list for
this bug,

Thanks

On Mon, 23 Dec 2019 14:07:18 +0000
"Ismael Asensio" <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=389848
> 
> Ismael Asensio <isma.af@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|
> |jcbissauge@gmail.com
> 
> --- Comment #125 from Ismael Asensio <isma.af@gmail.com>
> --- *** Bug 412847 has been marked as a duplicate of this
> bug. ***
>
Comment 127 Philippe ROUBACH 2019-12-23 16:37:54 UTC
Problem has not occurred again since 2019-08-14 (see comment #93 and #95) and 
openSuse Argon 15.1
kde app 19.04.3
plasma 5.16.3
kde framework 5.60.0
qt 5.13.0

till now 2019-12-23 and
openSuse Argon 15.1
kde app 19.12.0
plasma 5.17.5
kde framework 5.65.0
qt 5.13.1
Comment 128 markuss 2019-12-27 08:30:55 UTC
I've got the crash recently but a "balooctl purge" command to rebuild the index fixed it for me. Seems like Baloo doesn't like it when there's some data corrupted or so.
Comment 129 webadm 2020-01-15 08:55:34 UTC
Created attachment 125138 [details]
New crash information added by DrKonqi

baloo_file_extractor (5.62.0) using Qt 5.12.4

- What I was doing when the application crashed: Booting the system

- Unusual behavior I noticed: 1) Wallpaper change; 2) Multiple Error notifications

- Custom settings of the application: Don't know. It's the first time I have been noticed about Baloo. Don't don't what it does

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007fabd7fde899 in __GI_abort () at abort.c:79
[...]
#13 0x00007fabd7d0c4db in mdb_cursor_put () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#14 0x00007fabd7d0f2db in mdb_put () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#15 0x00007fabd97283e5 in Baloo::DocumentDB::put(unsigned long long, QVector<QByteArray> const&) () from /usr/lib/x86_64-linux-gnu/libKF5BalooEngine.so.5
Comment 130 Nate Graham 2020-02-12 21:45:54 UTC
*** Bug 417348 has been marked as a duplicate of this bug. ***
Comment 131 Nate Graham 2020-02-12 22:00:48 UTC
*** Bug 417398 has been marked as a duplicate of this bug. ***
Comment 132 Nate Graham 2020-02-16 21:11:57 UTC
*** Bug 417717 has been marked as a duplicate of this bug. ***
Comment 133 Denis Tolstov 2020-02-21 18:09:28 UTC
Created attachment 126267 [details]
New crash information added by DrKonqi

baloo_file_extractor (5.64.0) using Qt 5.13.2

- What I was doing when the application crashed:

Logged into Plasma X11 and immediately got a baloo_file crash. Logged out, logged into Plasma Wayland and got the same crash. This isn't the first time -- baloo_file starts crashing each month or so until I wipe its database at ~/.local/share/baloo/index .

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007f2196284536 in __GI_abort () at abort.c:79
#8  0x00007f2195fb073a in mdb_assert_fail (env=0x560ec71cd000, expr_txt=expr_txt@entry=0x7f2195fb2250 "IS_BRANCH(mc->mc_pg[mc->mc_top])", func=func@entry=0x7f2195fb28f0 <__func__.8090> "mdb_cursor_sibling", line=line@entry=5837, file=0x7f2195fb2010 "mdb.c") at mdb.c:1542
#9  0x00007f2195fa57bf in mdb_cursor_sibling (mc=mc@entry=0x7ffea12f0970, move_right=move_right@entry=1) at mdb.c:5403
#10 0x00007f2195facc62 in mdb_cursor_del0 (mc=0x7ffea12f0970) at mdb.c:8480
Comment 134 Nate Graham 2020-02-22 05:43:40 UTC
*** Bug 417970 has been marked as a duplicate of this bug. ***
Comment 135 Nate Graham 2020-02-22 05:44:14 UTC
*** Bug 417976 has been marked as a duplicate of this bug. ***
Comment 136 Ian Silvester 2020-04-05 16:43:30 UTC
Application: baloo_file_extractor (5.67.0)

Qt Version: 5.13.2
Frameworks Version: 5.67.0
Operating System: Linux 4.19.52-gentoo-FC.01 x86_64
Distribution: "Gentoo Base System release 2.6"


I'm hit by this same bug. Rather than add my backtrace, here's what I get in the console when I issue 'balooctl enable':

mdb.c:2127: Assertion 'rc == 0' failed in mdb_page_dirty()
KCrash: Attempting to start /usr/bin/baloo_file from kdeinit
sock_file=/var/run/user/1000/kdeinit5__0
KCrash: Application 'baloo_file' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/var/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Exception', disabling...
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...
QSocketNotifier: Invalid socket 16 and type 'Read', disabling...
Comment 137 Nate Graham 2020-04-15 03:23:00 UTC
*** Bug 419917 has been marked as a duplicate of this bug. ***
Comment 138 Nate Graham 2020-04-15 15:43:26 UTC
*** Bug 418926 has been marked as a duplicate of this bug. ***
Comment 139 Aayush Agarwal 2020-04-17 00:30:35 UTC
What does the NOR in "Importance: NOR crash" mean?
Comment 140 Nate Graham 2020-04-27 21:44:36 UTC
*** Bug 420677 has been marked as a duplicate of this bug. ***
Comment 141 Nate Graham 2020-04-27 21:47:00 UTC
*** Bug 420615 has been marked as a duplicate of this bug. ***
Comment 142 Christoph Feck 2020-05-06 21:27:38 UTC
*** Bug 420296 has been marked as a duplicate of this bug. ***
Comment 143 Nate Graham 2020-06-10 21:11:01 UTC
*** Bug 421728 has been marked as a duplicate of this bug. ***
Comment 144 Nate Graham 2020-06-12 01:05:10 UTC
*** Bug 422483 has been marked as a duplicate of this bug. ***
Comment 145 Nate Graham 2020-08-21 15:53:02 UTC
*** Bug 425484 has been marked as a duplicate of this bug. ***
Comment 146 Nate Graham 2020-08-22 21:06:08 UTC
I'm seeing at least three of these every day. :( Anything I can do to debug, Stefan?
Comment 147 Stefan Brüns 2020-08-25 13:02:12 UTC
(In reply to Nate Graham from comment #146)
> I'm seeing at least three of these every day. :( Anything I can do to debug,
> Stefan?

And I haven't seen any of these crashes on any of my systems - IIRC, ever. I am indexing most of my disk, though I have excluded sources, so my index is definitely not small either.

There is no clear pattern. Purging the DB seems to help (which indicates the internal structure got broken), but then sometimes the problem reappears.
Comment 148 Porkepix 2020-08-25 15:27:50 UTC
(In reply to Stefan Brüns from comment #147)
> (In reply to Nate Graham from comment #146)
> > I'm seeing at least three of these every day. :( Anything I can do to debug,
> > Stefan?
> 
> And I haven't seen any of these crashes on any of my systems - IIRC, ever. I
> am indexing most of my disk, though I have excluded sources, so my index is
> definitely not small either.
> 
> There is no clear pattern. Purging the DB seems to help (which indicates the
> internal structure got broken), but then sometimes the problem reappears.


Well, to be honest, I never commented nor opened new bug as it seemed to be linked to this one and I saw some threads of people telling there was no point in opening anything new, and it might even be bothersome because devs were aware of the issue.

But to give you an idea of how much of a problem this can be, I went through months on my Linux with some random freezes of the system, most of the time leading to full crash of the OS when it didn't un-freeze after several *minutes*.

This stopped the day I disabled baloo from systemd.
If this may help you, I'm not an exclusive KDE user, have several DE/WM installed and sometimes jump from one to another, and it seems that services like Baloo are started, whether KDE is started or not rather than being part of it, so may it conflict with other similar services such as Gnome's one? Can't tell, I don't know enough of all of this. But imho, this is clearly worth investigating when we talk about minutes OS freezes and most of the time full OS crashes.

Unfortunately, the crashes were so sudden that I never found anything useful from journald nor dmesg.
Comment 149 Christoph Feck 2020-09-28 09:49:57 UTC
*** Bug 426195 has been marked as a duplicate of this bug. ***
Comment 150 Nate Graham 2020-10-16 14:17:20 UTC
*** Bug 427742 has been marked as a duplicate of this bug. ***
Comment 151 Nate Graham 2020-10-26 15:45:06 UTC
*** Bug 428123 has been marked as a duplicate of this bug. ***
Comment 152 Nate Graham 2020-10-26 15:56:11 UTC
*** Bug 386702 has been marked as a duplicate of this bug. ***
Comment 153 Nate Graham 2020-10-26 15:56:29 UTC
*** Bug 413485 has been marked as a duplicate of this bug. ***
Comment 154 Nate Graham 2020-10-26 15:59:05 UTC
*** Bug 419346 has been marked as a duplicate of this bug. ***
Comment 155 Nate Graham 2020-10-26 16:03:20 UTC
*** Bug 427480 has been marked as a duplicate of this bug. ***
Comment 156 BingMyBong 2020-10-27 07:25:04 UTC
(In reply to Nate Graham from comment #155)
> *** Bug 427480 has been marked as a duplicate of this bug. ***

good work with dealing with all the duplicates. this  started in 2018 - anyone know why its not being dealt with?  The number of duplicates suggest its a bit of a widespread issue.
Comment 157 Don Curtis 2020-10-27 09:26:10 UTC
(In reply to BingMyBong from comment #156)
> good work with dealing with all the duplicates. this  started in 2018 -
> anyone know why its not being dealt with?  The number of duplicates suggest
> its a bit of a widespread issue.

When I added my first crash dump in 2018, the system was as follows:
 ** Qt Version: 5.6.2 upgraded to 5.9.4;
 ** Frameworks Version: 5.32.0 upgraded to 5.45.0;
 ** (Distribution upgrade from openSUSE Leap 42.3 to Leap 15.0).

Currently, with:
 ** Qt version: 5.12.7
 ** Frameworks version: 5.71.0
 ** Plasma version: 5.18.5
 ** Baloo version: 5.71.0
 ** openSUSE Leap 15.2

Baloo is running smoothly with the following status:

 > LANG=C balooctl status
Baloo File Indexer is running
Indexer state: Idle
Total files indexed: 76,318
Files waiting for content indexing: 0
Files failed to index: 0
Current size of index is 41.48 MiB
 >
Comment 158 Nate Graham 2020-10-27 11:52:09 UTC
The problem is that it's mostly an upstream issue in LMDB itself, which is not a KDE product. Stefan tried to fix it with an upstream patch, but apparently it did not work. :(

I don't know if there's any way we can work around it in Baloo, but I'm hardly a technical expert in database code.
Comment 159 Nate Graham 2020-10-27 12:24:24 UTC
I have a filed a new upstream bug report and will follow up there: https://bugs.openldap.org/show_bug.cgi?id=9378
Comment 160 Nate Graham 2020-10-27 18:03:13 UTC
The LMDB developers have responded and are asking for an affected database file.

For anybody who can reproduce this issue, I have three questions:
1. Is it reliable? If you restart Baloo, does it immediately crash again?
2. Is your database file below, say, 100 Mb? `balooctl status` will tell you.
3. Are you willing to upload your database to a public location so the LMDB developers can debug it? It's located at ~/.local/share/baloo/index
Comment 161 Porkepix 2020-10-27 19:04:23 UTC
(In reply to Nate Graham from comment #160)
> The LMDB developers have responded and are asking for an affected database
> file.
> 
> For anybody who can reproduce this issue, I have three questions:
> 1. Is it reliable? If you restart Baloo, does it immediately crash again?
> 2. Is your database file below, say, 100 Mb? `balooctl status` will tell you.
> 3. Are you willing to upload your database to a public location so the LMDB
> developers can debug it? It's located at ~/.local/share/baloo/index

For me, the crashes were kinda random, but (I'm not sure anymore), could happen during high usage computer, causing micro-freezes, or intensive writes (might be related, due to swap), especially, I sometimes suspected it would kind of dislike files that were only partially written and there constantly "reevaluated". Only bare feeling as I have no knowledge on how does it work here. If this might be related, the disk is a SSD and is fully encrypted through LUKS, which might cause read and write to be much more CPU-intensive.

The file currently weight 2.4G. I disabled baloo quite a long time ago now, as you can see:
.rw-r--r--  2.4G clement 22 Feb  0:33  /home/clement/.local/share/baloo/index

It would be hard to upload because, well, I would need to control content for privacy reasons to sanitize data, but it both seems it's a huge amount, and that I have no knowledge of data structure. But I can provide more information if I'm told how to do so.

Looking at what you said above, the size is a lot bigger than it should be, so, maybe if the bug was considered to fixed and it was a database corruption the solution would be to wipe that file out?
Comment 162 Papoteur 2020-10-28 14:21:26 UTC
On my side, I have luks encrypted home partition, too. The index file is 1Go heavy and is on a professional computer, thus I can't deliver it.
Comment 163 Steven Swart 2020-10-28 14:36:31 UTC
Hi All!

I am on this thread because I reported the same bug. Since then, there
have been a lot of duplicates.

On my side, I am running OpenSUSE Tumbleweed on my media server. It's
a rolling release, and there are frequent updates, pretty much daily,
most of the time.

Many of these updates require a reboot.

I was only ever getting this problem after I had run a distribution
update -"zypper dup", and then rebooted.

For a while, I was frequently getting the same error, but not every
time. I don't recall seeing it for the past few weeks. I will report
it if I see it again.

Tumbleweed is pretty bleeding-edge as far as the kernel and system
libraries are concerned, I think SUSE uses us a beta-testers for their
commercial platforms.

But, this being the case, there is a possibility that the bug has
already been fixed, and just needs to roll out to the majority of
distros.

Kind regards,
Steven.

On Wed, 28 Oct 2020 at 16:21, Papoteur <bugzilla_noreply@kde.org> wrote:
>
> https://bugs.kde.org/show_bug.cgi?id=389848
>
> --- Comment #162 from Papoteur <yves.brungard_mageia@gadz.org> ---
> On my side, I have luks encrypted home partition, too. The index file is 1Go
> heavy and is on a professional computer, thus I can't deliver it.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 164 jcb 2020-10-28 19:16:41 UTC
Hi,
my database is indeed only 28 MB, and I would be OK to give it.

It would be worth to check together that I correctly test to reproduce the crash : Is this cmd & output below relevant ?

> baloo_file
mdb.c:2127: Assertion 'rc == 0' failed in mdb_page_dirty()
KCrash: Attempting to start /usr/bin/baloo_file
KCrash: Application 'baloo_file' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
Failed to register via dbus. Another instance is running

Regards
Comment 165 Steven Swart 2020-11-01 21:05:51 UTC
Good day, all!

Sad to report that after a "zypper dup" and reboot yesterday, still
got the same error.

I couldn't report the stacktrace via the OS reporting mechanism, the
message said that there was no email address associated with the
component.

Kind regards,
Steven.

On Wed, 28 Oct 2020 at 16:36, Steven Swart <steven.swart@gmail.com> wrote:
>
> Hi All!
>
> I am on this thread because I reported the same bug. Since then, there
> have been a lot of duplicates.
>
> On my side, I am running OpenSUSE Tumbleweed on my media server. It's
> a rolling release, and there are frequent updates, pretty much daily,
> most of the time.
>
> Many of these updates require a reboot.
>
> I was only ever getting this problem after I had run a distribution
> update -"zypper dup", and then rebooted.
>
> For a while, I was frequently getting the same error, but not every
> time. I don't recall seeing it for the past few weeks. I will report
> it if I see it again.
>
> Tumbleweed is pretty bleeding-edge as far as the kernel and system
> libraries are concerned, I think SUSE uses us a beta-testers for their
> commercial platforms.
>
> But, this being the case, there is a possibility that the bug has
> already been fixed, and just needs to roll out to the majority of
> distros.
>
> Kind regards,
> Steven.
>
> On Wed, 28 Oct 2020 at 16:21, Papoteur <bugzilla_noreply@kde.org> wrote:
> >
> > https://bugs.kde.org/show_bug.cgi?id=389848
> >
> > --- Comment #162 from Papoteur <yves.brungard_mageia@gadz.org> ---
> > On my side, I have luks encrypted home partition, too. The index file is 1Go
> > heavy and is on a professional computer, thus I can't deliver it.
> >
> > --
> > You are receiving this mail because:
> > You are on the CC list for the bug.
Comment 166 Nate Graham 2020-11-09 17:39:06 UTC
*** Bug 428810 has been marked as a duplicate of this bug. ***
Comment 167 Nate Graham 2020-12-11 19:09:25 UTC
*** Bug 430113 has been marked as a duplicate of this bug. ***
Comment 168 Nate Graham 2020-12-16 21:24:23 UTC
*** Bug 430455 has been marked as a duplicate of this bug. ***
Comment 169 Nate Graham 2021-01-05 14:35:03 UTC
*** Bug 430731 has been marked as a duplicate of this bug. ***
Comment 170 aabbbbab 2021-01-06 11:32:23 UTC
Solved
Used Procedure:   
- Open "Configuracion del Sistema" > Espacio de trabajo > "Buscar" > "Busqueda de archivos".
  Unselect "Activar Busqueda de archivos"
  Unselect "indexar también contenido de los archivos".
    Click "Apply" 

- Go to /home/user/.local/share/baloo/
     Delete all

- Restart
No errors

probable error: corrupted baloo bdd
Comment 171 laurie jarden 2021-02-10 07:03:39 UTC
I did as suggested in comment 170, performed a restart, cold boot & a logout/login as this is usually I found the 'report the bug messages'.
No crashes or bug messages since.
Thanks for the help & replies.
Laurie J.
Comment 172 Nate Graham 2021-05-16 13:47:22 UTC
*** Bug 437191 has been marked as a duplicate of this bug. ***
Comment 173 Nate Graham 2021-06-08 22:38:16 UTC
*** Bug 437974 has been marked as a duplicate of this bug. ***
Comment 174 Nate Graham 2021-08-02 20:34:03 UTC
*** Bug 440474 has been marked as a duplicate of this bug. ***
Comment 175 Vitalii Sh. 2021-09-22 10:15:31 UTC
Created attachment 141789 [details]
New crash information added by DrKonqi

baloo_file (5.68.0) using Qt 5.12.8

- What I was doing when the application crashed:
Log In
- Custom settings of the application:
Issue started after I install Wayland, tested it, and after removed it.

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007f9ea55fa859 in __GI_abort () at abort.c:79
[...]
#14 0x00007f9ea4c78a80 in mdb_txn_commit () from /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#15 0x00007f9ea6178ca7 in Baloo::Transaction::commit() () from /usr/lib/x86_64-linux-gnu/libKF5BalooEngine.so.5
[...]
#19 0x00007f9ea4cdd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
Comment 176 Nate Graham 2023-02-12 22:35:51 UTC
*** Bug 465529 has been marked as a duplicate of this bug. ***
Comment 177 Nate Graham 2023-04-03 23:13:21 UTC
*** Bug 467485 has been marked as a duplicate of this bug. ***
Comment 178 Howard Chu 2023-12-23 18:33:45 UTC
Copying from https://bugs.openldap.org/show_bug.cgi?id=9378

Thanks to assistance from another user, we've made some progress setting up a KDE test environment to reproduce this issue. Using the replay logging facility in this branch https://git.openldap.org/hyc/openldap/-/tree/mplay09?ref_type=heads we collected a trace from one of the crash instances. The suspicious part is excerpted here:

>mdb_put: 0x5638e7e58130, 2, 8[646f6d696e616e74], 16, 0
>mdb_put: 0x5638e7e58130, 3, 8[646f6d696e616e74], 24, 0
>mdb_put: 0x5638e7e58130, 2, 8[74656c6c74616c65], 8, 0
>mdb_put: 0x5638e7e58130, 3, 8[74656c6c74616c65], 11, 0
>mdb_put: 0x5638e7e58130, 2, 3[747874], 56200, 0
>mdb_env_create: 0x559276b2ddc0
>mdb_env_set_maxdbs: 0x559276b2ddc0, 12
>mdb_env_set_mapsize: 0x559276b2ddc0, 274877906944
>mdb_env_open: 0x559276b2ddc0, /home/vm/.local/share/baloo/index, 16793600, 0664
>mdb_txn_begin: 0x559276b2ddc0, (nil), 0 = 0x559276b2f1c0
>mdb_dbi_open: 0x559276b2f1c0, postingdb, 262144 = 2
>mdb_dbi_open: 0x559276b2f1c0, positiondb, 262144 = 3
>mdb_dbi_open: 0x559276b2f1c0, docterms, 262152 = 4
>mdb_dbi_open: 0x559276b2f1c0, docfilenameterms, 262152 = 5
>mdb_dbi_open: 0x559276b2f1c0, docxatrrterms, 262152 = 6
>mdb_dbi_open: 0x559276b2f1c0, idtree, 262152 = 7
>mdb_dbi_open: 0x559276b2f1c0, idfilename, 262152 = 8
>mdb_dbi_open: 0x559276b2f1c0, documenttimedb, 262152 = 9
>mdb_dbi_open: 0x559276b2f1c0, documentdatadb, 262152 = 10
>mdb_dbi_open: 0x559276b2f1c0, indexingleveldb, 262152 = 11
>mdb_dbi_open: 0x559276b2f1c0, failediddb, 262152 = 12
>mdb_dbi_open: 0x559276b2f1c0, mtimedb, 262204 = 13
>mdb_txn_commit: 0x559276b2f1c0
>mdb_put: 0x5638e7e58130, 3, 3[747874], 91570, 0
>mdb_put: 0x5638e7e58130, 2, 2[6368], 464, 0
>mdb_put: 0x5638e7e58130, 3, 2[6368], 1286, 0
>mdb_put: 0x5638e7e58130, 2, 7[766172696f7573], 1440, 0
>mdb_put: 0x5638e7e58130, 3, 7[766172696f7573], 2282, 0

In the middle of txn 0x5638e7e58130 the init sequence occurs again, and all of the contents of this logfile are only being written by a single process. That means baloo_file has opened the same env twice in the same process, which is explicitly forbidden by the LMDB docs. http://www.lmdb.tech/doc/

Going to close this ticket as Invalid, it's a KDE bug and not an LMDB bug.
Comment 179 tagwerk19 2023-12-24 12:45:29 UTC
(In reply to Howard Chu from comment #178)
> ... Thanks to assistance from another user, we've made some progress setting up
> a KDE test environment to reproduce this issue. Using the replay logging ...
I'd say it's impressive that this has not been forgotten. Very many thanks!

Does this mean that there will be a way of logging writes so that we can troubleshoot any future cases? Baloo has changed quite a lot since this original report; maybe this bug is history, maybe it will reappear. It would be good to have a way of tracking what's happening at the DB level.

Thank you again!
Comment 180 Howard Chu 2023-12-24 16:12:11 UTC
The logging in the branch I referred to here https://git.openldap.org/hyc/openldap/-/tree/mplay09?ref_type=heads is only available when LMDB is compiled with -DMDB_DEBUG, and I haven't decided whether to actually merge that branch into a release or not. I suppose we may as well merge it, since it has no impact if MDB_DEBUG is not defined.
Comment 181 tagwerk19 2024-01-02 16:24:02 UTC
(In reply to Howard Chu from comment #180)
> ... I suppose we may as well merge it, since it has no impact if MDB_DEBUG is not defined ...
We'd need to run Baloo with a specially compiled LMDB to get the trace?

Yes, all the same, I can provide "Gentle Words of Encouragement" for the merge and many thanks to your "additional user". The more tools we have to troubleshoot, the better :-)
Comment 182 Howard Chu 2024-01-02 17:42:59 UTC
(In reply to tagwerk19 from comment #181)
> (In reply to Howard Chu from comment #180)
> > ... I suppose we may as well merge it, since it has no impact if MDB_DEBUG is not defined ...
> We'd need to run Baloo with a specially compiled LMDB to get the trace?

Yes. But that's easily done, just set LD_LIBRARY_PATH to pick up your debug build.
 
> Yes, all the same, I can provide "Gentle Words of Encouragement" for the
> merge and many thanks to your "additional user". The more tools we have to
> troubleshoot, the better :-)

Yeah, it will probably go into the next official release. But at this point there's not much else for us to do,
baloo is clearly breaking LMDB's writer lock. https://bugs.openldap.org/show_bug.cgi?id=9378#c18
Comment 183 Guillaume B. 2024-01-11 16:44:37 UTC
I had an issue similar to this recently, tell me if you need more traces

coredumpctl dump
           PID: 1495228 (baloo_file)
           UID: 1000 (geex)
           GID: 1000 (geex)
        Signal: 6 (ABRT)
     Timestamp: Thu 2024-01-11 01:46:59 CET (14h ago)
  Command Line: /usr/libexec/kf6/baloo_file
    Executable: /usr/libexec/kf6/baloo_file
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-baloo_file-1495228.scope
          Unit: user@1000.service
     User Unit: app-gnome-baloo_file-1495228.scope
         Slice: user-1000.slice
     Owner UID: 1000 (geex)
       Boot ID: 52ca0d584d194ccbbaa6db5f7762a1d6
    Machine ID: 0d084b96342343d6b1e021c0813ecb22
      Hostname: x2.local
       Storage: /var/lib/systemd/coredump/core.baloo_file.1000.52ca0d584d194ccbbaa6db5f7762a1d6.1495228.1704934019000000.zst (present)
  Size on Disk: 711.9K
       Message: Process 1495228 (baloo_file) of user 1000 dumped core.
                
                Stack trace of thread 1495501:
                #0  0x00007f4d460b33cc __pthread_kill_implementation (libc.so.6 + 0x853cc)
                #1  0x00007f4d460648b2 raise (libc.so.6 + 0x368b2)
                #2  0x00007f4d46f31967 _ZN6KCrash19defaultCrashHandlerEi (libKF6Crash.so.6 + 0x5967)
                #3  0x00007f4d46064960 __restore_rt (libc.so.6 + 0x36960)
                #4  0x00007f4d460b33cc __pthread_kill_implementation (libc.so.6 + 0x853cc)
                #5  0x00007f4d460648b2 raise (libc.so.6 + 0x368b2)
                #6  0x00007f4d46050464 abort (libc.so.6 + 0x22464)
                #7  0x00007f4d454ee15a mdb_assert_fail.constprop.0 (liblmdb.so.0.0.0 + 0x415a)
                #8  0x00007f4d454ee1b7 mdb_page_dirty.cold (liblmdb.so.0.0.0 + 0x41b7)
                #9  0x00007f4d454f2b76 mdb_page_alloc.isra.0 (liblmdb.so.0.0.0 + 0x8b76)
                #10 0x00007f4d454f2d9b mdb_page_touch (liblmdb.so.0.0.0 + 0x8d9b)
                #11 0x00007f4d454f4634 mdb_cursor_touch (liblmdb.so.0.0.0 + 0xa634)
                #12 0x00007f4d454f7ac0 mdb_cursor_put (liblmdb.so.0.0.0 + 0xdac0)
                #13 0x00007f4d454fa49f mdb_put (liblmdb.so.0.0.0 + 0x1049f)
                #14 0x00007f4d46d3bf5d _ZN5Baloo10DocumentDB3putEyRK5QListI10QByteArrayE (libKF6BalooEngine.so.6 + 0xff5d)
                #15 0x00007f4d46d55bd5 _ZN5Baloo16WriteTransaction15replaceDocumentERKNS_8DocumentE6QFlagsINS_17DocumentOperationEE (libKF6BalooEngine.so.6 + 0x29bd5)
                #16 0x0000000000416c93 _ZN5Baloo20UnindexedFileIndexer3runEv (baloo_file + 0x16c93)
                #17 0x00007f4d468dee45 _ZN17QThreadPoolThread3runEv (libQt6Core.so.6 + 0x2dee45)
                #18 0x00007f4d468da337 _ZN14QThreadPrivate5startEPv (libQt6Core.so.6 + 0x2da337)
                #19 0x00007f4d460b18da start_thread (libc.so.6 + 0x838da)
                #20 0x00007f4d4612d48c __clone3 (libc.so.6 + 0xff48c)
                
                Stack trace of thread 1495228:
                #0  0x00007f4d4612051f __poll (libc.so.6 + 0xf251f)
                #1  0x00007f4d453ad7af g_main_context_iterate_unlocked.constprop.0 (libglib-2.0.so.0 + 0x587af)
                #2  0x00007f4d453adeac g_main_context_iteration (libglib-2.0.so.0 + 0x58eac)
                #3  0x00007f4d469dfddc _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3dfddc)
                #4  0x00007f4d46781833 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x181833)
                #5  0x00007f4d4677e1d4 _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x17e1d4)
                #6  0x000000000040c0e2 main (baloo_file + 0xc0e2)
                #7  0x00007f4d460516b7 __libc_start_call_main (libc.so.6 + 0x236b7)
                #8  0x00007f4d46051775 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x23775)
                #9  0x000000000040c201 _start (baloo_file + 0xc201)
                
                Stack trace of thread 1495328:
                #0  0x00007f4d4612051f __poll (libc.so.6 + 0xf251f)
                #1  0x00007f4d453ad7af g_main_context_iterate_unlocked.constprop.0 (libglib-2.0.so.0 + 0x587af)
                #2  0x00007f4d453adeac g_main_context_iteration (libglib-2.0.so.0 + 0x58eac)
                #3  0x00007f4d469dfddc _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3dfddc)
                #4  0x00007f4d46781833 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x181833)
                #5  0x00007f4d46874efc _ZN7QThread4execEv (libQt6Core.so.6 + 0x274efc)
                #6  0x00007f4d46c9b4ea _ZN22QDBusConnectionManager3runEv (libQt6DBus.so.6 + 0x354ea)
                #7  0x00007f4d468da337 _ZN14QThreadPrivate5startEPv (libQt6Core.so.6 + 0x2da337)
                #8  0x00007f4d460b18da start_thread (libc.so.6 + 0x838da)
                #9  0x00007f4d4612d48c __clone3 (libc.so.6 + 0xff48c)
                ELF object binary architecture: AMD x86-64
Comment 184 Howard Chu 2024-01-11 16:52:01 UTC
(In reply to Guillaume B. from comment #183)
> I had an issue similar to this recently, tell me if you need more traces

There's nothing for anyone else to do for now. baloo needs to be fixed to stop deleting the lockfile on active LMDB databases.
Comment 185 Bug Janitor Service 2024-03-14 19:51:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/baloo/-/merge_requests/193
Comment 186 Christoph Cullmann 2024-03-14 20:34:45 UTC
*** Bug 481370 has been marked as a duplicate of this bug. ***
Comment 187 Christoph Cullmann 2024-03-14 20:34:50 UTC
*** Bug 478539 has been marked as a duplicate of this bug. ***
Comment 188 Christoph Cullmann 2024-03-14 20:35:05 UTC
*** Bug 474840 has been marked as a duplicate of this bug. ***
Comment 189 Christoph Cullmann 2024-03-14 20:35:09 UTC
*** Bug 473970 has been marked as a duplicate of this bug. ***
Comment 190 Christoph Cullmann 2024-03-14 20:40:50 UTC
*** Bug 481616 has been marked as a duplicate of this bug. ***
Comment 191 Christoph Cullmann 2024-04-07 14:24:28 UTC
Git commit 15083afb9671ec79eb2dbee4ef41a92556d154af by Christoph Cullmann.
Committed on 07/04/2024 at 14:22.
Pushed by cullmann into branch 'master'.

Don't kill the lock file, can lead to random corruption

If a process that writes the database is still running,
like an existing baloo_file_extractor, and one starts a new instance
of baloo_file, that one will remove the lock and now
two writers will use the same database without proper locking.

M  +0    -4    src/file/main.cpp

https://invent.kde.org/frameworks/baloo/-/commit/15083afb9671ec79eb2dbee4ef41a92556d154af
Comment 192 Christoph Cullmann 2024-04-11 19:46:16 UTC
*** Bug 485019 has been marked as a duplicate of this bug. ***