Bug 480633

Summary: Crash in Baloo::DocumentDataDB::del() / mdb_node_search
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Chi-Thanh Christopher Nguyen <chithanh>
Component: Baloo File DaemonAssignee: baloo-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash CC: christoph, nate, tagwerk19
Priority: NOR Keywords: drkonqi
Version: 5.113.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Chi-Thanh Christopher Nguyen 2024-01-31 21:48:16 UTC
Application: baloo_file_extractor (5.113.0)
 (Compiled from sources)
Qt Version: 5.15.12
Frameworks Version: 5.113.0
Operating System: Linux 6.6.13-gentoo x86_64
Windowing System: X11
Distribution: "Gentoo Linux"
DrKonqi: 5.27.10 [KCrashBackend]

-- Information about the crash:
Baloo constantly crashes and restarts when trying to index files, I believe playlist files.

The crash can be reproduced every time.

-- Backtrace:
Application: Baloo-Dateiinfosammler (baloo_file_extractor), signal: Bus error

[KCrash Handler]
#4  mdb_node_search (mc=mc@entry=0x7ffc3ed2a8e0, key=key@entry=0x7ffc3ed2acd0, exactp=exactp@entry=0x7ffc3ed2a7ec) at mdb.c:5367
#5  0x00007fceb438f420 in mdb_page_search_root (mc=0x7ffc3ed2a8e0, key=0x7ffc3ed2acd0, flags=0) at mdb.c:5557
#6  0x00007fceb438fdb5 in mdb_cursor_set (mc=mc@entry=0x7ffc3ed2a8e0, key=key@entry=0x7ffc3ed2acd0, data=data@entry=0x0, op=MDB_SET, exactp=exactp@entry=0x7ffc3ed2a8cc) at mdb.c:6175
#7  0x00007fceb4396aa4 in mdb_del0 (txn=0x556363f389b0, dbi=10, key=0x7ffc3ed2acd0, data=<optimized out>, flags=32) at mdb.c:8611
#8  0x00007fceb4bd2624 in Baloo::DocumentDataDB::del(unsigned long long) () from /usr/lib64/libKF5BalooEngine.so.5
#9  0x00007fceb4bed95b in Baloo::WriteTransaction::removeDocument(unsigned long long) () from /usr/lib64/libKF5BalooEngine.so.5
#10 0x00005563633653c4 in ?? ()
#11 0x0000556363366385 in ?? ()
#12 0x00007fceb40cb3a2 in ?? () from /usr/lib64/libQt5Core.so.5
#13 0x00007fceb40beeab in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#14 0x00007fceb4093f28 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#15 0x00007fceb40e4e69 in QTimerInfoList::activateTimers() () from /usr/lib64/libQt5Core.so.5
#16 0x00007fceb40e5731 in ?? () from /usr/lib64/libQt5Core.so.5
#17 0x00007fceb2f10e82 in ?? () from /usr/lib64/libglib-2.0.so.0
#18 0x00007fceb2f14077 in ?? () from /usr/lib64/libglib-2.0.so.0
#19 0x00007fceb2f1469c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#20 0x00007fceb40e5ac6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#21 0x00007fceb409294b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#22 0x00007fceb409accd in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#23 0x0000556363364440 in ?? ()
#24 0x00007fceb3846f0a in ?? () from /lib64/libc.so.6
#25 0x00007fceb3846fc5 in __libc_start_main () from /lib64/libc.so.6
#26 0x00005563633644b1 in ?? ()
[Inferior 1 (process 12251) detached]

Reported using DrKonqi
This report was filed against 'kde' because the product 'frameworks-baloo' could not be located in Bugzilla. Add it to drkonqi's mappings file!
Comment 1 tagwerk19 2024-02-06 23:48:30 UTC
(In reply to Chi-Thanh Christopher Nguyen from comment #0)
> #9  0x00007fceb4bed95b in Baloo::WriteTransaction::removeDocument(unsigned long long) () from /usr/lib64/libKF5BalooEngine.so.5
Looks as if it is crashing when trying to clean up after a deleted file...
Comment 2 Christoph Cullmann 2024-08-25 22:13:03 UTC
We try to not delete the lock file now, perhaps this was just the result of a
race condition because of the old lock file deletion.

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