Bug 397488

Summary: baloo crash on startup
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Matthew Wheaton <mwheat5487>
Component: Baloo File DaemonAssignee: baloo-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate
Priority: NOR Keywords: drkonqi
Version: 5.48.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Matthew Wheaton 2018-08-15 15:33:05 UTC
Application: baloo_file_extractor (5.48.0)

Qt Version: 5.9.6
Frameworks Version: 5.48.0
Operating System: Linux 4.17.12-100.fc27.x86_64 x86_64
Distribution: "Fedora release 27 (Twenty Seven)"

-- Information about the crash:
- What I was doing when the application crashed:
Bringing the system up from a reboot  The system was initializing.  The only apps running are KSysGuard (system monitor) and a single Konsole.

The crash can be reproduced every time.

-- Backtrace:
Application: Baloo File Extractor (baloo_file_extractor), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff2c4c78900 (LWP 2478))]

Thread 3 (Thread 0x7ff2a675b700 (LWP 2519)):
#0  0x00007ff2c1208738 in read () from /lib64/libc.so.6
#1  0x00007ff2bc235160 in g_wakeup_acknowledge () from /lib64/libglib-2.0.so.0
#2  0x00007ff2bc1f09c8 in g_main_context_check () from /lib64/libglib-2.0.so.0
#3  0x00007ff2bc1f0e60 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#4  0x00007ff2bc1f0fcc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#5  0x00007ff2c2063d3b in QEventDispatcherGlib::processEvents (this=0x7ff2a0000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007ff2c2011a3a in QEventLoop::exec (this=this@entry=0x7ff2a675ac60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007ff2c1e62a1a in QThread::exec (this=this@entry=0x7ff2c3cf5060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:515
#8  0x00007ff2c3a81449 in QDBusConnectionManager::run (this=0x7ff2c3cf5060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#9  0x00007ff2c1e66f32 in QThreadPrivate::start (arg=0x7ff2c3cf5060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
#10 0x00007ff2bfe2450b in start_thread () from /lib64/libpthread.so.0
#11 0x00007ff2c121716f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ff2afdc3700 (LWP 2502)):
#0  0x00007ff2c120cc6b in poll () from /lib64/libc.so.6
#1  0x00007ff2bbb79fe7 in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007ff2bbb7bdda in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007ff2b2961cd9 in QXcbEventReader::run (this=0x55fc3153fbe0) at qxcbconnection.cpp:1335
#4  0x00007ff2c1e66f32 in QThreadPrivate::start (arg=0x55fc3153fbe0) at thread/qthread_unix.cpp:368
#5  0x00007ff2bfe2450b in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff2c121716f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff2c4c78900 (LWP 2478)):
[KCrash Handler]
#6  0x00007ff2c3616504 in mdb_midl_xmerge () from /lib64/liblmdb.so.0.0.0
#7  0x00007ff2c360db9f in mdb_page_alloc.isra () from /lib64/liblmdb.so.0.0.0
#8  0x00007ff2c360fcb4 in mdb_page_new () from /lib64/liblmdb.so.0.0.0
#9  0x00007ff2c36100b9 in mdb_node_add () from /lib64/liblmdb.so.0.0.0
#10 0x00007ff2c36135f9 in mdb_cursor_put () from /lib64/liblmdb.so.0.0.0
#11 0x00007ff2c36159eb in mdb_put () from /lib64/liblmdb.so.0.0.0
#12 0x00007ff2c4123bdc in Baloo::PositionDB::put (this=this@entry=0x7ffd513ac520, term=..., list=...) at /usr/src/debug/kf5-baloo-5.48.0-1.fc27.x86_64/src/engine/positiondb.cpp:79
#13 0x00007ff2c4131839 in Baloo::WriteTransaction::commit (this=0x55fc31592310) at /usr/src/debug/kf5-baloo-5.48.0-1.fc27.x86_64/src/engine/writetransaction.cpp:296
#14 0x00007ff2c412ac62 in Baloo::Transaction::commit (this=0x55fc315895a0) at /usr/src/debug/kf5-baloo-5.48.0-1.fc27.x86_64/src/engine/transaction.cpp:269
#15 0x000055fc2fea7e2c in Baloo::App::processNextFile (this=0x7ffd513acbf0) at /usr/src/debug/kf5-baloo-5.48.0-1.fc27.x86_64/src/file/extractor/app.cpp:100
#16 0x00007ff2c2047a24 in QtPrivate::QSlotObjectBase::call (a=0x7ffd513ac650, r=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#17 QSingleShotTimer::timerEvent (this=0x55fc31611da0) at kernel/qtimer.cpp:318
#18 0x00007ff2c203c30b in QObject::event (this=0x55fc31611da0, e=<optimized out>) at kernel/qobject.cpp:1269
#19 0x00007ff2c2c7f92c in QApplicationPrivate::notify_helper (this=this@entry=0x55fc3152e700, receiver=receiver@entry=0x55fc31611da0, e=e@entry=0x7ffd513ac8f0) at kernel/qapplication.cpp:3722
#20 0x00007ff2c2c87174 in QApplication::notify (this=0x7ffd513acbc0, receiver=0x55fc31611da0, e=0x7ffd513ac8f0) at kernel/qapplication.cpp:3481
#21 0x00007ff2c2012cd7 in QCoreApplication::notifyInternal2 (receiver=0x55fc31611da0, event=event@entry=0x7ffd513ac8f0) at kernel/qcoreapplication.cpp:1024
#22 0x00007ff2c206304b in QCoreApplication::sendEvent (event=0x7ffd513ac8f0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
#23 QTimerInfoList::activateTimers (this=0x55fc3156a1b0) at kernel/qtimerinfo_unix.cpp:643
#24 0x00007ff2c20638e1 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
#25 0x00007ff2bc1f0b97 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#26 0x00007ff2bc1f0f40 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#27 0x00007ff2bc1f0fcc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#28 0x00007ff2c2063d1f in QEventDispatcherGlib::processEvents (this=0x55fc31566ce0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#29 0x00007ff2c2011a3a in QEventLoop::exec (this=this@entry=0x7ffd513acb40, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#30 0x00007ff2c201a194 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1297
#31 0x000055fc2fea6d8f in main (argc=<optimized out>, argv=0x7ffd513acde8) at /usr/src/debug/kf5-baloo-5.48.0-1.fc27.x86_64/src/file/extractor/main.cpp:57

Possible duplicates by query: bug 395475.

Reported using DrKonqi
Comment 1 Nate Graham 2018-08-21 20:10:05 UTC

*** This bug has been marked as a duplicate of bug 395475 ***
Comment 2 Matthew Wheaton 2018-08-22 01:07:30 UTC
Thanks for changing the status which enabled me to find this ticket.  Without an email, I would not have known how to find it.

I was able to recover from this situation by running 'balooctl disable' as root and as the primary user (my user id), then rebooting.  I initially re-enabled baloo for my userid once I got a good boot, and just now I re-enabled baloo for root.  No issues.  I hope this helps.

Matt