Bug 394662

Summary: Systematic Baloo crash
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Thomas Vergnaud <thomas.vergnaud>
Component: Baloo File DaemonAssignee: baloo-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash CC: matejm98mthw
Priority: NOR Keywords: drkonqi
Version: 5.32.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Vergnaud 2018-05-25 07:46:28 UTC
Application: baloo_file (5.32.0)

Qt Version: 5.6.2
Frameworks Version: 5.32.0
Operating System: Linux 4.4.126-48-default x86_64
Distribution: "openSUSE Leap 42.3"

-- Information about the crash:
- What I was doing when the application crashed:
I was doing nothing. Baloo crashes every time, a few seconds after I logged into Plasma. The crash is systematic on this computer.

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 0x7f96942ad880 (LWP 3239))]

Thread 3 (Thread 0x7f5683fff700 (LWP 3241)):
[KCrash Handler]
#6  Baloo::getVarint32Ptr (value=0x7f5683ffe948, limit=0x7f56fbce9708 <error: Cannot access memory at address 0x7f56fbce9708>, p=0x0) at /usr/src/debug/baloo-5.32.0/src/codecs/coding.h:93
#7  Baloo::getDifferentialVarInt32 (p=0x0, p@entry=0x7f567f9cbeac "\261\021V\f \362\233\177V\177", limit=limit@entry=0x7f56fbce9708 <error: Cannot access memory at address 0x7f56fbce9708>, values=values@entry=0x7f5683ffe9a8) at /usr/src/debug/baloo-5.32.0/src/codecs/coding.cpp:120
#8  0x00007f969309a17f in Baloo::PositionCodec::decode (this=this@entry=0x7f5683ffe9ff, arr=...) at /usr/src/debug/baloo-5.32.0/src/codecs/positioncodec.cpp:56
#9  0x00007f9693085734 in Baloo::PositionDB::get (this=this@entry=0x7f5683ffeb00, term=...) at /usr/src/debug/baloo-5.32.0/src/engine/positiondb.cpp:101
#10 0x00007f9693097e8e in Baloo::WriteTransaction::commit (this=<optimized out>) at /usr/src/debug/baloo-5.32.0/src/engine/writetransaction.cpp:272
#11 0x00007f969308eeb2 in Baloo::Transaction::commit (this=this@entry=0x7f5683ffebe0) at /usr/src/debug/baloo-5.32.0/src/engine/transaction.cpp:262
#12 0x0000000000410765 in Baloo::FirstRunIndexer::run (this=0x12be140) at /usr/src/debug/baloo-5.32.0/src/file/firstrunindexer.cpp:81
#13 0x00007f96927c885e in QThreadPoolThread::run (this=0x130fcb0) at thread/qthreadpool.cpp:93
#14 0x00007f96927cba29 in QThreadPrivate::start (arg=0x130fcb0) at thread/qthread_unix.cpp:365
#15 0x00007f9690e0a724 in start_thread () from /lib64/libpthread.so.0
#16 0x00007f9691ddde8d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f9688f0b700 (LWP 3240)):
#0  0x00007f9691dd133d in read () from /lib64/libc.so.6
#1  0x00007f968e81f750 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f968e7dee49 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f968e7df2a8 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f968e7df42c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f96929de1ab in QEventDispatcherGlib::processEvents (this=0x7f96840008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:419
#6  0x00007f969298bbfb in QEventLoop::exec (this=this@entry=0x7f9688f0ad20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:206
#7  0x00007f96927c6f5a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#8  0x00007f9693b90295 in ?? () from /usr/lib64/libQt5DBus.so.5
#9  0x00007f96927cba29 in QThreadPrivate::start (arg=0x7f9693df9ce0) at thread/qthread_unix.cpp:365
#10 0x00007f9690e0a724 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f9691ddde8d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f96942ad880 (LWP 3239)):
#0  0x00007f9691dd13d7 in access () from /lib64/libc.so.6
#1  0x00007f9692924419 in QFileSystemEngine::fillMetaData (entry=..., data=..., what=..., what@entry=...) at io/qfilesystemengine_unix.cpp:503
#2  0x00007f96928c4336 in QFileInfo::isReadable (this=this@entry=0x7ffdb4799630) at io/qfileinfo.cpp:909
#3  0x00007f96928ba996 in QDirIteratorPrivate::matchesFilters (this=this@entry=0x12a9830, fileName=..., fi=...) at io/qdiriterator.cpp:378
#4  0x00007f96928bb9e8 in QDirIteratorPrivate::entryMatches (fileInfo=..., fileName=..., this=0x12a9830) at io/qdiriterator.cpp:209
#5  QDirIteratorPrivate::advance (this=0x12a9830) at io/qdiriterator.cpp:249
#6  0x00007f96928bc954 in QDirIterator::next (this=0x129e8b0) at io/qdiriterator.cpp:481
#7  0x0000000000419a99 in Baloo::FilteredDirIterator::next (this=0x12bfd00) at /usr/src/debug/baloo-5.32.0/src/file/filtereddiriterator.cpp:76
#8  0x000000000042468d in KInotify::Private::_k_addWatches (this=0x12a7e40) at /usr/src/debug/baloo-5.32.0/src/file/kinotify.cpp:163
#9  KInotify::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x1a09cb0) at /usr/src/debug/baloo-5.32.0/build/src/file/moc_kinotify.cpp:159
#10 0x00007f96929b8e26 in QObject::event (this=0x12b9150, e=<optimized out>) at kernel/qobject.cpp:1256
#11 0x00007f969298dcac in doNotify (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1090
#12 QCoreApplication::notify (this=<optimized out>, receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1076
#13 0x00007f969298dbe5 in QCoreApplication::notifyInternal2 (receiver=0x12b9150, event=event@entry=0x1a0df00) at kernel/qcoreapplication.cpp:1015
#14 0x00007f969298f9ca in QCoreApplication::sendEvent (event=0x1a0df00, receiver=<optimized out>) at kernel/qcoreapplication.h:225
#15 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x126fd60) at kernel/qcoreapplication.cpp:1650
#16 0x00007f969298ff78 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1508
#17 0x00007f96929deb03 in postEventSourceDispatch (s=0x1275960) at kernel/qeventdispatcher_glib.cpp:270
#18 0x00007f968e7df134 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#19 0x00007f968e7df388 in ?? () from /usr/lib64/libglib-2.0.so.0
#20 0x00007f968e7df42c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f96929de18c in QEventDispatcherGlib::processEvents (this=0x1275940, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#22 0x00007f969298bbfb in QEventLoop::exec (this=this@entry=0x7ffdb4799c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:206
#23 0x00007f9692993ae6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1285
#24 0x000000000040b590 in main (argc=1, argv=<optimized out>) at /usr/src/debug/baloo-5.32.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 393494, bug 368352, bug 367480, bug 364133.

Reported using DrKonqi
Comment 1 Matej Mrenica 2018-06-01 14:56:54 UTC

*** This bug has been marked as a duplicate of bug 389848 ***
Comment 2 Christoph Feck 2018-06-01 18:48:22 UTC

*** This bug has been marked as a duplicate of bug 367480 ***