Bug 405893 - baloo_file_extractor crashes in Baloo::DocTermsCodec::encode()
Summary: baloo_file_extractor crashes in Baloo::DocTermsCodec::encode()
Status: RESOLVED FIXED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.56.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-03-26 12:50 UTC by Laurent Bonnaud
Modified: 2019-05-14 09:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Bonnaud 2019-03-26 12:50:07 UTC
Application: baloo_file (5.56.0)

Qt Version: 5.11.3
Frameworks Version: 5.56.0
Operating System: Linux 5.0.4-050004-generic x86_64
Distribution: Ubuntu Disco Dingo (development branch)

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

I deleted all baloo files/directories in my homedir (for a clean re-indexing) and logged in.
Running "balooctl start" also crashes immediately.

The crash can be reproduced every time.

-- Backtrace:
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 0x7f1a14a13f80 (LWP 14035))]

Thread 3 (Thread 0x7f1a1397e700 (LWP 14038)):
[KCrash Handler]
#6  0x00007f1a18e7485a in QByteArray::append (this=this@entry=0x7f1a1397da48, ba=...) at /usr/include/c++/8/bits/atomic_base.h:390
#7  0x00007f1a193cc11a in Baloo::DocTermsCodec::encode (this=this@entry=0x7f1a1397da47, terms=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:213
#8  0x00007f1a193a3d28 in Baloo::DocumentDB::put (this=this@entry=0x7f1a1397db10, docId=<optimized out>, docId@entry=114349209288731, list=...) at ./src/engine/documentdb.cpp:71
#9  0x00007f1a193c815b in Baloo::WriteTransaction::addDocument (this=0x7eda04004de0, doc=...) at ./src/engine/writetransaction.cpp:62
#10 0x00007f1a193c0a39 in Baloo::Transaction::addDocument (this=this@entry=0x7f1a1397dc50, doc=...) at ./src/engine/transaction.cpp:233
#11 0x000055df300acf76 in Baloo::FirstRunIndexer::run (this=0x55df31a32d40) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:60
#12 0x00007f1a18e68f91 in QThreadPoolThread::run (this=0x55df31a8b820) at thread/qthreadpool.cpp:101
#13 0x00007f1a18e70c77 in QThreadPrivate::start (arg=0x55df31a8b820) at thread/qthread_unix.cpp:367
#14 0x00007f1a179c3182 in start_thread (arg=<optimized out>) at pthread_create.c:486
#15 0x00007f1a189b1faf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f1a144a1700 (LWP 14037)):
#0  0x00007f1a189a5ba9 in __GI___poll (fds=0x7f1a0c005260, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f1a170ffcb6 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f1a0c005260, timeout=<optimized out>, context=0x7f1a0c000bf0) at ../../../glib/gmain.c:4228
#2  g_main_context_iterate (context=context@entry=0x7f1a0c000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:3922
#3  0x00007f1a170ffddc in g_main_context_iteration (context=0x7f1a0c000bf0, may_block=may_block@entry=1) at ../../../glib/gmain.c:3988
#4  0x00007f1a1906b04b in QEventDispatcherGlib::processEvents (this=0x7f1a0c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f1a1901814b in QEventLoop::exec (this=this@entry=0x7f1a144a0d70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f1a18e670d6 in QThread::exec (this=this@entry=0x7f1a19466d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f1a193ec545 in QDBusConnectionManager::run (this=0x7f1a19466d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f1a18e70c77 in QThreadPrivate::start (arg=0x7f1a19466d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#9  0x00007f1a179c3182 in start_thread (arg=<optimized out>) at pthread_create.c:486
#10 0x00007f1a189b1faf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f1a14a13f80 (LWP 14035)):
#0  0x00007f1a189a5ba9 in __GI___poll (fds=0x55df319e6d10, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f1a170ffcb6 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x55df319e6d10, timeout=<optimized out>, context=0x55df319cf4d0) at ../../../glib/gmain.c:4228
#2  g_main_context_iterate (context=context@entry=0x55df319cf4d0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:3922
#3  0x00007f1a170ffddc in g_main_context_iteration (context=0x55df319cf4d0, may_block=may_block@entry=1) at ../../../glib/gmain.c:3988
#4  0x00007f1a1906b04b in QEventDispatcherGlib::processEvents (this=0x55df319ceb40, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f1a1901814b in QEventLoop::exec (this=this@entry=0x7ffeea6a3e40, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f1a190202b2 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x000055df300a7997 in main (argc=<optimized out>, argv=<optimized out>) at ./src/file/main.cpp:104
[Inferior 1 (process 14035) detached]

Reported using DrKonqi
Comment 1 Laurent Bonnaud 2019-05-14 09:52:16 UTC
The crash no longer occurs.