Bug 356114

Summary: Crash inside Baloo::PositionCodec::decode
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Rickard Lindberg <ricli85>
Component: Baloo File DaemonAssignee: Pinak Ahuja <pinak.ahuja>
Status: RESOLVED DUPLICATE    
Severity: crash CC: aspotashev, christoph, drdrnewman, jfgoncal, jonrysh, kde-bugs, pinak.ahuja, zawertun
Priority: NOR Keywords: drkonqi
Version: 5.16.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rickard Lindberg 2015-11-30 13:43:04 UTC
Application: baloo_file_extractor (5.16.0)

Qt Version: 5.5.1
Operating System: Linux 4.2.6-200.fc22.x86_64 x86_64
Distribution (Platform): Fedora RPMs

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

I rebootet my system and logged into Plasma. The crash happens every time I reboot.

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 0x7f72cf00b840 (LWP 1868))]

Thread 2 (Thread 0x7f72b9283700 (LWP 1869)):
#0  0x00007f72cb53e2fd in poll () from /lib64/libc.so.6
#1  0x00007f72c6041182 in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007f72c6042c77 in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007f72bbc4dda9 in QXcbEventReader::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007f72cc14b3ce in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007f72ca651555 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f72cb549b9d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f72cf00b840 (LWP 1868)):
[KCrash Handler]
#5  0x00007f72ce2b23c4 in Baloo::PositionCodec::decode(QByteArray const&) () from /lib64/libKF5BalooEngine.so.5
#6  0x00007f72ce299dc4 in Baloo::PositionDB::get(QByteArray const&) () from /lib64/libKF5BalooEngine.so.5
#7  0x00007f72ce2afbf4 in Baloo::WriteTransaction::commit() () from /lib64/libKF5BalooEngine.so.5
#8  0x00007f72ce2a5cf2 in Baloo::Transaction::commit() () from /lib64/libKF5BalooEngine.so.5
#9  0x000000000040cc1c in Baloo::App::processNextFile() ()
#10 0x00007f72cc3678d8 in QSingleShotTimer::timerEvent(QTimerEvent*) () from /lib64/libQt5Core.so.5
#11 0x00007f72cc35c163 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#12 0x00007f72cd01241c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#13 0x00007f72cd0178e6 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#14 0x00007f72cc32c77b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#15 0x00007f72cc381d0d in QTimerInfoList::activateTimers() () from /lib64/libQt5Core.so.5
#16 0x00007f72cc382211 in timerSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#17 0x00007f72c9ebea8a in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#18 0x00007f72c9ebee20 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#19 0x00007f72c9ebeecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#20 0x00007f72cc382eef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#21 0x00007f72cc329f0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#22 0x00007f72cc331fec in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#23 0x000000000040b545 in main ()

Reported using DrKonqi
Comment 1 Vishesh Handa 2015-12-15 11:18:58 UTC
*** Bug 356445 has been marked as a duplicate of this bug. ***
Comment 2 Vishesh Handa 2015-12-15 11:22:18 UTC
*** Bug 355280 has been marked as a duplicate of this bug. ***
Comment 3 Jonathan Ryshpan 2016-03-19 16:29:08 UTC
I see exactly the same thing using Fedora-23.  
Balloo is identified as:
$ rpm -qf /usr/bin/baloo_file_extractor
kf5-baloo-file-5.19.0-1.fc23.x86_64

I am running Firefox with an unusually larger number of windows+tabs
Windows: 14, Tabs: 58, which seems to affect system performance.
Comment 4 Edward Donovan 2016-06-07 03:34:34 UTC
My experience under Kubuntu 16.04 is just the same.  
  Plasma 5.5.5
  Qt 5.5.1

I believe it's been happening for a while under at least Kubuntu 15.10 as well; I forget what Plasma & Qt versions that might have been.  

My backtrace may not add anything, but drkonqi usually suggests it's no use, and this time it liked it for a change.  (I'm not adding this via drkonqi because it got stuck when I tried to mark my report as a dupe.  Oh well.)  Thanks.

