Bug 403475 - baloo_file crashes in Baloo::putDifferentialVarInt32() / Baloo::PositionCodec::encode()
Summary: baloo_file crashes in Baloo::putDifferentialVarInt32() / Baloo::PositionCodec...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.53.0
Platform: openSUSE Linux
: HI crash
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-01-21 20:39 UTC by rafalkozlowski07
Modified: 2020-10-30 12:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rafalkozlowski07 2019-01-21 20:39:52 UTC
Application: baloo_file (5.53.0)

Qt Version: 5.12.0
Frameworks Version: 5.53.0
Operating System: Linux 4.20.0-1-default x86_64
Distribution: "openSUSE Tumbleweed"

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

It crashes almost everytime i restart my computer. I don't see any other problems.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Baloo File Indexing Daemon (baloo_file), signal: Bus error
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa859bb6940 (LWP 8934))]

Thread 3 (Thread 0x7fa857461700 (LWP 9086)):
[KCrash Handler]
#6  Baloo::putDifferentialVarInt32 (temporaryStorage=..., dst=dst@entry=0x7fa8574608b8, values=...) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/src/codecs/coding.cpp:104
#7  0x00007fa85dad547f in Baloo::PositionCodec::encode (this=this@entry=0x7fa8574608b7, list=...) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/src/codecs/positioncodec.cpp:39
#8  0x00007fa85dabfdb5 in Baloo::PositionDB::put (this=this@entry=0x7fa8574609c0, term=..., list=...) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/src/engine/positiondb.cpp:73
#9  0x00007fa85dad35b6 in Baloo::WriteTransaction::commit (this=0x558ff3631ad0) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/src/engine/writetransaction.cpp:312
#10 0x00007fa85dac9712 in Baloo::Transaction::commit (this=this@entry=0x7fa857460ae0) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/src/engine/transaction.cpp:269
#11 0x0000558ff1aa0b6d in Baloo::UnindexedFileIndexer::run (this=0x558ff48d0b50) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/src/file/unindexedfileindexer.cpp:76
#12 0x00007fa85d54d5d1 in QThreadPoolThread::run (this=0x558ff461dff0) at thread/qthreadpool.cpp:99
#13 0x00007fa85d549702 in QThreadPrivate::start (arg=0x558ff461dff0) at thread/qthread_unix.cpp:361
#14 0x00007fa85ba73554 in start_thread () from /lib64/libpthread.so.0
#15 0x00007fa85cc9accf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fa858004700 (LWP 8937)):
#0  0x00007fa85cc902c9 in poll () from /lib64/libc.so.6
#1  0x00007fa85ace2fb6 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa85ace30dc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa85d75388b in QEventDispatcherGlib::processEvents (this=0x7fa850000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fa85d6fe02b in QEventLoop::exec (this=this@entry=0x7fa858003c30, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#5  0x00007fa85d5483b6 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#6  0x00007fa85daf5565 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007fa85d549702 in QThreadPrivate::start (arg=0x7fa85db6fd80) at thread/qthread_unix.cpp:361
#8  0x00007fa85ba73554 in start_thread () from /lib64/libpthread.so.0
#9  0x00007fa85cc9accf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fa859bb6940 (LWP 8934)):
#0  0x00007fa85ba75a6e in __pthread_mutex_lock_full () from /lib64/libpthread.so.0
#1  0x00007fa85ba056fb in ?? () from /usr/lib64/liblmdb-0.9.22.so
#2  0x00007fa85ba06bcc in mdb_txn_begin () from /usr/lib64/liblmdb-0.9.22.so
#3  0x00007fa85dac902b in Baloo::Transaction::Transaction (this=0x7ffc8e658bd0, db=..., type=Baloo::Transaction::ReadWrite) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/src/engine/transaction.cpp:53
#4  0x0000558ff1aadf62 in Baloo::MetadataMover::removeFileMetadata (this=0x558ff2eca420, file=...) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/src/file/metadatamover.cpp:104
#5  0x00007fa85d729200 in QtPrivate::QSlotObjectBase::call (a=0x7ffc8e658d10, r=0x558ff2eca420, this=0x558ff2ec4a80) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#6  QMetaObject::activate (sender=0x558ff2ec1310, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3759
#7  0x0000558ff1abc065 in Baloo::PendingFileQueue::removeFileIndex (this=this@entry=0x558ff2ec1310, _t1=...) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/build/src/file/baloofilecommon_autogen/EWIEGA46WW/moc_pendingfilequeue.cpp:226
#8  0x0000558ff1aabd56 in Baloo::PendingFileQueue::processCache (this=0x558ff2ec1310) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/src/file/pendingfilequeue.cpp:91
#9  0x00007fa85d729200 in QtPrivate::QSlotObjectBase::call (a=0x7ffc8e658eb0, r=0x558ff2ec1310, this=0x558ff2ebd770) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#10 QMetaObject::activate (sender=0x558ff2ec1328, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3759
#11 0x00007fa85d734e07 in QTimer::timeout (this=<optimized out>, _t1=...) at .moc/moc_qtimer.cpp:204
#12 0x00007fa85d72991b in QObject::event (this=0x558ff2ec1328, e=<optimized out>) at kernel/qobject.cpp:1230
#13 0x00007fa85d6ff336 in doNotify (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:142
#14 QCoreApplication::notify (event=<optimized out>, receiver=<optimized out>, this=<optimized out>) at kernel/qcoreapplication.cpp:1137
#15 QCoreApplication::notifyInternal2 (receiver=0x558ff2ec1328, event=0x7ffc8e658ff0) at kernel/qcoreapplication.cpp:1061
#16 0x00007fa85d752c83 in QTimerInfoList::activateTimers (this=0x558ff2eb9380) at kernel/qtimerinfo_unix.cpp:643
#17 0x00007fa85d7534d4 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
#18 0x00007fa85ace2c85 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#19 0x00007fa85ace3048 in ?? () from /usr/lib64/libglib-2.0.so.0
#20 0x00007fa85ace30dc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#21 0x00007fa85d753873 in QEventDispatcherGlib::processEvents (this=0x558ff2eb6730, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#22 0x00007fa85d6fe02b in QEventLoop::exec (this=this@entry=0x7ffc8e659250, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#23 0x00007fa85d706192 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#24 0x0000558ff1a92997 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/baloo5-5.53.0-1.1.x86_64/src/file/main.cpp:104
[Inferior 1 (process 8934) detached]

