[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#942078: [high quality bug] baloo crash, can't recover; forced reindex does not fix; unusable via dolphin C-f



Package: baloo-kf5
Version: 5.54.0-1
Severity: serious
Justification: poor experience will cause user to give up on baloo; worse than GNOME

Hi,

Recently baloo has been crashing whenever I log in.  Today I decided it
was a persistent and serious enough problem that a serious bug was
warranted.  I've attached the backtrace produced by drkonqi.  Here is
some additional info that I hope will help quickly resolve this bug.

$ balooctl start
QCoreApplication::arguments: Please instantiate the QApplication object first
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
This process needs a QCoreApplication instance in order to use KCrash
"/home/sten/jack_capture_90.mp3" id seems to have changed. Perhaps baloo was not running, and this file was deleted + re-created
mdb.c:3124: Assertion 'pglast <= env->me_pglast' failed in mdb_freelist_save()
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = baloo_file_extractor path = /usr/bin pid = 15575
KCrash: Arguments: /usr/bin/baloo_file_extractor 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
QSocketNotifier: Invalid socket 18 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...

$ balooctl clear /home/sten/jack_capture_90.mp3
Skipping: /home/sten/jack_capture_90.mp3 Reason: Not yet indexed
File(s) cleared

$ balooctl index /home/sten/jack_capture_90.mp3
Indexing /home/sten/jack_capture_90.mp3
mdb.c:3124: Assertion 'pglast <= env->me_pglast' failed in mdb_freelist_save()
Aborted

$ balooctl status
Baloo File Indexer is running
Indexer state: Indexing file content
Indexed 57061 / 57062 files
Current size of index is 703.08 MiB

$ balooctl  indexSize
Actual Size: 703.08 MiB
Expected Size: 456.43 MiB

           PostingDB:     111.95 MiB    24.527 %
          PositionDB:     189.31 MiB    41.476 %
            DocTerms:      58.71 MiB    12.862 %
    DocFilenameTerms:       6.20 MiB     1.357 %
       DocXattrTerms:            0 B     0.000 %
              IdTree:     996.00 KiB     0.213 %
          IdFileName:       4.65 MiB     1.019 %
             DocTime:       2.57 MiB     0.563 %
             DocData:       3.51 MiB     0.769 %
   ContentIndexingDB:       4.00 KiB     0.001 %
         FailedIdsDB:            0 B     0.000 %
             MTimeDB:       1.20 MiB     0.263 %

...wait a while, then

$ balooctl stop

...wait a while.  Baloo fails to stop.

$ ps xa | grep /usr/bin/baloo_file
$ gdb -p $THAT_PID
$ kill $THAT_PID

Result: no backtrace

$ gdb /usr/bin/baloo_file

Starting program: /usr/bin/baloo_file 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff2c7e700 (LWP 17185)]
[New Thread 0x7ffff215b700 (LWP 17186)]
[Detaching after fork from child process 17187]
QCoreApplication::arguments: Please instantiate the QApplication object first
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
This process needs a QCoreApplication instance in order to use KCrash
"/home/sten/jack_capture_90.mp3" id seems to have changed. Perhaps baloo was not running, and this file was deleted + re-created
mdb.c:3124: Assertion 'pglast <= env->me_pglast' failed in mdb_freelist_save()
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = baloo_file_extractor path = /usr/bin pid = 17187
KCrash: Arguments: /usr/bin/baloo_file_extractor 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
QSocketNotifier: Invalid socket 18 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...

Result: CRASH.  Drkonqi provides a bt for baloo_file_extractor.  I've attached that one too.


Regards,
Nicholas

-- System Information:
Debian Release: 10.1
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.72-rt25 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages baloo-kf5 depends on:
ii  kio                  5.54.1-1
ii  libc6                2.28-10
ii  libkf5baloo5         5.54.0-1
ii  libkf5balooengine5   5.54.0-1
ii  libkf5configcore5    5.54.0-1+deb10u1
ii  libkf5coreaddons5    5.54.0-1
ii  libkf5crash5         5.54.0-1
ii  libkf5dbusaddons5    5.54.0-1
ii  libkf5filemetadata3  5.54.0-1
ii  libkf5i18n5          5.54.0-1
ii  libkf5idletime5      5.54.0-1
ii  libkf5kiocore5       5.54.1-1
ii  libkf5solid5         5.54.0-1
ii  libqt5core5a         5.11.3+dfsg1-1
ii  libqt5dbus5          5.11.3+dfsg1-1
ii  libqt5gui5           5.11.3+dfsg1-1
ii  libqt5qml5           5.11.3-4
ii  libqt5widgets5       5.11.3+dfsg1-1
ii  libstdc++6           8.3.0-6

