Bug 401659 - Baloo Segmentation Fault in Baloo::PostingCodec::decode
Summary: Baloo Segmentation Fault in Baloo::PostingCodec::decode
Status: RESOLVED DUPLICATE of bug 367480
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.52.0
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-12-02 16:36 UTC by Tim Mason
Modified: 2018-12-22 18:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.46 KB, text/plain)
2018-12-22 18:12 UTC, Reinhard Auner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Mason 2018-12-02 16:36:53 UTC
Application: baloo_file (5.52.0)
 (Compiled from sources)
Qt Version: 5.11.1
Frameworks Version: 5.52.0
Operating System: Linux 4.19.6-gentoo x86_64
Distribution: "Gentoo Base System release 2.6"

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

I had just booted my computer and started KDE through SDDM.

- Unusual behavior I noticed:

It took unusually long for the login prompt to go away and the plasma loading screen to show up.

The crash can be reproduced every time.

-- Backtrace:
Application: Baloo File Indexing Daemon (baloo_file), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f8ed352f7c0 (LWP 4098))]

Thread 3 (Thread 0x7f4ec3fff700 (LWP 4798)):
[KCrash Handler]
#6  0x00007f8ed0f41d64 in ?? () from /lib64/libc.so.6
#7  0x00007f8ed25421c3 in memcpy (__len=18446744072934008032, __src=<optimized out>, __dest=<optimized out>) at /usr/include/bits/string_fortified.h:34
#8  Baloo::PostingCodec::decode (this=this@entry=0x7f4ec3ffea67, arr=...) at /usr/src/debug/kde-frameworks/baloo-5.52.0/baloo-5.52.0/src/codecs/postingcodec.cpp:42
#9  0x00007f8ed2533a14 in Baloo::PostingDB::get (this=this@entry=0x7f4ec3ffeb50, term=...) at /usr/src/debug/kde-frameworks/baloo-5.52.0/baloo-5.52.0/src/engine/postingdb.cpp:100
#10 0x00007f8ed253f960 in Baloo::WriteTransaction::commit (this=0x7f4ebc003400) at /usr/src/debug/kde-frameworks/baloo-5.52.0/baloo-5.52.0/src/engine/writetransaction.cpp:264
#11 0x00007f8ed25390a2 in Baloo::Transaction::commit (this=this@entry=0x7f4ec3ffec70) at /usr/src/debug/kde-frameworks/baloo-5.52.0/baloo-5.52.0/src/engine/transaction.cpp:269
#12 0x0000555df74e37e7 in Baloo::UnindexedFileIndexer::run (this=0x555df97ad900) at /usr/src/debug/kde-frameworks/baloo-5.52.0/baloo-5.52.0/src/file/unindexedfileindexer.cpp:76
#13 0x00007f8ed19dc92b in QThreadPoolThread::run (this=0x555df9738be0) at thread/qthreadpool.cpp:101
#14 0x00007f8ed19e6666 in QThreadPrivate::start (arg=0x555df9738be0) at thread/qthread_unix.cpp:367
#15 0x00007f8ecedb09aa in start_thread () from /lib64/libpthread.so.0
#16 0x00007f8ed0edc15f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f8ec8a6e700 (LWP 4111)):
#0  0x00007f8ed0ed05f3 in poll () from /lib64/libc.so.6
#1  0x00007f8ecd3829f9 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f8ec4003ce0, timeout=<optimized out>, context=0x7f8ec4000bf0) 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=0x7f8ec4000bf0, 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  0x00007f8ecd382b0c in g_main_context_iteration (context=0x7f8ec4000bf0, 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  0x00007f8ed1bf2e2b in QEventDispatcherGlib::processEvents (this=0x7f8ec4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f8ed1b958bb in QEventLoop::exec (this=this@entry=0x7f8ec8a6ddb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f8ed19dae7a in QThread::exec (this=this@entry=0x7f8ed29d6d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:525
#7  0x00007f8ed275ede5 in QDBusConnectionManager::run (this=0x7f8ed29d6d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f8ed19e6666 in QThreadPrivate::start (arg=0x7f8ed29d6d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#9  0x00007f8ecedb09aa in start_thread () from /lib64/libpthread.so.0
#10 0x00007f8ed0edc15f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f8ed352f7c0 (LWP 4098)):
#0  0x00007f8ed0ed05f3 in poll () from /lib64/libc.so.6
#1  0x00007f8ecd3829f9 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x555df96578a0, timeout=<optimized out>, context=0x555df96425c0) 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=0x555df96425c0, 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  0x00007f8ecd382b0c in g_main_context_iteration (context=0x555df96425c0, 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  0x00007f8ed1bf2e2b in QEventDispatcherGlib::processEvents (this=0x555df9641c30, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f8ed1b958bb in QEventLoop::exec (this=this@entry=0x7ffc4e8d2fd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f8ed1b9f1c0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1336
#7  0x0000555df74d895c in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kde-frameworks/baloo-5.52.0/baloo-5.52.0/src/file/main.cpp:104

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

Possible duplicates by query: bug 401445, bug 400756, bug 400524, bug 400213, bug 400157.

Reported using DrKonqi
Comment 1 Nate Graham 2018-12-07 23:05:41 UTC

*** This bug has been marked as a duplicate of bug 367480 ***
Comment 2 Reinhard Auner 2018-12-22 18:12:58 UTC
Created attachment 117063 [details]
New crash information added by DrKonqi

baloo_file (5.45.0) using Qt 5.9.4

- What I was doing when the application crashed:

I was surfing the internet and listening to music via amarok.

-- Backtrace (Reduced):
#7  0x00007f6cfbbdda93 in memcpy (__len=2067, __src=<optimized out>, __dest=<optimized out>) at /usr/include/bits/string_fortified.h:34
#8  Baloo::PostingCodec::decode (this=this@entry=0x7f6cf1679997, arr=...) at /usr/src/debug/baloo5-5.45.0-lp150.2.1.x86_64/src/codecs/postingcodec.cpp:42
#9  0x00007f6cfbbcef64 in Baloo::PostingDB::get (this=this@entry=0x7f6cf1679a80, term=...) at /usr/src/debug/baloo5-5.45.0-lp150.2.1.x86_64/src/engine/postingdb.cpp:100
#10 0x00007f6cfbbdb180 in Baloo::WriteTransaction::commit (this=0x7f2ce4031ca0) at /usr/src/debug/baloo5-5.45.0-lp150.2.1.x86_64/src/engine/writetransaction.cpp:259
#11 0x00007f6cfbbd44c2 in Baloo::Transaction::commit (this=this@entry=0x7f6cf1679b90) at /usr/src/debug/baloo5-5.45.0-lp150.2.1.x86_64/src/engine/transaction.cpp:262