Bug 372655

Summary: baloo_file crashes in Baloo::IdFilenameDB::del()
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Julian Schmidt <julian>
Component: Baloo File DaemonAssignee: Pinak Ahuja <pinak.ahuja>
Status: RESOLVED FIXED    
Severity: crash CC: albzey, david, herzenschein, jlambrec, kde, KevinKleinbeck, nate, ok, will.saunders
Priority: HI Keywords: drkonqi
Version: 5.18.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Julian Schmidt 2016-11-19 08:03:34 UTC
Application: baloo_file (5.18.0)

Qt Version: 5.5.1
Operating System: Linux 4.4.0-47-generic x86_64
Distribution: Ubuntu 16.04.1 LTS

-- Information about the crash:
Whenever I start a VirtualBox VM the Baloo daemon crashes. Consistent behaviour for several weeks now. I have Win 7 as a guest OS, but the crash happens immediately when I hit the start VM button.  Random crashes happen without VM use, too. But not as regular.

The crash can be reproduced every time.

-- Backtrace:
Application: Baloo File Indexing Daemon (baloo_file), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  0x00007f729e469428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007f729e46b02a in __GI_abort () at abort.c:89
#8  0x00007f729cc6e002 in mdb_assert_fail (env=0x19d5260, expr_txt=expr_txt@entry=0x7f729cc6fa5f "rc == 0", func=func@entry=0x7f729cc70398 <__func__.7098> "mdb_page_dirty", line=line@entry=2065, file=0x7f729cc6fa40 "mdb.c") at mdb.c:1481
#9  0x00007f729cc636a5 in mdb_page_dirty (txn=0x19cb4a0, mp=<optimized out>) at mdb.c:2065
#10 0x00007f729cc64863 in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7ffd5fc1b468, mc=0x7ffd5fc1b8e0) at mdb.c:2246
#11 0x00007f729cc64ac9 in mdb_page_touch (mc=mc@entry=0x7ffd5fc1b8e0) at mdb.c:2364
#12 0x00007f729cc66704 in mdb_cursor_touch (mc=mc@entry=0x7ffd5fc1b8e0) at mdb.c:6267
#13 0x00007f729cc6a857 in mdb_cursor_del (mc=0x7ffd5fc1b8e0, flags=32) at mdb.c:6826
#14 0x00007f729cc6bdc0 in mdb_del0 (txn=0x19cb4a0, dbi=8, key=0x7ffd5fc1bcc0, data=0x0, flags=32, flags@entry=0) at mdb.c:8305
#15 0x00007f729cc6c151 in mdb_del (txn=<optimized out>, dbi=<optimized out>, key=key@entry=0x7ffd5fc1bcc0, data=<optimized out>, data@entry=0x0) at mdb.c:8265
#16 0x00007f729f5fe86e in Baloo::IdFilenameDB::del (this=this@entry=0x7ffd5fc1be00, docId=docId@entry=82775955508100099) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/engine/idfilenamedb.cpp:127
#17 0x00007f729f612ffb in Baloo::DocumentUrlDB::replace<Baloo::WriteTransaction::removeDocument(quint64)::<lambda(quint64)> > (shouldDeleteFolder=..., url=..., docId=82775955508100099, this=0x7ffd5fc1bdf0) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/engine/documenturldb.h:96
#18 Baloo::DocumentUrlDB::del<Baloo::WriteTransaction::removeDocument(quint64)::<lambda(quint64)> > (shouldDeleteFolder=..., docId=82775955508100099, this=0x7ffd5fc1bdf0) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/engine/documenturldb.h:53
#19 Baloo::WriteTransaction::removeDocument (this=<optimized out>, id=id@entry=82775955508100099) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/engine/writetransaction.cpp:132
#20 0x00007f729f60bff9 in Baloo::Transaction::removeDocument (this=this@entry=0x7ffd5fc1bed0, id=id@entry=82775955508100099) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/engine/transaction.cpp:235
#21 0x0000000000429632 in Baloo::MetadataMover::removeMetadata (this=this@entry=0x19d5380, tr=tr@entry=0x7ffd5fc1bed0, url=...) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/file/metadatamover.cpp:82
#22 0x000000000042a012 in Baloo::MetadataMover::moveFileMetadata (this=0x19d5380, from=..., to=...) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/file/metadatamover.cpp:53
#23 0x00007f729f13cbaf in QtPrivate::QSlotObjectBase::call (a=0x7ffd5fc1c030, r=0x7ffd5fc1c6f0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:124
#24 QMetaObject::activate (sender=sender@entry=0x19c8510, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=7, argv=argv@entry=0x7ffd5fc1c030) at kernel/qobject.cpp:3698
#25 0x00007f729f13d537 in QMetaObject::activate (sender=sender@entry=0x19c8510, m=m@entry=0x644cc0 <KInotify::staticMetaObject>, local_signal_index=local_signal_index@entry=7, argv=argv@entry=0x7ffd5fc1c030) at kernel/qobject.cpp:3578
#26 0x000000000042aaba in KInotify::moved (this=this@entry=0x19c8510, _t1=..., _t2=...) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/obj-x86_64-linux-gnu/src/file/moc_kinotify.cpp:330
#27 0x000000000042cbff in KInotify::slotEvent (this=<optimized out>, socket=<optimized out>) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/file/kinotify.cpp:421
#28 0x00007f729f13cbaf in QtPrivate::QSlotObjectBase::call (a=0x7ffd5fc1c2c0, r=0x19c8510, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:124
#29 QMetaObject::activate (sender=sender@entry=0x19bb0a0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd5fc1c2c0) at kernel/qobject.cpp:3698
#30 0x00007f729f13d537 in QMetaObject::activate (sender=sender@entry=0x19bb0a0, m=m@entry=0x7f729f357780 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd5fc1c2c0) at kernel/qobject.cpp:3578
#31 0x00007f729f1bc24e in QSocketNotifier::activated (this=this@entry=0x19bb0a0, _t1=13) at .moc/moc_qsocketnotifier.cpp:134
#32 0x00007f729f1491cb in QSocketNotifier::event (this=0x19bb0a0, e=<optimized out>) at kernel/qsocketnotifier.cpp:260
#33 0x00007f729f10e36c in QCoreApplication::notify (event=0x7ffd5fc1c380, receiver=0x19bb0a0, this=0x7ffd5fc1c650) at kernel/qcoreapplication.cpp:1038
#34 QCoreApplication::notifyInternal (this=0x7ffd5fc1c650, receiver=0x19bb0a0, event=event@entry=0x7ffd5fc1c380) at kernel/qcoreapplication.cpp:965
#35 0x00007f729f164c95 in QCoreApplication::sendEvent (event=0x7ffd5fc1c380, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:224
#36 socketNotifierSourceDispatch (source=0x18ba140) at kernel/qeventdispatcher_glib.cpp:101
#37 0x00007f729b6ff1a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f729b6ff400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f729b6ff4ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f729f1647cf in QEventDispatcherGlib::processEvents (this=0x18ba120, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#41 0x00007f729f10bb4a in QEventLoop::exec (this=this@entry=0x7ffd5fc1c590, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#42 0x00007f729f113bec in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229
#43 0x000000000041698c in main (argc=1, argv=<optimized out>) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/file/main.cpp:88