baloo-kf5 recommends no packages.

baloo-kf5 suggests no packages.

-- no debconf information
Application: Baloo File Extractor (baloo_file_extractor), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9ccc603480 (LWP 15575))]

Thread 2 (Thread 0x7f9cbd7ad700 (LWP 15577)):
#0  0x00007f9cced79e84 in g_mutex_unlock () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9cced2f187 in g_main_context_acquire () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9cced2fff5 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9cced3025c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9cd025287b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f9cb8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f9cd020027b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f9cbd7acd70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f9cd004fec6 in QThread::exec() (this=this@entry=0x7f9cd11f8d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f9cd1178545 in QDBusConnectionManager::run() (this=0x7f9cd11f8d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f9cd0059aa7 in QThreadPrivate::start(void*) (arg=0x7f9cd11f8d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#9  0x00007f9ccf930fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#10 0x00007f9ccfd494cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f9ccc603480 (LWP 15575)):
[KCrash Handler]
#6  0x00007f9ccfc877bb in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007f9ccfc72535 in __GI_abort () at abort.c:79
#8  0x00007f9ccfaf33b2 in  () at /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#9  0x00007f9ccfaf0c3e in mdb_txn_commit () at /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#10 0x00007f9cd123deee in Baloo::Transaction::commit() () at /usr/lib/x86_64-linux-gnu/libKF5BalooEngine.so.5
#11 0x000056442c29ff0c in  ()
#12 0x00007f9cd0236556 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fff16357910, r=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#13 0x00007f9cd0236556 in QSingleShotTimer::timerEvent(QTimerEvent*) (this=0x56442d510a20) at kernel/qtimer.cpp:318
#14 0x00007f9cd022b13b in QObject::event(QEvent*) (this=0x56442d510a20, e=<optimized out>) at kernel/qobject.cpp:1232
#15 0x00007f9cd0b7c4b1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x56442d3dd1b0, receiver=receiver@entry=0x56442d510a20, e=e@entry=0x7fff16357bd0) at kernel/qapplication.cpp:3726
#16 0x00007f9cd0b83950 in QApplication::notify(QObject*, QEvent*) (this=0x7fff16357ee0, receiver=0x56442d510a20, e=0x7fff16357bd0) at kernel/qapplication.cpp:3485
#17 0x00007f9cd02015a9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x56442d510a20, event=event@entry=0x7fff16357bd0) at ../../include/QtCore/5.11.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:307
#18 0x00007f9cd0251c78 in QCoreApplication::sendEvent(QObject*, QEvent*) (event=0x7fff16357bd0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#19 0x00007f9cd0251c78 in QTimerInfoList::activateTimers() (this=0x56442d41a310) at kernel/qtimerinfo_unix.cpp:643
#20 0x00007f9cd02524d4 in timerSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
#21 0x00007f9cced2ff2e in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f9cced301c8 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f9cced3025c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f9cd0252863 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x56442d4174e0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#25 0x00007f9ccbfc53e1 in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x56442d4174e0, flags=...) at qeventdispatcher_glib.cpp:69
#26 0x00007f9cd020027b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fff16357e50, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#27 0x00007f9cd0208262 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#28 0x000056442c29d323 in  ()
#29 0x00007f9ccfc7409b in __libc_start_main (main=0x56442c29d0e0, argc=1, argv=0x7fff16358118, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff16358108) at ../csu/libc-start.c:308
#30 0x000056442c29d3ca in  ()
[Inferior 1 (process 15575) detached]
Application: Baloo File Extractor (baloo_file_extractor), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ffff31d2480 (LWP 17187))]

