Bug 392094 - Cannot enable baloo indexing
Summary: Cannot enable baloo indexing
Status: RESOLVED DUPLICATE of bug 389848
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.43.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-03-20 09:54 UTC by davide.nicoli95
Modified: 2018-04-14 02:00 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 davide.nicoli95 2018-03-20 09:54:54 UTC
Application: baloo_file (5.43.0)
 (Compiled from sources)
Qt Version: 5.7.1
Frameworks Version: 5.43.0
Operating System: Linux 4.14.12-gentoo x86_64
Distribution: "Gentoo Base System release 2.4.1"

-- Information about the crash:
- What I was doing when the application crashed:
Nothing, the crash happens whenever I start plasma or launch "balooctl enable" or "balooctl index *whatever*" from the terminal, even from outside the desktop environment, apparently indipendently from the other softwares being run (no VirtualBox or operations on files as in other bug reports).
- Unusual behavior I noticed:
The file search is unreliable (the file index is outdated, the last successful index belongs to several months ago).
Also "balooctl checkDb" crashes with an lmdb related error: "mdb.c: 5697: Assertion 'IS_LEAF(mp)' failed in mdb_cursor_next()"
- Custom settings of the application:
I am running a Gentoo system with custom compilation flags; lto and various optimizations are enabled system wide, except for packages dev-db/lmdb and kde-frameworks/baloo, which are compiled with:
- CFLAGS="-march=native -Og -ggdb -pipe"
- CXXFLAGS="${CFLAGS}"
- LDFLAGS="-Wl,--as-needed -Wl,-Og ${CFLAGS}"
The behaviour does not change with the above flags, anyway.

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".
84	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7ff47f59fc80 (LWP 1251))]

Thread 3 (Thread 0x7ff47e8b7700 (LWP 1253)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007ff484ed5ae0 in __GI_abort () at abort.c:89
#8  0x00007ff48385510d in mdb_assert_fail (env=0x563fa8571970, expr_txt=expr_txt@entry=0x7ff483857d72 "rc == 0", func=func@entry=0x7ff483858118 <__func__.7231> "mdb_page_dirty", file=file@entry=0x7ff483857d6c "mdb.c", line=line@entry=2065) at mdb.c:1481
#9  0x00007ff48384b7d4 in mdb_page_dirty (txn=txn@entry=0x563fa85a3000, mp=mp@entry=0x7fb470035e90) at mdb.c:2065
#10 0x00007ff48384da57 in mdb_page_alloc (mc=mc@entry=0x7ff47e8b6780, num=num@entry=1, mp=mp@entry=0x7ff47e8b6088) at mdb.c:2246
#11 0x00007ff48384db25 in mdb_page_touch (mc=mc@entry=0x7ff47e8b6780) at mdb.c:2364
#12 0x00007ff48384f3e5 in mdb_cursor_touch (mc=mc@entry=0x7ff47e8b6780) at mdb.c:6279
#13 0x00007ff4838520fa in mdb_cursor_put (mc=mc@entry=0x7ff47e8b6780, key=key@entry=0x7ff47e8b6980, data=data@entry=0x7ff47e8b6960, flags=flags@entry=0) at mdb.c:6413
#14 0x00007ff483854284 in mdb_put (txn=0x563fa85a3000, dbi=<optimized out>, key=key@entry=0x7ff47e8b6980, data=data@entry=0x7ff47e8b6960, flags=flags@entry=0) at mdb.c:8771
#15 0x00007ff486015033 in Baloo::IdFilenameDB::put (this=this@entry=0x7ff47e8b69f0, docId=<optimized out>, path=...) at /usr/src/debug/kde-frameworks/baloo-5.43.0/baloo-5.43.0/src/engine/idfilenamedb.cpp:75
#16 0x00007ff48600fab7 in Baloo::DocumentUrlDB::add (this=this@entry=0x7ff47e8b6b60, id=<optimized out>, id@entry=3066374721110065, parentId=parentId@entry=1099511627825, name=...) at /usr/src/debug/kde-frameworks/baloo-5.43.0/baloo-5.43.0/src/engine/documenturldb.cpp:125
#17 0x00007ff48600fcad in Baloo::DocumentUrlDB::put (this=this@entry=0x7ff47e8b6b60, docId=docId@entry=3066374721110065, url=...) at /usr/src/debug/kde-frameworks/baloo-5.43.0/baloo-5.43.0/src/engine/documenturldb.cpp:69
#18 0x00007ff486025ee7 in Baloo::WriteTransaction::addDocument (this=0x7fb470002f90, doc=...) at /usr/src/debug/kde-frameworks/baloo-5.43.0/baloo-5.43.0/src/engine/writetransaction.cpp:57
#19 0x00007ff486020d93 in Baloo::Transaction::addDocument (this=this@entry=0x7ff47e8b6c60, doc=...) at /usr/src/debug/kde-frameworks/baloo-5.43.0/baloo-5.43.0/src/engine/transaction.cpp:226
#20 0x0000563fa6d4f217 in Baloo::FirstRunIndexer::run (this=0x563fa852a020) at /usr/src/debug/kde-frameworks/baloo-5.43.0/baloo-5.43.0/src/file/firstrunindexer.cpp:76
#21 0x00007ff485802025 in ?? () from /usr/lib64/libQt5Core.so.5
#22 0x00007ff4858649c1 in ?? () from /usr/lib64/libQt5Core.so.5
#23 0x00007ff4844698b7 in start_thread (arg=0x7ff47e8b7700) at pthread_create.c:456
#24 0x00007ff484f98aaf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 2 (Thread 0x7ff47f3ba700 (LWP 1252)):
#0  0x00007ff484f8d71d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ff4828dd7b1 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff4828dd86c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff48598f97b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ff4859857fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ff48580625a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007ff486f09525 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007ff4858649c1 in ?? () from /usr/lib64/libQt5Core.so.5
#8  0x00007ff4844698b7 in start_thread (arg=0x7ff47f3ba700) at pthread_create.c:456
#9  0x00007ff484f98aaf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7ff47f59fc80 (LWP 1251)):
#0  0x00007ff484f8d71d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ff4828dd7b1 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff4828dd86c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff48598f97b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ff4859857fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ff48591dadd in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x0000563fa6d48b7d in main (argc=<optimized out>, argv=0x7fff61b9fde8) at /usr/src/debug/kde-frameworks/baloo-5.43.0/baloo-5.43.0/src/file/main.cpp:104

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

Possible duplicates by query: bug 390824, bug 380111, bug 378947, bug 378233.

Reported using DrKonqi
Comment 1 Dominik Haumann 2018-04-14 02:00:03 UTC

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