Reported using DrKonqi
Comment 1 Julian Schmidt 2016-11-22 07:37:08 UTC
the crash also happens when I copy/create a file with dolphin. Seems like a general HD access problem.
Comment 2 Elvis Angelaccio 2016-12-27 10:45:47 UTC
*** Bug 374183 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Feck 2017-07-17 20:38:17 UTC
*** Bug 375075 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2017-07-17 20:38:36 UTC
*** Bug 375384 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2017-07-17 20:38:54 UTC
*** Bug 377271 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2017-07-17 20:39:14 UTC
*** Bug 378233 has been marked as a duplicate of this bug. ***
Comment 7 Christoph Feck 2017-07-17 20:39:30 UTC
*** Bug 378290 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2017-07-17 20:39:51 UTC
*** Bug 378947 has been marked as a duplicate of this bug. ***
Comment 9 Christoph Feck 2017-07-17 20:40:19 UTC
*** Bug 380111 has been marked as a duplicate of this bug. ***
Comment 10 Albert Zeyer 2017-07-18 06:17:26 UTC
My home file system is on a NFS share. Maybe that is relevant.
Comment 11 Brett Keller 2019-07-10 21:44:54 UTC
Created attachment 121455 [details]
New crash information added by DrKonqi

baloo_file (5.44.0) using Qt 5.9.5

- What I was doing when the application crashed:

This happens just about every time I boot up and login to a Plasma desktop session, right after login before I even click on anything.

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f8f221ce801 in __GI_abort () at abort.c:79
#8  0x00007f8f1ff8b932 in mdb_assert_fail (env=0x55b1261bc5c0, expr_txt=expr_txt@entry=0x7f8f1ff8d22f "rc == 0", func=func@entry=0x7f8f1ff8db78 <__func__.7016> "mdb_page_dirty", line=line@entry=2121, file=0x7f8f1ff8d210 "mdb.c") at mdb.c:1536
#9  0x00007f8f1ff807b5 in mdb_page_dirty (txn=0x55b1261b81e0, mp=<optimized out>) at mdb.c:2121
#10 0x00007f8f1ff819bb in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7ffc8530a5c8, mc=<optimized out>) at mdb.c:2302
Comment 12 Nate Graham 2020-10-26 16:18:36 UTC
(In reply to Brett Keller from comment #11)
> Created attachment 121455 [details]
> New crash information added by DrKonqi
That's in Baloo::DocumentDB::del(), which is different, and tracked with Bug 405284.

As for this issue in IdFilenameDB::del(), there have been no duplicate bug reports seen in over three years. After all the bugfixing work done during that time, I think we can call this fixed!
Comment 13 Nate Graham 2020-10-26 16:27:04 UTC
*** Bug 421885 has been marked as a duplicate of this bug. ***
Comment 14 Nate Graham 2020-10-26 16:27:59 UTC
Duped a report of this happening in 5.71, but that was confirmed fixed on git master as of a few months ago. Not re-opening unless we get a new report against 5.75 or later.