Reported using DrKonqi
Comment 1 Nate Graham 2020-10-26 16:11:40 UTC
No duplicate bug reports seen in almost a year. After all the bugfixing work done during that time, I think we can call this fixed!
Comment 2 rafalkozlowski07 2020-10-26 16:23:42 UTC
(In reply to Nate Graham from comment #1)
> No duplicate bug reports seen in almost a year. After all the bugfixing work
> done during that time, I think we can call this fixed!

I'm not sure if i didn't see that error in last month. Just ignored it because it doesn't bring any problems. If I'll get it again i will report it. For now let's call it fixed.
Comment 3 rafalkozlowski07 2020-10-30 07:04:33 UTC
Just today it reported crash
Application: baloo_file (baloo_file), signal: Aborted

[New LWP 2312]
[New LWP 2893]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f8248d55e7f in poll () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f8246b9e140 (LWP 2303))]

Thread 3 (Thread 0x7f423ffff640 (LWP 2893)):
[KCrash Handler]
#4  0x00007f8248c9e641 in raise () from /lib64/libc.so.6
#5  0x00007f8248c87538 in abort () from /lib64/libc.so.6
#6  0x00007f8248ce0177 in __libc_message () from /lib64/libc.so.6
#7  0x00007f8248ce7bcc in malloc_printerr () from /lib64/libc.so.6
#8  0x00007f8248ce7ffc in munmap_chunk () from /lib64/libc.so.6
#9  0x00007f8249717ece in QTypedArrayData<Baloo::PositionInfo>::deallocate (data=0x7f42383fba20) at /usr/include/qt5/QtCore/qarraydata.h:236
#10 QVector<Baloo::PositionInfo>::freeData (this=0x7f423fffe8e8, x=0x7f42383fba20) at /usr/include/qt5/QtCore/qvector.h:585
#11 QVector<Baloo::PositionInfo>::~QVector (this=<optimized out>, this=<optimized out>) at /usr/include/qt5/QtCore/qvector.h:73
#12 QVector<Baloo::PositionInfo>::~QVector (this=<optimized out>, this=<optimized out>) at /usr/include/qt5/QtCore/qvector.h:73
#13 Baloo::WriteTransaction::commit (this=<optimized out>) at /usr/src/debug/baloo5-5.75.0-1.1.x86_64/src/engine/writetransaction.cpp:286
#14 0x00007f824970b83b in Baloo::Transaction::commit (this=this@entry=0x7f423fffeaa0) at /usr/src/debug/baloo5-5.75.0-1.1.x86_64/src/engine/transaction.cpp:275
#15 0x000056494bfd3ad3 in Baloo::UnindexedFileIndexer::run (this=0x56494ca30ee0) at /usr/src/debug/baloo5-5.75.0-1.1.x86_64/src/file/unindexedfileindexer.cpp:61
#16 0x00007f82492286f2 in QThreadPoolThread::run (this=0x56494c9359d0) at thread/qthreadpool.cpp:100
#17 0x00007f8249224911 in QThreadPrivate::start (arg=0x56494c9359d0) at thread/qthread_unix.cpp:329
#18 0x00007f8248180eb1 in start_thread () from /lib64/libpthread.so.0
#19 0x00007f8248d60ccf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f8244d54640 (LWP 2312)):
#0  0x00007f8248d55e7f in poll () from /lib64/libc.so.6
#1  0x00007f82478f55ee in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f82478f570f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f824945b5cb in QEventDispatcherGlib::processEvents (this=0x7f8240000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f8249402a1b in QEventLoop::exec (this=this@entry=0x7f8244d53c70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f82492237ce in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f824973aa27 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f8249224911 in QThreadPrivate::start (arg=0x7f82497a7d80) at thread/qthread_unix.cpp:329
#8  0x00007f8248180eb1 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f8248d60ccf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f8246b9e140 (LWP 2303)):
#0  0x00007f8248d55e7f in poll () from /lib64/libc.so.6
#1  0x00007f82478f55ee in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f82478f570f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f824945b5af in QEventDispatcherGlib::processEvents (this=0x56494c76a390, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#4  0x00007f8249402a1b in QEventLoop::exec (this=this@entry=0x7ffc3f94dc60, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f824940ac90 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x000056494bfc1203 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/baloo5-5.75.0-1.1.x86_64/src/file/main.cpp:78
[Inferior 1 (process 2303) detached]
Comment 4 Christoph Feck 2020-10-30 12:12:33 UTC
That's a different backtrace. Please report it as a new ticket.
Comment 5 rafalkozlowski07 2020-10-30 12:19:59 UTC
(In reply to Christoph Feck from comment #4)
> That's a different backtrace. Please report it as a new ticket.

Wanted but drkonqi couldn't because pid of process missed(Something like that, not remember right now). I had to install debugging symbols and after that it missed. Next time I'll see, and will create manually if need.