Bug 490480

Summary: Baloo crashes despite being disabled
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Lukas Kucharczyk <lukas>
Component: Baloo File DaemonAssignee: baloo-bugs-null
Status: RESOLVED NOT A BUG    
Severity: crash CC: tagwerk19
Priority: NOR Keywords: drkonqi
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lukas Kucharczyk 2024-07-19 06:05:16 UTC
Application: baloo_file_extractor (6.3.0)

Qt Version: 6.7.2
Frameworks Version: 6.3.0
Operating System: Linux 6.8.12-201.fsync.fc40.x86_64 x86_64
Windowing System: Wayland
Distribution: Nobara Linux 40 (KDE Plasma)
DrKonqi: 6.1.1 [CoredumpBackend]

-- Information about the crash:
The crash report might be the same as in https://bugs.kde.org/show_bug.cgi?id=490446 but this report is not about that.
I have Baloo disabled and when I boot my computer, I see it crashed like 10 times based on the number of icons in the tray.
I checked via the File Search control panel and using balooctl6 status.
There should not even be any index since I purged it.

The crash can be reproduced every time.

-- Backtrace:
Application: Baloo File Extractor (baloo_file_extractor), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[New LWP 12299]
[New LWP 12306]
Downloading separate debug info for /lib64/libz.so.1...
Downloading separate debug info for system-supplied DSO at 0x7ffc1718b000...
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/kf6/baloo_file_extractor'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
44	      return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
[Current thread is 1 (Thread 0x7fd1dd4adf40 (LWP 12299))]

