Bug 388897 - baloo_file crashed in Baloo::DocumentTimeDB::put()
Summary: baloo_file crashed in Baloo::DocumentTimeDB::put()
Status: RESOLVED DUPLICATE of bug 389848
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.32.0
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-13 07:58 UTC by Papoteur
Modified: 2018-11-26 17:34 UTC (History)
2 users (show)

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 Papoteur 2018-01-13 07:58:25 UTC
Application: baloo_file (5.32.0)

Qt Version: 5.6.2
Frameworks Version: 5.32.0
Operating System: Linux 4.9.56-desktop-1.mga6 x86_64
Distribution: "Mageia 6"

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

- Unusual behavior I noticed:
In previous session, baloo serach  in Dolphin didn't work, crash was reported.

-- 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 0x7ff6714cc800 (LWP 6269))]

Thread 3 (Thread 0x7fb65bced700 (LWP 7098)):
[KCrash Handler]
#6  0x00007ff66f521818 in raise () at /lib64/libc.so.6
#7  0x00007ff66f522f2a in abort () at /lib64/libc.so.6
#8  0x00007ff66dd23321 in  () at /lib64/liblmdb.so.0.0.0
#9  0x00007ff66dd18b05 in  () at /lib64/liblmdb.so.0.0.0
#10 0x00007ff66dd19c3b in mdb_page_alloc.isra () at /lib64/liblmdb.so.0.0.0
#11 0x00007ff66dd19e69 in mdb_page_touch () at /lib64/liblmdb.so.0.0.0
#12 0x00007ff66dd1ba0f in mdb_cursor_touch () at /lib64/liblmdb.so.0.0.0
#13 0x00007ff66dd1ea35 in mdb_cursor_put () at /lib64/liblmdb.so.0.0.0
#14 0x00007ff66dd21563 in mdb_put () at /lib64/liblmdb.so.0.0.0
#15 0x00007ff6706877e2 in Baloo::DocumentTimeDB::put(unsigned long long, Baloo::DocumentTimeDB::TimeInfo const&) () at /lib64/libKF5BalooEngine.so.5
#16 0x00007ff6706a1e74 in Baloo::WriteTransaction::addDocument(Baloo::Document const&) () at /lib64/libKF5BalooEngine.so.5
#17 0x00000000004167ee in Baloo::ModifiedFileIndexer::run() ()
#18 0x00007ff66ffc7563 in QThreadPoolThread::run() () at /lib64/libQt5Core.so.5
#19 0x00007ff66ffcaff9 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#20 0x00007ff66ec7566d in start_thread () at /lib64/libpthread.so.0
#21 0x00007ff66f5e3d4d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7ff660832700 (LWP 6288)):
#0  0x00007ff66f5d7f0d in poll () at /lib64/libc.so.6
#1  0x00007ff66c78dc94 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007ff66c78dd9c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007ff6701e0e2b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007ff67018c49a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007ff66ffc63bc in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007ff6715e4635 in QDBusConnectionManager::run() () at /lib64/libQt5DBus.so.5
#7  0x00007ff66ffcaff9 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007ff66ec7566d in start_thread () at /lib64/libpthread.so.0
#9  0x00007ff66f5e3d4d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7ff6714cc800 (LWP 6269)):
#0  0x00007ff66f5d7f0d in poll () at /lib64/libc.so.6
#1  0x00007ff66c78dc94 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007ff66c78dd9c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007ff6701e0e2b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007ff67018c49a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007ff6701947e1 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#6  0x000000000040a012 in main ()
Comment 1 Nate Graham 2018-10-17 16:00:20 UTC
*** Bug 396658 has been marked as a duplicate of this bug. ***
Comment 2 Papoteur 2018-10-18 05:42:16 UTC
Hello,
Since this time, baloo never reindexed new files.
I have run the command balooctl checkDb and got a crash.

Here is the backtrace.
gdb --args balooctl checkDb
GNU gdb (GDB) 7.12-16.1.mga6 (Mageia release 6)
...
Reading symbols from balooctl...Reading symbols from /usr/lib/debug/usr/bin/balooctl.debug...done.
done.
(gdb) run
Starting program: /usr/bin/balooctl checkDb
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe7b05700 (LWP 26783)]
mdb.c:5884: Assertion 'IS_LEAF(mp)' failed in mdb_cursor_next()

