Bug 487343 - Baloo File Extractor crashed in KFileMetaData::MobiExtractor::extract() while indexing a mobi file
Summary: Baloo File Extractor crashed in KFileMetaData::MobiExtractor::extract() whil...
Status: REPORTED
Alias: None
Product: frameworks-kfilemetadata
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.1.0
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-05-22 00:26 UTC by Victor Oliver
Modified: 2024-05-22 18:58 UTC (History)
2 users (show)

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


Attachments
Output of `balooctl monitor` (1.61 KB, text/x-log)
2024-05-22 00:35 UTC, Victor Oliver
Details
baloofilerc (869 bytes, text/plain)
2024-05-22 00:40 UTC, Victor Oliver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Oliver 2024-05-22 00:26:37 UTC
Application: baloo_file_extractor (6.1.0)

Qt Version: 6.7.0
Frameworks Version: 6.1.0
Operating System: Linux 6.5.0-35-generic x86_64
Windowing System: Wayland
Distribution: KDE neon 6.0
DrKonqi: 6.0.4 [KCrashBackend]

-- Information about the crash:
Baloo File Extractor crashed while indexing files in the background. The crash always happens when reaching a mobi file. Purging the index and restarting baloo will lead to the same results after a while, as soon as it hits the same file. Hiding the offeding mobi file allows baloo to progress further, however it will still crash on the next mobi file it finds.

The crash can be reproduced every time.

-- Backtrace:
Application: Baloo File Extractor (baloo_file_extractor), signal: Segmentation fault

[KCrash Handler]
#4  QArrayDataPointer<char16_t>::QArrayDataPointer (other=..., this=<optimized out>, this=<optimized out>, other=...) at ./src/corelib/tools/qarraydatapointer.h:37
#5  QString::QString (other=..., this=<optimized out>, this=<optimized out>, other=...) at ./src/corelib/text/qstring.h:1186
#6  QVariant::Private::Private<QString> (t=..., this=0x7ffecd082250) at ./src/corelib/kernel/qvariant_p.h:98
#7  QVariant::QVariant (this=<optimized out>, val=..., this=<optimized out>, val=...) at ./src/corelib/kernel/qvariant.cpp:948
#8  0x00007fd52299550a in standardDeclarationForNode (node=...) at ./src/corelib/tools/qlist.h:183
#9  0x00007fd522954d20 in QTextHtmlParser::declarationsForNode (node=1811, this=0x7ffecd082510) at ./src/gui/text/qtexthtmlparser.cpp:2141
#10 QTextHtmlParser::parseTag (this=<optimized out>) at ./src/gui/text/qtexthtmlparser.cpp:676
#11 QTextHtmlParser::parse (this=<optimized out>) at ./src/gui/text/qtexthtmlparser.cpp:606
#12 QTextHtmlParser::parse (_resourceProvider=<optimized out>, text=..., this=<optimized out>) at ./src/gui/text/qtexthtmlparser.cpp:549
#13 QTextHtmlImporter::QTextHtmlImporter (this=<optimized out>, _doc=<optimized out>, _html=..., mode=<optimized out>, resourceProvider=<optimized out>, this=<optimized out>, _doc=<optimized out>, _html=..., mode=<optimized out>, resourceProvider=<optimized out>) at ./src/gui/text/qtextdocumentfragment.cpp:456
#14 0x00007fd52293ca8d in QTextDocument::setHtml (this=0x7ffecd082690, html=...) at ./src/gui/text/qtextdocument.cpp:1301
#15 0x00007fd51f382116 in KFileMetaData::MobiExtractor::extract (this=<optimized out>, result=0x7ffecd082b00) at ./src/extractors/mobiextractor.cpp:96
#16 0x000060bae6536120 in Baloo::App::index (this=0x7ffecd083280, tr=0x60bae84ad030, url=..., id=386785227105192397) at ./src/file/extractor/app.cpp:180
#17 0x000060bae65373ee in Baloo::App::processNextFile (this=0x7ffecd083280) at /usr/include/c++/11/bits/unique_ptr.h:173
#18 0x00007fd5239fa272 in QObject::event (this=0x7ffecd083280, e=0x60bae87bafa0) at ./src/corelib/kernel/qobject.cpp:1446
#19 0x00007fd523aa1c13 in doNotify (event=<optimized out>, receiver=<optimized out>) at ./src/corelib/kernel/qcoreapplication.cpp:1235
#20 QCoreApplication::notify (event=<optimized out>, receiver=<optimized out>, this=<optimized out>) at ./src/corelib/kernel/qcoreapplication.cpp:1218
#21 QCoreApplication::notifyInternal2 (receiver=0x7ffecd083280, event=event@entry=0x60bae87bafa0) at ./src/corelib/kernel/qcoreapplication.cpp:1134
#22 0x00007fd523aa1c7d in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x60bae87bafa0) at ./src/corelib/kernel/qcoreapplication.cpp:1575
#23 0x00007fd523aa23e0 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60bae8496e60) at ./src/corelib/kernel/qcoreapplication.cpp:1932
#24 0x00007fd523878277 in postEventSourceDispatch (s=0x60bae849dd50) at ./src/corelib/kernel/qeventdispatcher_glib.cpp:244
#25 0x00007fd521d20d3b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fd521d762b8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fd521d1e3e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fd523876570 in QEventDispatcherGlib::processEvents (this=0x60bae849b0b0, flags=...) at ./src/corelib/kernel/qeventdispatcher_glib.cpp:394
#29 0x00007fd523aa3e3b in QEventLoop::exec (this=this@entry=0x7ffecd083190, flags=..., flags@entry=...) at ./src/corelib/global/qflags.h:34
#30 0x00007fd523aa5a6c in QCoreApplication::exec () at ./src/corelib/global/qflags.h:74
#31 0x000060bae652bc8a in main (argc=<optimized out>, argv=<optimized out>) at ./src/file/extractor/main.cpp:33
[Inferior 1 (process 1007477) detached]

Reported using DrKonqi
Comment 1 Victor Oliver 2024-05-22 00:35:56 UTC
Created attachment 169690 [details]
Output of `balooctl monitor`
Comment 2 Victor Oliver 2024-05-22 00:40:10 UTC
Created attachment 169691 [details]
baloofilerc
Comment 3 tagwerk19 2024-05-22 05:33:25 UTC
Also...
     ... Bug 475730, Bug 486853 and some history about crash handling in Bug 421317
Comment 4 tagwerk19 2024-05-22 05:37:00 UTC
... and that's the one I was looking for 8-]
    Bug 475975

The Mobi extraction code needs a friend...