Bug 401942

Summary: baloo_file crashes in Baloo::DocumentIdDB::del()
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Alexander Miroshnichenko <alexminder>
Component: Baloo File DaemonAssignee: baloo-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate, tf, thomas.jouas
Priority: NOR Keywords: drkonqi
Version: 5.52.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Alexander Miroshnichenko 2018-12-10 08:27:27 UTC
Application: baloo_file (5.52.0)

Qt Version: 5.11.1
Frameworks Version: 5.52.0
Operating System: Linux 4.18.20.a-hardened x86_64
Distribution: "Gentoo Base System release 2.6"

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

- stop kde session
- start kde session
- baloo crash status indicator appears (DrKonqi)

-- 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 0x6509fea83d00 (LWP 4970))]

Thread 3 (Thread 0x6509f2406700 (LWP 5152)):
[KCrash Handler]
#6  0x00006509fc3287eb in raise () from /lib64/libc.so.6
#7  0x00006509fc32a011 in abort () from /lib64/libc.so.6
#8  0x00006509f9d35832 in mdb_assert_fail (env=0xe6ec39c0f70, expr_txt=expr_txt@entry=0x6509f9d374cf "rc == 0", func=func@entry=0x6509f9d37de8 <__func__.7034> "mdb_page_dirty", line=line@entry=2127, file=0x6509f9d374b0 "mdb.c") at mdb.c:1542
#9  0x00006509f9d29f05 in mdb_page_dirty (txn=0xe6ec39c2400, mp=<optimized out>) at mdb.c:2127
#10 0x00006509f9d2b37b in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x6509f24051c8, mc=<optimized out>) at mdb.c:2308
#11 0x00006509f9d2b609 in mdb_page_touch (mc=mc@entry=0x6509f2405650) at mdb.c:2427
#12 0x00006509f9d2d2cf in mdb_cursor_touch (mc=mc@entry=0x6509f2405650) at mdb.c:6492
#13 0x00006509f9d3155a in mdb_cursor_del (mc=0x6509f2405650, flags=32) at mdb.c:7050
#14 0x00006509f9d32bac in mdb_del0 (txn=0xe6ec39c2400, dbi=11, key=key@entry=0x6509f2405a30, data=<optimized out>, flags=32, flags@entry=0) at mdb.c:8540
#15 0x00006509f9d33062 in mdb_del (txn=<optimized out>, dbi=<optimized out>, key=key@entry=0x6509f2405a30, data=<optimized out>, data@entry=0x0) at mdb.c:8500
#16 0x00006509fda6df6e in Baloo::DocumentIdDB::del (this=this@entry=0x6509f2405a60, docId=<optimized out>, docId@entry=943290528915586566) at /var/tmp/portage/kde-frameworks/baloo-5.52.0/work/baloo-5.52.0/src/engine/documentiddb.cpp:102
#17 0x00006509fda7c7b9 in Baloo::Transaction::removePhaseOne (this=this@entry=0x6509f2405aa0, id=id@entry=943290528915586566) at /var/tmp/portage/kde-frameworks/baloo-5.52.0/work/baloo-5.52.0/src/engine/transaction.cpp:214
#18 0x00000e6e997773d1 in Baloo::FileContentIndexerProvider::markFailed (this=<optimized out>, id=943290528915586566) at /var/tmp/portage/kde-frameworks/baloo-5.52.0/work/baloo-5.52.0/src/file/filecontentindexerprovider.cpp:50
#19 0x00000e6e99776b6b in Baloo::FileContentIndexer::run (this=0xe6ec39c3cf0) at /var/tmp/portage/kde-frameworks/baloo-5.52.0/work/baloo-5.52.0/src/file/filecontentindexer.cpp:87
#20 0x00006509fcf1dee1 in QThreadPoolThread::run (this=0xe6ec3c62460) at thread/qthreadpool.cpp:101
#21 0x00006509fcf2830f in QThreadPrivate::start (arg=0xe6ec3c62460) at thread/qthread_unix.cpp:367
#22 0x00006509fa19296a in start_thread () from /lib64/libpthread.so.0
#23 0x00006509fc3f5f5f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x6509f2e08700 (LWP 4984)):
#0  0x00006509fc3e5b20 in read () from /lib64/libc.so.6
#1  0x00006509f874b130 in read (__nbytes=16, __buf=0x6509f2e07aa0, __fd=<optimized out>) at /usr/include/bits/unistd.h:44
#2  g_wakeup_acknowledge (wakeup=0xe6ec39b30c0) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gwakeup.c:210
#3  0x00006509f86f721e in g_main_context_check (context=context@entry=0x6509ec000bf0, max_priority=2147483647, fds=fds@entry=0x6509ec003ce0, n_fds=n_fds@entry=1) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3750
#4  0x00006509f86f770c in g_main_context_iterate (context=context@entry=0x6509ec000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3969
#5  0x00006509f86f78cb in g_main_context_iteration (context=0x6509ec000bf0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:4033
#6  0x00006509fd138f7b in QEventDispatcherGlib::processEvents (this=0x6509ec000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00006509fd0dbbfa in QEventLoop::exec (this=this@entry=0x6509f2e07ce0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#8  0x00006509fcf1c33a in QThread::exec (this=this@entry=0x6509fdf27060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:525
#9  0x00006509fdca3f49 in QDBusConnectionManager::run (this=0x6509fdf27060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#10 0x00006509fcf2830f in QThreadPrivate::start (arg=0x6509fdf27060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#11 0x00006509fa19296a in start_thread () from /lib64/libpthread.so.0
#12 0x00006509fc3f5f5f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x6509fea83d00 (LWP 4970)):
#0  0x00006509fc3ea423 in poll () from /lib64/libc.so.6
#1  0x00006509f86f7766 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0xe6ec3a4ad70, timeout=<optimized out>, context=0xe6ec39b31d0) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:4271
#2  g_main_context_iterate (context=context@entry=0xe6ec39b31d0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3967
#3  0x00006509f86f78cb in g_main_context_iteration (context=0xe6ec39b31d0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:4033
#4  0x00006509fd138f7b in QEventDispatcherGlib::processEvents (this=0xe6ec39ad7e0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00006509fd0dbbfa in QEventLoop::exec (this=this@entry=0x71f33d982c00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00006509fd0e52c0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1336
#7  0x00000e6e9976798c in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-frameworks/baloo-5.52.0/work/baloo-5.52.0/src/file/main.cpp:104

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