Cannot QML trace cores :(
[Current thread is 1 (Thread 0x7fd1dd4adf40 (LWP 12299))]

Thread 2 (Thread 0x7f91cca006c0 (LWP 12306)):
#0  0x00007fd1deb1c67d in __GI___poll (fds=0x559b40e465e0, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fd1dd77cc34 in g_main_context_poll_unlocked (priority=2147483647, context=0x7f91c8000c60, timeout=<optimized out>, fds=0x559b40e465e0, n_fds=3) at ../glib/gmain.c:4521
#2  g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7f91c8000c60, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4212
#3  0x00007fd1dd71c383 in g_main_context_iteration (context=0x7f91c8000c60, may_block=1) at ../glib/gmain.c:4282
#4  0x00007fd1df4850a3 in QEventDispatcherGlib::processEvents (this=0x7f91c8000b70, flags=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#5  0x00007fd1df1a3b03 in QEventLoop::exec (this=this@entry=0x7f91cc9ffaa0, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/global/qflags.h:34
#6  0x00007fd1df2b7e4f in QThread::exec (this=this@entry=0x7fd1deffecc0 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/global/qflags.h:74
#7  0x00007fd1def6fe41 in QDBusConnectionManager::run (this=0x7fd1deffecc0 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/dbus/qdbusconnectionmanager.cpp:144
#8  0x00007fd1df35463c in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/thread/qthread_unix.cpp:326
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/thread/qthread_unix.cpp:262
#10 QThreadPrivate::start (arg=0x7fd1deffecc0 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/thread/qthread_unix.cpp:285
#11 0x00007fd1deaa6507 in start_thread (arg=<optimized out>) at pthread_create.c:447
#12 0x00007fd1deb2a40c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 1 (Thread 0x7fd1dd4adf40 (LWP 12299)):
[KCrash Handler]
#5  0x00007fd1df212693 in QArrayDataPointer<char16_t>::QArrayDataPointer (this=0x7ffc17123a30, other=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/tools/qarraydatapointer.h:38
#6  QString::QString (this=0x7ffc17123a30, other=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/text/qstring.h:1186
#7  QVariant::Private::Private<QString> (this=0x7ffc17123a30, t=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qvariant_p.h:98
#8  QVariant::QVariant (this=this@entry=0x7ffc17123a30, val=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qvariant.cpp:948
#9  0x00007fd1de54da8c in standardDeclarationForNode (node=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/tools/qlist.h:183
#10 0x00007fd1de54ebca in QTextHtmlParser::declarationsForNode (this=this@entry=0x7ffc17123e10, node=2762) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/gui/text/qtexthtmlparser.cpp:2159
#11 0x00007fd1de54f8a0 in QTextHtmlParser::parseTag (this=0x7ffc17123e10) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/gui/text/qtexthtmlparser.cpp:676
#12 0x00007fd1de54fe78 in QTextHtmlParser::parse (this=this@entry=0x7ffc17123e10) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/gui/text/qtexthtmlparser.cpp:606
#13 0x00007fd1de550165 in QTextHtmlParser::parse (this=this@entry=0x7ffc17123e10, text=..., _resourceProvider=0x7ffc17123e10, _resourceProvider@entry=0x7ffc17123f90) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/gui/text/qtexthtmlparser.cpp:549
#14 0x00007fd1de4f402a in QTextHtmlImporter::QTextHtmlImporter (this=this@entry=0x7ffc17123e10, _doc=_doc@entry=0x7ffc17123f90, _html=..., mode=mode@entry=QTextHtmlImporter::ImportToDocument, resourceProvider=resourceProvider@entry=0x0) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/gui/text/qtextdocumentfragment.cpp:456
#15 0x00007fd1de4dc376 in QTextDocument::setHtml (this=this@entry=0x7ffc17123f90, html=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/gui/text/qtextdocument.cpp:1301
#16 0x00007fd1dabb7b7f in KFileMetaData::MobiExtractor::extract (this=<optimized out>, result=0x7ffc17124300) at /usr/src/debug/kf6-kfilemetadata-6.3.0-1.fc40.x86_64/src/extractors/mobiextractor.cpp:96
#17 0x0000559b3f50c1d0 in Baloo::App::index (this=this@entry=0x7ffc17124b40, tr=0x559b40e2ff30, url=..., id=id@entry=8039166118271954) at /usr/src/debug/kf6-baloo-6.3.0-1.fc40.x86_64/src/file/extractor/app.cpp:180
#18 0x0000559b3f50d495 in Baloo::App::processNextFile (this=0x7ffc17124b40) at /usr/include/c++/14/bits/unique_ptr.h:193
#19 0x00007fd1df1edd4b in QObject::event (this=0x7ffc17124b40, e=0x559b410833d0) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qobject.cpp:1452
#20 0x00007fd1df196da9 in doNotify (receiver=0x7ffc17124b40, event=0x559b410833d0) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1243
#21 QCoreApplication::notify (this=<optimized out>, receiver=0x7ffc17124b40, event=0x559b410833d0) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1226
#22 QCoreApplication::notifyInternal2 (receiver=0x7ffc17124b40, event=0x559b410833d0) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1142
#23 0x00007fd1df19702d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1583
#24 0x00007fd1df19ab91 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x559b40dfa6d0) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1940
#25 0x00007fd1df19ae3d in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1797
#26 0x00007fd1df4858ef in postEventSourceDispatch (s=0x559b40dfdaf0) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:244
#27 0x00007fd1dd71ae8c in g_main_dispatch (context=0x559b40dfd8b0) at ../glib/gmain.c:3344
#28 g_main_context_dispatch_unlocked (context=0x559b40dfd8b0) at ../glib/gmain.c:4152
#29 0x00007fd1dd77cc98 in g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x559b40dfd8b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4217
#30 0x00007fd1dd71c383 in g_main_context_iteration (context=0x559b40dfd8b0, may_block=1) at ../glib/gmain.c:4282
#31 0x00007fd1df4850a3 in QEventDispatcherGlib::processEvents (this=0x559b40dfd850, flags=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#32 0x00007fd1df1a3b03 in QEventLoop::exec (this=this@entry=0x7ffc17124a50, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/global/qflags.h:34
#33 0x00007fd1df19f9bc in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.7.2-2.fc40.x86_64/src/corelib/global/qflags.h:74
#34 0x0000559b3f502468 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kf6-baloo-6.3.0-1.fc40.x86_64/src/file/extractor/main.cpp:33

Reported using DrKonqi
Comment 1 tagwerk19 2024-07-19 07:19:09 UTC
> ... I have Baloo disabled ...
It'd be worth checking to see if Baloo is really disabled and staying disabled... Look at the config file:
    ~/.config/baloofilerc
If disabled, that should include lines:
    [Basic Settings]
    Indexing-Enabled=false

Check for a process, "pgrep -l baloo". If you are on system is based round systemd, you can also try "systemctl --user status kde-baloo".

Doublecheck after a reboot (or a software update), just in case the settings have been reverted. If you are on an immutable distribution (?), life may be more complicated...
Comment 2 tagwerk19 2024-07-19 07:24:32 UTC
Maybe some overlap with Bug 481101
Comment 3 Lukas Kucharczyk 2024-07-19 07:26:28 UTC
I have checked and it seems disabled and not running:

grep Indexing ~/.config/baloofilerc
Indexing-Enabled=false

systemctl --user status kde-baloo.service
○ kde-baloo.service - Baloo File Indexer Daemon
     Loaded: loaded (/usr/lib/systemd/user/kde-baloo.service; disabled; preset: disabled)
    Drop-In: /usr/lib/systemd/user/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead) (Result: exec-condition) since Fri 2024-07-19 07:53:54 CEST; 1h 27min ago
  Condition: start condition unmet at Fri 2024-07-19 07:53:54 CEST; 1h 27min ago
    Process: 2243 ExecCondition=/usr/bin/kde-systemd-start-condition --condition baloofilerc:Basic Settings:Indexing-Enabled:true (code=exited, status=1/FAILURE)
        CPU: 5ms

čec 19 07:53:54 nobara-pc systemd[1860]: Starting kde-baloo.service - Baloo File Indexer Daemon...
čec 19 07:53:54 nobara-pc systemd[1860]: kde-baloo.service: Skipped due to 'exec-condition'.
čec 19 07:53:54 nobara-pc systemd[1860]: Condition check resulted in kde-baloo.service - Baloo File Indexer Daemon being skipped.

pgrep -l baloo reports nothing running.
Comment 4 tagwerk19 2024-07-19 09:54:27 UTC
(In reply to Lukas Kucharczyk from comment #3)
> ... I have checked and it seems disabled and not running ...
That sounds good then...

What you might have had is the system catching up with reporting "old" crash dumps (not sure what process does the reporting, but you can look at the dumps with coredumpctl).

We can close this then?
Comment 5 Lukas Kucharczyk 2024-07-20 07:22:15 UTC
In coredumctl I see the latest crashes from 2024-07-18 even though they were reported to me yesterday and today as well so I think you're right, we can close this.
Comment 6 tagwerk19 2024-07-20 08:44:52 UTC
(In reply to Lukas Kucharczyk from comment #5)
> In coredumctl I see the latest crashes from 2024-07-18 even though they were
> reported to me yesterday and today as well so I think you're right, we can
> close this.
Will do ...

Thank you for the report and putting in the time to troubleshoot.