Bug 361186 - baloo_file crashes in Baloo::PositionDB::get() / mdb_get()
Summary: baloo_file crashes in Baloo::PositionDB::get() / mdb_get()
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.20.0
Platform: openSUSE Linux
: HI normal
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords:
: 360042 364112 404027 411024 419634 425833 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-03-30 13:24 UTC by Uli
Modified: 2024-08-03 03:46 UTC (History)
8 users (show)

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


Attachments
baloo_file-20190819 (3.36 KB, text/plain)
2019-08-25 09:35 UTC, Patrick Kasper
Details
baloo_file-20190821 (3.36 KB, text/plain)
2019-08-25 09:36 UTC, Patrick Kasper
Details
baloo_file-20190825 (3.44 KB, text/plain)
2019-08-25 09:37 UTC, Patrick Kasper
Details
baloo_file-20190828 (3.71 KB, text/plain)
2019-10-22 20:11 UTC, Patrick Kasper
Details
baloo_file-20190908 (3.36 KB, text/plain)
2019-10-22 20:12 UTC, Patrick Kasper
Details
baloo_file-20190915 (3.84 KB, text/plain)
2019-10-22 20:13 UTC, Patrick Kasper
Details
baloo_file-20190917 (3.36 KB, text/plain)
2019-10-22 20:14 UTC, Patrick Kasper
Details
baloo_file-20190922 (3.53 KB, text/plain)
2019-10-22 20:14 UTC, Patrick Kasper
Details
baloo_file-20190924 (3.36 KB, text/plain)
2019-10-22 20:15 UTC, Patrick Kasper
Details
baloo_file-20190925 (3.99 KB, text/plain)
2019-10-22 20:16 UTC, Patrick Kasper
Details
baloo_file-20190929 (3.36 KB, text/plain)
2019-10-22 20:17 UTC, Patrick Kasper
Details
baloo_file-20191117 (3.36 KB, text/plain)
2019-11-18 16:29 UTC, Patrick Kasper
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uli 2016-03-30 13:24:57 UTC
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 0x7f3157aca8c0 (LWP 7067))]

Thread 2 (Thread 0x7f300bcaa700 (LWP 7878)):
[KCrash Handler]
#6  0x00007f31568ae1e8 in ?? () from /usr/lib64/libKF5BalooEngine.so.5
#7  0x00007f31568ad7bc in ?? () from /usr/lib64/libKF5BalooEngine.so.5
#8  0x00007f3156898924 in Baloo::PositionDB::get(QByteArray const&) () from /usr/lib64/libKF5BalooEngine.so.5
#9  0x00007f31568aaef4 in Baloo::WriteTransaction::commit() () from /usr/lib64/libKF5BalooEngine.so.5
#10 0x00007f31568a2552 in Baloo::Transaction::commit() () from /usr/lib64/libKF5BalooEngine.so.5
#11 0x0000000000410e19 in ?? ()
#12 0x00007f3155fd14f3 in ?? () from /usr/lib64/libQt5Core.so.5
#13 0x00007f3155fd490f in ?? () from /usr/lib64/libQt5Core.so.5
#14 0x00007f315460a454 in start_thread () from /lib64/libpthread.so.0
#15 0x00007f31555e4d8d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f3157aca8c0 (LWP 7067)):
#0  0x00007f31555d841d in read () from /lib64/libc.so.6
#1  0x00007f3151f89290 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f3151f46dc4 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f3151f47238 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f3151f4739c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f31561f94bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#6  0x00007f31561a35ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f31561ab28d in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#8  0x000000000040b3a6 in ?? ()
#9  0x00007f315551b5b0 in __libc_start_main () from /lib64/libc.so.6
#10 0x000000000040b549 in _start ()


Reproducible: Always

Steps to Reproduce:
1. download a file from the web
2.
3.

Actual Results:  
baloo will crash, with an error r eport

Expected Results:  
the new file will be indexed
Comment 1 Christoph Cullmann 2016-09-11 21:22:10 UTC
How large is your

.local/share/baloo/index

file?
Comment 2 Christoph Cullmann 2016-09-11 21:22:24 UTC
*** Bug 360042 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Cullmann 2016-09-11 21:22:45 UTC
*** Bug 364112 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2018-11-26 18:47:51 UTC

*** This bug has been marked as a duplicate of bug 384607 ***
Comment 5 Nate Graham 2019-02-06 21:48:38 UTC
*** Bug 404027 has been marked as a duplicate of this bug. ***
Comment 6 Valerii Malov 2019-03-13 21:50:40 UTC
Git commit eb68430ae5f4fc4c4a2e5b1798683ff6a639ad3d by Valerii Malov.
Committed on 13/03/2019 at 21:50.
Pushed by valeriymalov into branch 'master'.