Backtrace of the crash I experienced:

Application: Baloo File Indexing Daemon (baloo_file), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f47d0f988c0 (LWP 2451))]

Thread 2 (Thread 0x7f4686028700 (LWP 2742)):
#0  0x00007f47cf0a7e8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f47cc27931c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f47cc27942c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f47cfcdda9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f47cfc84dea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x0000000000420cd8 in Baloo::FileContentIndexer::run() ()
#6  0x00007f47cfaa3343 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f47cfaa684e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f47ce70a6fa in start_thread (arg=0x7f4686028700) at pthread_create.c:333
#9  0x00007f47cf0b3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f47d0f988c0 (LWP 2451)):
[KCrash Handler]
#6  __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:38
#7  0x00007f47d01908da in Baloo::PostingCodec::decode(QByteArray const&) () from /usr/lib/x86_64-linux-gnu/libKF5BalooEngine.so.5
#8  0x00007f47d017c814 in Baloo::PostingDB::get(QByteArray const&) () from /usr/lib/x86_64-linux-gnu/libKF5BalooEngine.so.5
#9  0x00007f47d018d3c6 in Baloo::WriteTransaction::commit() () from /usr/lib/x86_64-linux-gnu/libKF5BalooEngine.so.5
#10 0x00007f47d0185032 in Baloo::Transaction::commit() () from /usr/lib/x86_64-linux-gnu/libKF5BalooEngine.so.5
#11 0x00000000004296d5 in Baloo::MetadataMover::removeFileMetadata(QString const&) ()
#12 0x00007f47cfcb5e4f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x0000000000432f05 in Baloo::PendingFileQueue::removeFileIndex(QString const&) ()
#14 0x0000000000427856 in Baloo::PendingFileQueue::processCache() ()
#15 0x00007f47cfcb5e4f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f47cfcc2878 in QTimer::timerEvent(QTimerEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f47cfcb6e53 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f47cfc8760c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f47cfcdc89d in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f47cfcdcdd9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f47cc279127 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f47cc279380 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f47cc27942c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f47cfcdda7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f47cfc84dea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f47cfc8ce8c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x000000000041698c in main ()
Comment 5 Christoph Cullmann 2016-09-11 13:30:53 UTC
Hi, how large is your

.local/share/baloo/index

file?
Comment 6 Christoph Cullmann 2016-09-11 13:42:11 UTC

*** This bug has been marked as a duplicate of bug 367480 ***
Comment 7 José Gonçalves 2016-09-12 09:08:39 UTC
Hi,
I restarted baloo so I do not know if the size is the same when the
program crashed.
Right now the size is 5.0 GB.
And the infor in balooctl status is:

Baloo File Indexer is running
Indexer state: Indexing file content
Indexed 120536 / 204025 files
Current size of index is 992.07 MiB

Thanks
José

On Sun, Sep 11, 2016 at 2:30 PM, Christoph Cullmann via KDE Bugzilla
<bugzilla_noreply@kde.org> wrote:
> https://bugs.kde.org/show_bug.cgi?id=356114
>
> Christoph Cullmann <cullmann@kde.org> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |cullmann@kde.org
>              Status|UNCONFIRMED                 |CONFIRMED
>      Ever confirmed|0                           |1
>
> --- Comment #5 from Christoph Cullmann <cullmann@kde.org> ---
> Hi, how large is your
>
> .local/share/baloo/index
>
> file?
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 8 Christoph Cullmann 2016-09-12 09:09:59 UTC
Ok, then you are soon screwed again :/

You need at least git master, as baloo will kill itself after 5GB

(see already the wrapped output in status)

Current size of index is 992.07 MiB
Comment 9 Edward Donovan 2016-09-13 00:39:37 UTC
Pardon me if this isn't needed, or should be on the the bug this is duped to --

Same here, my ~/.local/share/baloo/index is 5.0G.

Thanks for looking at this, Christoph.