Possible duplicates by query: bug 400728, bug 400498, bug 399492, bug 399407, bug 399391.

Reported using DrKonqi
Comment 1 Tim Folger 2018-12-10 18:47:03 UTC
Created attachment 116838 [details]
New crash information added by DrKonqi

baloo_file (5.52.0) using Qt 5.11.2

- What I was doing when the application crashed: Whenever I start kde I get the folloing error message: Baloo file indexing daemon closed.    	 	 	 	  
 Executable: baloo_file PID: 1703 Signal: Aborted
 It doesn't seem to affect my computer in any noticeable way, but the message occurs every time I launch kde. I'm using an up-to-date tumbleweed with kde plasma 5.14.4, kde frameworks 5.52.0, and Qt version 5.11.2

-- Backtrace (Reduced):
#8  0x00007f855ff3a5f2 in mdb_assert_fail (env=0x55b82c042f40, expr_txt=expr_txt@entry=0x7f855ff3c02f "rc == 0", func=func@entry=0x7f855ff3c978 <__func__.7179> "mdb_page_dirty", line=line@entry=2127, file=0x7f855ff3c010 "mdb.c") at mdb.c:1542
#9  0x00007f855ff2f455 in mdb_page_dirty (txn=0x55b82c044340, mp=<optimized out>) at mdb.c:2128
#10 0x00007f855ff306d6 in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7f855b61b508, mc=<optimized out>) at mdb.c:2308
#11 0x00007f855ff3090b in mdb_page_touch (mc=mc@entry=0x7f855b61b850) at mdb.c:2495
#12 0x00007f855ff30fa8 in mdb_page_search (mc=mc@entry=0x7f855b61b850, key=key@entry=0x0, flags=flags@entry=5) at mdb.c:5657
Comment 2 Nate Graham 2020-10-26 15:48:26 UTC

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