Baloo engine: treat every non-success code as a failure

Summary:
Treating only MDB_NOTFOUND as an error leads to use of uninitliazed
pointers and handle IDs in other cases (e.g. when get fails with
MDB_BAD_TXN) and wreaks havoc in the application.
Related: bug 390823, bug 372880, bug 395888, bug 367480, bug 403720

Reviewers: #baloo, bruns, poboiko

Reviewed By: #baloo, bruns

Subscribers: cullmann, ngraham, bruns, kde-frameworks-devel, #baloo

Tags: #frameworks, #baloo

Differential Revision: https://phabricator.kde.org/D18664

M  +12   -9    src/engine/database.cpp
M  +26   -17   src/engine/documentdatadb.cpp
M  +30   -22   src/engine/documentdb.cpp
M  +30   -22   src/engine/documentiddb.cpp
M  +25   -16   src/engine/documenttimedb.cpp
M  +0    -1    src/engine/documenturldb.cpp
M  +4    -3    src/engine/documenturldb.h
M  +4    -5    src/engine/fsutils.cpp
M  +28   -15   src/engine/idfilenamedb.cpp
M  +22   -13   src/engine/idtreedb.cpp
M  +37   -29   src/engine/mtimedb.cpp
M  +0    -2    src/engine/phraseanditerator.cpp
M  +24   -19   src/engine/positiondb.cpp
M  +31   -27   src/engine/postingdb.cpp
M  +47   -13   src/engine/transaction.cpp
M  +4    -4    src/engine/transaction.h
M  +3    -2    src/file/extractorprocess.cpp
M  +5    -5    src/file/fileindexscheduler.cpp
M  +5    -4    src/file/indexcleaner.cpp
M  +0    -1    src/file/main.cpp
M  +1    -1    src/file/metadatamover.cpp

https://commits.kde.org/baloo/eb68430ae5f4fc4c4a2e5b1798683ff6a639ad3d
Comment 7 Nate Graham 2019-08-19 15:19:59 UTC
*** Bug 411024 has been marked as a duplicate of this bug. ***
Comment 8 Patrick Kasper 2019-08-25 09:35:37 UTC
Created attachment 122341 [details]
baloo_file-20190819
Comment 9 Patrick Kasper 2019-08-25 09:36:26 UTC
Created attachment 122342 [details]
baloo_file-20190821
Comment 10 Patrick Kasper 2019-08-25 09:37:14 UTC
Created attachment 122343 [details]
baloo_file-20190825
Comment 11 Patrick Kasper 2019-10-22 20:11:01 UTC
Created attachment 123418 [details]
baloo_file-20190828
Comment 12 Patrick Kasper 2019-10-22 20:12:11 UTC
Created attachment 123419 [details]
baloo_file-20190908
Comment 13 Patrick Kasper 2019-10-22 20:13:10 UTC
Created attachment 123420 [details]
baloo_file-20190915
Comment 14 Patrick Kasper 2019-10-22 20:14:08 UTC
Created attachment 123421 [details]
baloo_file-20190917
Comment 15 Patrick Kasper 2019-10-22 20:14:50 UTC
Created attachment 123422 [details]
baloo_file-20190922
Comment 16 Patrick Kasper 2019-10-22 20:15:29 UTC
Created attachment 123423 [details]
baloo_file-20190924
Comment 17 Patrick Kasper 2019-10-22 20:16:00 UTC
Created attachment 123425 [details]
baloo_file-20190925
Comment 18 Patrick Kasper 2019-10-22 20:17:12 UTC
Created attachment 123426 [details]
baloo_file-20190929
Comment 19 Patrick Kasper 2019-11-18 16:29:57 UTC
Created attachment 123993 [details]
baloo_file-20191117

I am search a file on my Laptop but is't work with Dolphin.
Because Baloo File Indexing Demon not work.
Comment 20 Nate Graham 2020-04-15 03:01:26 UTC
*** Bug 419634 has been marked as a duplicate of this bug. ***
Comment 21 Nate Graham 2020-10-26 16:28:17 UTC
*** Bug 425833 has been marked as a duplicate of this bug. ***
Comment 22 Nate Graham 2020-10-27 12:42:39 UTC
Bug 419634 has a better backtrace.
Comment 23 tagwerk19 2024-07-04 06:05:48 UTC
This doesn't give a version for Baloo... but the initial report was 2016 and the last update 2020 (after a patch in 2019)

I think we close this, there will be other crash reports but we track them in more recent bugs.

Leaving this as "Waiting for Info" in case people disagree.
Comment 24 Bug Janitor Service 2024-07-19 03:46:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 25 Bug Janitor Service 2024-08-03 03:46:26 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.