Bug 477006 - Calligra words crashes when trying to open a Microsoft Word (.doc) file
Summary: Calligra words crashes when trying to open a Microsoft Word (.doc) file
Status: REPORTED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: 3.2.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-11-14 18:20 UTC by Alejandro Muñoz
Modified: 2023-11-14 18:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Muñoz 2023-11-14 18:20:21 UTC
Application: calligrawords (3.2.1)

Qt Version: 5.15.11
Frameworks Version: 5.111.0
Operating System: Linux 6.6.1-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.27.9 [KCrashBackend]

-- Information about the crash:
This happens when I try to open a .doc file (this does not happen with .docx files) with Calligra Words.

I tried this time with right click → Open with → Calligra Words.

I can open this file with LibreOffice Writer.

The crash can be reproduced every time.

-- Backtrace:
Application: Calligra Words (calligrawords), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f5afef6c26d in __strlen_avx2 () from /lib64/libc.so.6
#5  0x00007f5afd623b9b in qstrlen (str=0x1 <error: Cannot access memory at address 0x1>) at /usr/include/qt5/QtCore/qbytearray.h:74
#6  KoXmlWriter::writeCString (cstr=0x1 <error: Cannot access memory at address 0x1>, this=0x55e3e76662a0) at /usr/src/debug/calligra-3.2.1/libs/store/KoXmlWriter.h:276
#7  KoXmlWriter::endElement (this=0x55e3e76662a0) at /usr/src/debug/calligra-3.2.1/libs/store/KoXmlWriter.cpp:192
#8  0x00007f5abf1e1a79 in Paragraph::writeToFile (tabLeader=<optimized out>, openTextBox=<optimized out>, writer=0x55e3e76662a0, this=0x55e3e72f3950) at /usr/src/debug/calligra-3.2.1/filters/words/msword-odf/paragraph.cpp:487
#9  WordsTextHandler::paragraphEnd (this=0x55e3e70c6430) at /usr/src/debug/calligra-3.2.1/filters/words/msword-odf/texthandler.cpp:973
#10 0x00007f5ac80ba5ad in wvWare::Parser9x::processParagraph (this=this@entry=0x55e3e764c790, fc=fc@entry=125814) at /usr/src/debug/calligra-3.2.1/filters/words/msword-odf/wv2/src/parser9x.cpp:836
#11 0x00007f5ac80bba19 in wvWare::Parser9x::processPiece<unsigned char> (position=<synthetic pointer>..., limit=347202, fc=2048, string=0x55e3e7c41370 "\r\r\r\r\r\b", '\r' <repeats 35 times>, "\b\r\r\r\r\rNOMBRE PRODUCTO\aACELGAS REHOGADAS\a\aCOMPOSICION\r\r\a\rAcelgas  300gr, Ajos 5gr,  Aceite de Oliva 10gr, Sal 1 gr.\a\a\rCARACTER\315STICAS FISICOQUIMICAS Y MICROBIOL"..., this=0x55e3e764c790) at /usr/src/debug/calligra-3.2.1/filters/words/msword-odf/wv2/src/parser9x.cpp:594
#12 wvWare::Parser9x::parseHelper (this=this@entry=0x55e3e764c790, startPos=..., startPos@entry=...) at /usr/src/debug/calligra-3.2.1/filters/words/msword-odf/wv2/src/parser9x.cpp:529
#13 0x00007f5ac80bd115 in wvWare::Parser9x::parseBody (this=0x55e3e764c790) at /usr/src/debug/calligra-3.2.1/filters/words/msword-odf/wv2/src/parser9x.h:163
#14 wvWare::Parser9x::parse (this=0x55e3e764c790) at /usr/src/debug/calligra-3.2.1/filters/words/msword-odf/wv2/src/parser9x.cpp:175
#15 0x00007f5abf1cd155 in Document::parse (this=0x55e3e75358f0) at /usr/src/debug/calligra-3.2.1/filters/words/msword-odf/document.cpp:440
#16 MSWordOdfImport::convert (this=<optimized out>, from=..., to=...) at /usr/src/debug/calligra-3.2.1/filters/words/msword-odf/mswordodfimport.cpp:239
#17 0x00007f5afeda3149 in CalligraFilter::ChainLink::invokeFilter (this=0x55e3e74d7e30, parentChainLink=parentChainLink@entry=0x0) at /usr/src/debug/calligra-3.2.1/libs/main/KoFilterChainLink.cpp:89
#18 0x00007f5afeda3542 in KoFilterChain::invokeChain (this=this@entry=0x55e3e75f07b0) at /usr/src/debug/calligra-3.2.1/libs/main/KoFilterChain.cpp:96
#19 0x00007f5afeda3cd0 in KoFilterManager::importDocument (this=0x55e3e70a00d0, url=..., documentMimeType=..., status=@0x7ffe46d27614: KoFilter::OK) at /usr/src/debug/calligra-3.2.1/libs/main/KoFilterManager.cpp:169
#20 0x00007f5afed79413 in KoDocument::openFile (this=0x55e3e709b250) at /usr/src/debug/calligra-3.2.1/libs/main/KoDocument.cpp:1474
#21 0x00007f5afed7a3be in KoDocument::Private::openFile (this=0x55e3e6e37dc0) at /usr/src/debug/calligra-3.2.1/libs/main/KoDocument.cpp:270
#22 KoDocument::Private::openLocalFile (this=0x55e3e6e37dc0) at /usr/src/debug/calligra-3.2.1/libs/main/KoDocument.cpp:292
#23 0x00007f5afed7d0c8 in KoDocument::openUrlInternal (this=0x55e3e709b250, url=...) at /usr/src/debug/calligra-3.2.1/libs/main/KoDocument.cpp:2674
#24 0x00007f5afed78784 in KoDocument::openUrl (this=0x55e3e709b250, _url=...) at /usr/src/debug/calligra-3.2.1/libs/main/KoDocument.cpp:1242
#25 0x00007f5afed854b9 in KoMainWindow::openDocumentInternal (this=0x55e3e71aaca0, url=..., newpart=<optimized out>, newdoc=0x55e3e709b250) at /usr/src/debug/calligra-3.2.1/libs/main/KoMainWindow.cpp:759
#26 0x00007f5afed6efd5 in KoApplication::start (this=this@entry=0x7ffe46d27be0) at /usr/src/debug/calligra-3.2.1/libs/main/KoApplication.cpp:581
#27 0x00007f5aff034e66 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/calligra-3.2.1/words/app/main.cpp:50
#28 0x00007f5afee281b0 in __libc_start_call_main () from /lib64/libc.so.6
#29 0x00007f5afee28279 in __libc_start_main_impl () from /lib64/libc.so.6
#30 0x000055e3e6ba5095 in _start () at ../sysdeps/x86_64/start.S:115
[Inferior 1 (process 18394) detached]

Reported using DrKonqi