Thread 1 "balooctl" received signal SIGABRT, Aborted.
0x00007ffff662a818 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
Missing separate debuginfos, use: debuginfo-install lib64bsd0-0.8.3-1.mga6.x86_64 lib64bzip2_1-1.0.6-10.mga6.x86_64 lib64dbus1_3-1.10.16-1.mga6.x86_64 lib64drm2-2.4.91-1.1.mga6.x86_64 lib64expat1-2.2.1-1.mga6.x86_64 lib64fam0-0.1.10-17.mga6.x86_64 lib64freetype6-2.7.1-2.2.mga6.tainted.x86_64 lib64gcrypt20-1.7.10-1.mga6.x86_64 lib64glapi0-17.3.9-1.mga6.x86_64 lib64glib2.0_0-2.54.3-1.1.mga6.x86_64 lib64gpg-error0-1.24-1.mga6.x86_64 lib64graphite2_3-1.3.10-1.1.mga6.x86_64 lib64harfbuzz0-1.3.2-5.mga6.x86_64 lib64icu58-58.2-3.2.mga6.x86_64 lib64kconfigCore5-5.42.0-1.mga6.x86_64 lib64kf5coreaddons5-5.42.0-1.mga6.x86_64 lib64kf5filemetadata5-5.42.0-1.mga6.x86_64 lib64kf5i18n5-5.42.0-1.mga6.x86_64 lib64kf5solid5-5.42.0-1.mga6.x86_64 lib64lzma5-5.2.3-1.mga6.x86_64 lib64mesagl1-17.3.9-1.mga6.x86_64 lib64pcre1-8.41-1.mga6.x86_64 lib64png16_16-1.6.34-1.mga6.x86_64 lib64qt5core5-5.9.4-1.1.mga6.x86_64 lib64qt5dbus5-5.9.4-1.1.mga6.x86_64 lib64qt5gui5-5.9.4-1.1.mga6.x86_64 lib64qt5widgets5-5.9.4-1.1.mga6.x86_64 lib64qt5xml5-5.9.4-1.1.mga6.x86_64 lib64systemd0-230-12.3.mga6.x86_64 lib64udev1-230-12.3.mga6.x86_64 lib64x11-xcb1-1.6.5-1.1.mga6.x86_64 lib64x11_6-1.6.5-1.1.mga6.x86_64 lib64xau6-1.0.8-7.mga6.x86_64 lib64xcb-dri2_0-1.12-2.mga6.x86_64 lib64xcb-dri3_0-1.12-2.mga6.x86_64 lib64xcb-glx0-1.12-2.mga6.x86_64 lib64xcb-present0-1.12-2.mga6.x86_64 lib64xcb-sync1-1.12-2.mga6.x86_64 lib64xcb1-1.12-2.mga6.x86_64 lib64xdamage1-1.1.4-8.mga6.x86_64 lib64xdmcp6-1.1.2-5.mga6.x86_64 lib64xext6-1.3.3-4.mga6.x86_64 lib64xfixes3-5.0.3-1.mga6.x86_64 lib64xshmfence1-1.2-2.mga6.x86_64 lib64xxf86vm1-1.1.4-2.mga6.x86_64 lib64zlib1-1.2.11-4.1.mga6.x86_64 libgcc1-5.5.0-1.mga6.x86_64 libstdc++6-5.5.0-1.mga6.x86_64
(gdb) bt
#0  0x00007ffff662a818 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#1  0x00007ffff662bf2a in __GI_abort () at abort.c:89
#2  0x00007ffff5eba321 in mdb_assert_fail (env=0x645880, expr_txt=expr_txt@entry=0x7ffff5ebba91 "IS_LEAF(mp)", func=func@entry=0x7ffff5ebc2b0 <__func__.7255> "mdb_cursor_next", 
    line=line@entry=5884, file=0x7ffff5ebb9e0 "mdb.c") at mdb.c:1536
#3  0x00007ffff5eb1ad9 in mdb_cursor_next (mc=0x646000, key=0x7fffffffd740, data=data@entry=0x7fffffffd750, op=MDB_NEXT) at mdb.c:5884
#4  0x00007ffff5eb0688 in mdb_cursor_get (mc=0x646000, key=key@entry=0x7fffffffd740, data=data@entry=0x7fffffffd750, op=op@entry=MDB_NEXT) at mdb.c:6404
#5  0x00007ffff7991ab9 in Baloo::PostingDB::toTestMap (this=this@entry=0x7fffffffd820) at /usr/src/debug/baloo-5.42.0/src/engine/postingdb.cpp:281
#6  0x00007ffff799cbe6 in Baloo::Transaction::checkPostingDbinTermsDb (this=this@entry=0x7fffffffd9a0) at /usr/src/debug/baloo-5.42.0/src/engine/transaction.cpp:559
#7  0x0000000000408491 in main (argc=2, argv=<optimized out>) at /usr/src/debug/baloo-5.42.0/src/tools/balooctl/main.cpp:324
(gdb)
Comment 3 Nate Graham 2018-11-26 17:34:51 UTC

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