Bug 395902 - baloo_file crashes in Baloo::DocumentTimeDB::del()
Summary: baloo_file crashes in Baloo::DocumentTimeDB::del()
Status: RESOLVED FIXED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.47.0
Platform: Compiled Sources Linux
: HI crash
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords: drkonqi
: 365164 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-26 20:11 UTC by David Kredba
Modified: 2020-10-26 16:19 UTC (History)
2 users (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 David Kredba 2018-06-26 20:11:41 UTC
Application: baloo_file (5.47.0)
 (Compiled from sources)
Qt Version: 5.11.0
Frameworks Version: 5.47.0
Operating System: Linux 4.17.0-gentoo x86_64
Distribution: "Gentoo Base System release 2.6"

-- Information about the crash:
- What I was doing when the application crashed:
Watching a local video file, rsyncing remote server backup to the same RAID 1 LUKS encrypted EXT4 volume where the file was played from - rsync was writing two big DB gzipped backup files during the crash. Found KDE crash reporter icon after rsync finished.

-- 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 0x7fe3799087c0 (LWP 4428))]

Thread 3 (Thread 0x7fe36d0d4700 (LWP 4546)):
#0  g_mutex_unlock (mutex=0x7fa360000bf0) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gthread-posix.c:1348
#1  0x00007fe373ab5340 in g_main_context_prepare (context=context@entry=0x7fa360000bf0, priority=priority@entry=0x7fe36d0d3a90) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gmain.c:3508
#2  0x00007fe373ab5d7b in g_main_context_iterate (context=context@entry=0x7fa360000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gmain.c:3848
#3  0x00007fe373ab5f5c in g_main_context_iteration (context=0x7fa360000bf0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gmain.c:3929
#4  0x00007fe37801e5bb in QEventDispatcherGlib::processEvents (this=0x7fa360000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007fe377fcb20a in QEventLoop::exec (this=this@entry=0x7fe36d0d3cb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x000055a5bdcff01d in Baloo::FileContentIndexer::run (this=0x55a5bfc4de00) at /var/tmp/portage/kde-frameworks/baloo-5.47.0/work/baloo-5.47.0/src/file/filecontentindexer.cpp:73
#7  0x00007fe377e32191 in QThreadPoolThread::run (this=0x55a5bfe7e790) at thread/qthreadpool.cpp:101
#8  0x00007fe377e3a50f in QThreadPrivate::start (arg=0x55a5bfe7e790) at thread/qthread_unix.cpp:367
#9  0x00007fe37635c9aa in start_thread (arg=0x7fe36d0d4700) at pthread_create.c:463
#10 0x00007fe37732f79f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fe36dad6700 (LWP 4438)):
#0  __libc_enable_asynccancel () at ../sysdeps/unix/sysv/linux/x86_64/cancellation.S:67
#1  0x00007fe377323c1b in __GI___poll (fds=0x7fe368003ce0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#2  0x00007fe373ab5e49 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7fe368003ce0, timeout=<optimized out>, context=0x7fe368000bf0) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gmain.c:4169
#3  g_main_context_iterate (context=context@entry=0x7fe368000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gmain.c:3863
#4  0x00007fe373ab5f5c in g_main_context_iteration (context=0x7fe368000bf0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gmain.c:3929
#5  0x00007fe37801e5bb in QEventDispatcherGlib::processEvents (this=0x7fe368000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007fe377fcb20a in QEventLoop::exec (this=this@entry=0x7fe36dad5db0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#7  0x00007fe377e30bea in QThread::exec (this=this@entry=0x7fe379469d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:522
#8  0x00007fe3791f1de5 in QDBusConnectionManager::run (this=0x7fe379469d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#9  0x00007fe377e3a50f in QThreadPrivate::start (arg=0x7fe379469d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#10 0x00007fe37635c9aa in start_thread (arg=0x7fe36dad6700) at pthread_create.c:463
#11 0x00007fe37732f79f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fe3799087c0 (LWP 4428)):
[KCrash Handler]
#6  0x00007fe37508f4c4 in mdb_midl_xmerge (idl=idl@entry=0x7fe36c835018, merge=merge@entry=0x7fa4a8b93010) at midl.c:207
#7  0x00007fe375086c0f in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7ffd13bad348, mc=<optimized out>) at mdb.c:2271
#8  0x00007fe375087089 in mdb_page_touch (mc=mc@entry=0x7ffd13bad7d0) at mdb.c:2421
#9  0x00007fe375088cb4 in mdb_cursor_touch (mc=mc@entry=0x7ffd13bad7d0) at mdb.c:6481
#10 0x00007fe37508ceda in mdb_cursor_del (mc=0x7ffd13bad7d0, flags=32) at mdb.c:7040
#11 0x00007fe37508e52c in mdb_del0 (txn=0x55a5bfc4c4e0, dbi=9, key=0x7ffd13badbb0, data=<optimized out>, flags=32, flags@entry=0) at mdb.c:8534
#12 0x00007fe37508e8b1 in mdb_del (txn=<optimized out>, dbi=<optimized out>, key=key@entry=0x7ffd13badbb0, data=<optimized out>, data@entry=0x0) at mdb.c:8494
#13 0x00007fe378933fce in Baloo::DocumentTimeDB::del (this=this@entry=0x7ffd13badcc0, docId=<optimized out>, docId@entry=197039093652192513) at /var/tmp/portage/kde-frameworks/baloo-5.47.0/work/baloo-5.47.0/src/engine/documenttimedb.cpp:100
#14 0x00007fe3789474a3 in Baloo::WriteTransaction::removeDocument (this=<optimized out>, id=id@entry=197039093652192513) at /var/tmp/portage/kde-frameworks/baloo-5.47.0/work/baloo-5.47.0/src/engine/writetransaction.cpp:140
#15 0x00007fe3789420e9 in Baloo::Transaction::removeDocument (this=this@entry=0x7ffd13bade10, id=id@entry=197039093652192513) at /var/tmp/portage/kde-frameworks/baloo-5.47.0/work/baloo-5.47.0/src/engine/transaction.cpp:242
#16 0x000055a5bdd07826 in Baloo::MetadataMover::removeMetadata (this=this@entry=0x55a5bfc42bb0, tr=tr@entry=0x7ffd13bade10, url=...) at /var/tmp/portage/kde-frameworks/baloo-5.47.0/work/baloo-5.47.0/src/file/metadatamover.cpp:138
#17 0x000055a5bdd078c0 in Baloo::MetadataMover::removeFileMetadata (this=0x55a5bfc42bb0, file=...) at /var/tmp/portage/kde-frameworks/baloo-5.47.0/work/baloo-5.47.0/src/file/metadatamover.cpp:105
#18 0x00007fe377ff5377 in QtPrivate::QSlotObjectBase::call (a=0x7ffd13badf50, r=0x55a5bfc42bb0, this=0x55a5bfc415f0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#19 QMetaObject::activate (sender=sender@entry=0x55a5bfc3e060, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd13badf50) at kernel/qobject.cpp:3754
#20 0x00007fe377ff58b7 in QMetaObject::activate (sender=sender@entry=0x55a5bfc3e060, m=m@entry=0x55a5bdf2a900 <Baloo::PendingFileQueue::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd13badf50) at kernel/qobject.cpp:3633
#21 0x000055a5bdd14e45 in Baloo::PendingFileQueue::removeFileIndex (this=this@entry=0x55a5bfc3e060, _t1=...) at /var/tmp/portage/kde-frameworks/baloo-5.47.0/work/baloo-5.47.0_build/src/file/baloofilecommon_autogen/EWIEGA46WW/moc_pendingfilequeue.cpp:222
#22 0x000055a5bdd0569e in Baloo::PendingFileQueue::processCache (this=0x55a5bfc3e060) at /var/tmp/portage/kde-frameworks/baloo-5.47.0/work/baloo-5.47.0/src/file/pendingfilequeue.cpp:88
#23 0x00007fe377ff5377 in QtPrivate::QSlotObjectBase::call (a=0x7ffd13bae100, r=0x55a5bfc3e060, this=0x55a5bfc462c0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#24 QMetaObject::activate (sender=sender@entry=0x55a5bfc3e078, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd13bae100) at kernel/qobject.cpp:3754
#25 0x00007fe377ff58b7 in QMetaObject::activate (sender=sender@entry=0x55a5bfc3e078, m=m@entry=0x7fe378437da0 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd13bae100) at kernel/qobject.cpp:3633
#26 0x00007fe3780016f7 in QTimer::timeout (this=this@entry=0x55a5bfc3e078, _t1=...) at .moc/moc_qtimer.cpp:200
#27 0x00007fe378001a08 in QTimer::timerEvent (this=0x55a5bfc3e078, e=<optimized out>) at kernel/qtimer.cpp:255
#28 0x00007fe377ff5f3b in QObject::event (this=0x55a5bfc3e078, e=<optimized out>) at kernel/qobject.cpp:1273
#29 0x00007fe377fcc31a in doNotify (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1138
#30 0x00007fe377fcc407 in QCoreApplication::notifyInternal2 (receiver=0x55a5bfc3e078, event=event@entry=0x7ffd13bae280) at kernel/qcoreapplication.cpp:1048
#31 0x00007fe37801d8cb in QCoreApplication::sendEvent (event=0x7ffd13bae280, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#32 QTimerInfoList::activateTimers (this=this@entry=0x55a5bfc40b80) at kernel/qtimerinfo_unix.cpp:643
#33 0x00007fe37801e161 in timerSourceDispatch (source=source@entry=0x55a5bfc40b20) at kernel/qeventdispatcher_glib.cpp:182
#34 0x00007fe373ab5c97 in g_main_dispatch (context=0x55a5bfc3e800) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gmain.c:3142
#35 g_main_context_dispatch (context=context@entry=0x55a5bfc3e800) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gmain.c:3795
#36 0x00007fe373ab5ed0 in g_main_context_iterate (context=context@entry=0x55a5bfc3e800, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gmain.c:3868
#37 0x00007fe373ab5f5c in g_main_context_iteration (context=0x55a5bfc3e800, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.54.3-r6/work/glib-2.54.3/glib/gmain.c:3929
#38 0x00007fe37801e59f in QEventDispatcherGlib::processEvents (this=0x55a5bfc3df90, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#39 0x00007fe377fcb20a in QEventLoop::exec (this=this@entry=0x7ffd13bae4d0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#40 0x00007fe377fd3af0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1336
#41 0x000055a5bdcf152c in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-frameworks/baloo-5.47.0/work/baloo-5.47.0/src/file/main.cpp:104

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

Possible duplicates by query: bug 390200.

Reported using DrKonqi
Comment 1 Nate Graham 2018-11-26 18:18:45 UTC

*** This bug has been marked as a duplicate of bug 393583 ***
Comment 2 Nate Graham 2018-11-26 19:59:08 UTC
*** Bug 365164 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2020-10-26 16:19:12 UTC
No duplicate bug reports seen in almost two years. After all the bugfixing work done during that time, I think we can call this fixed!