<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>392094</bug_id>
          
          <creation_ts>2018-03-20 09:54:54 +0000</creation_ts>
          <short_desc>Cannot enable baloo indexing</short_desc>
          <delta_ts>2018-04-14 02:00:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-baloo</product>
          <component>Baloo File Daemon</component>
          <version>5.43.0</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>389848</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>davide.nicoli95</reporter>
          <assigned_to>baloo-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1739294</commentid>
    <comment_count>0</comment_count>
    <who name="">davide.nicoli95</who>
    <bug_when>2018-03-20 09:54:54 +0000</bug_when>
    <thetext>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: &quot;Gentoo Base System release 2.4.1&quot;

-- Information about the crash:
- What I was doing when the application crashed:
Nothing, the crash happens whenever I start plasma or launch &quot;balooctl enable&quot; or &quot;balooctl index *whatever*&quot; 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 &quot;balooctl checkDb&quot; crashes with an lmdb related error: &quot;mdb.c: 5697: Assertion &apos;IS_LEAF(mp)&apos; failed in mdb_cursor_next()&quot;
- 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=&quot;-march=native -Og -ggdb -pipe&quot;
- CXXFLAGS=&quot;${CFLAGS}&quot;
- LDFLAGS=&quot;-Wl,--as-needed -Wl,-Og ${CFLAGS}&quot;
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 &quot;/lib64/libthread_db.so.1&quot;.
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 &quot;rc == 0&quot;, func=func@entry=0x7ff483858118 &lt;__func__.7231&gt; &quot;mdb_page_dirty&quot;, file=file@entry=0x7ff483857d6c &quot;mdb.c&quot;, 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=&lt;optimized out&gt;, 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=&lt;optimized out&gt;, 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=&lt;optimized out&gt;, 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&lt;QEventLoop::ProcessEventsFlag&gt;) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ff4859857fb in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () 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&lt;QEventLoop::ProcessEventsFlag&gt;) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ff4859857fb in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ff48591dadd in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x0000563fa6d48b7d in main (argc=&lt;optimized out&gt;, 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1745465</commentid>
    <comment_count>1</comment_count>
    <who name="Dominik Haumann">dhaumann</who>
    <bug_when>2018-04-14 02:00:03 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 389848 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>