Thread 3 (Thread 0x7fffe437f700 (LWP 17189)):
#0  0x00007ffff7fd39fd in clock_gettime ()
#1  0x00007ffff6925ff6 in __GI___clock_gettime (clock_id=clock_id@entry=1, tp=tp@entry=0x7fffe437eab0) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007ffff6e211a1 in qt_clock_gettime (ts=0x7fffe437eab0, clock=1) at kernel/qelapsedtimer_unix.cpp:175
#3  0x00007ffff6e211a1 in do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at kernel/qelapsedtimer_unix.cpp:166
#4  0x00007ffff6e211a1 in qt_gettime() () at kernel/qelapsedtimer_unix.cpp:175
#5  0x00007ffff6e1f9d9 in QTimerInfoList::updateCurrentTime() (this=this@entry=0x7fffdc004cf0) at kernel/qtimerinfo_unix.cpp:91
#6  0x00007ffff6e1ffd5 in QTimerInfoList::timerWait(timespec&) (this=0x7fffdc004cf0, tm=...) at kernel/qtimerinfo_unix.cpp:388
#7  0x00007ffff6e215fe in timerSourcePrepareHelper (timeout=0x7fffe437eb94, src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:161
#8  0x00007ffff6e215fe in timerSourcePrepare(GSource*, gint*) (source=<optimized out>, timeout=0x7fffe437eb94) at kernel/qeventdispatcher_glib.cpp:165
#9  0x00007ffff58fe669 in g_main_context_prepare () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff58ff06b in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff58ff25c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff6e2187b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fffdc000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#13 0x00007ffff6dcf27b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffe437ed70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#14 0x00007ffff6c1eec6 in QThread::exec() (this=this@entry=0x7ffff7dc7d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#15 0x00007ffff7d47545 in QDBusConnectionManager::run() (this=0x7ffff7dc7d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#16 0x00007ffff6c28aa7 in QThreadPrivate::start(void*) (arg=0x7ffff7dc7d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#17 0x00007ffff64fffa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#18 0x00007ffff69184cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7ffff1d50700 (LWP 17188)):
#0  0x00007ffff690d819 in __GI___poll (fds=0x7ffff1d4fcb8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff5889cf7 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007ffff588b91a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007ffff2afdd79 in QXcbEventReader::run() (this=0x5555555b7200) at qxcbconnection.h:409
#4  0x00007ffff6c28aa7 in QThreadPrivate::start(void*) (arg=0x5555555b7200) at thread/qthread_unix.cpp:367
#5  0x00007ffff64fffa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6  0x00007ffff69184cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ffff31d2480 (LWP 17187)):
[KCrash Handler]
#6  0x00007ffff68567bb in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007ffff6841535 in __GI_abort () at abort.c:79
#8  0x00007ffff66c23b2 in  () at /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#9  0x00007ffff66bfc3e in mdb_txn_commit () at /usr/lib/x86_64-linux-gnu/liblmdb.so.0
#10 0x00007ffff7e0ceee in Baloo::Transaction::commit() () at /usr/lib/x86_64-linux-gnu/libKF5BalooEngine.so.5
#11 0x000055555555ff0c in  ()
#12 0x00007ffff6e05556 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fffffffd5d0, r=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#13 0x00007ffff6e05556 in QSingleShotTimer::timerEvent(QTimerEvent*) (this=0x5555556ce440) at kernel/qtimer.cpp:318
#14 0x00007ffff6dfa13b in QObject::event(QEvent*) (this=0x5555556ce440, e=<optimized out>) at kernel/qobject.cpp:1232
#15 0x00007ffff774b4b1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55555559b1b0, receiver=receiver@entry=0x5555556ce440, e=e@entry=0x7fffffffd890) at kernel/qapplication.cpp:3726
#16 0x00007ffff7752950 in QApplication::notify(QObject*, QEvent*) (this=0x7fffffffdba0, receiver=0x5555556ce440, e=0x7fffffffd890) at kernel/qapplication.cpp:3485
#17 0x00007ffff6dd05a9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x5555556ce440, event=event@entry=0x7fffffffd890) at ../../include/QtCore/5.11.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:307
#18 0x00007ffff6e20c78 in QCoreApplication::sendEvent(QObject*, QEvent*) (event=0x7fffffffd890, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#19 0x00007ffff6e20c78 in QTimerInfoList::activateTimers() (this=0x5555555d8260) at kernel/qtimerinfo_unix.cpp:643
#20 0x00007ffff6e214d4 in timerSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
#21 0x00007ffff58fef2e in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff58ff1c8 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007ffff58ff25c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007ffff6e21863 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5555555d54a0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#25 0x00007ffff2b943e1 in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5555555d54a0, flags=...) at qeventdispatcher_glib.cpp:69
#26 0x00007ffff6dcf27b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffffffdb10, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#27 0x00007ffff6dd7262 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#28 0x000055555555d323 in  ()
#29 0x00007ffff684309b in __libc_start_main (main=0x55555555d0e0, argc=1, argv=0x7fffffffddd8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffddc8) at ../csu/libc-start.c:308
#30 0x000055555555d3ca in  ()
[Inferior 1 (process 17187) detached]

Reply to: