Bug 276619 - Calligra Words crashes on opening MS word file
Summary: Calligra Words crashes on opening MS word file
Alias: None
Product: calligrawords
Classification: Applications
Component: filters (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Words Bugs
Depends on:
Reported: 2011-06-27 15:48 UTC by beojan
Modified: 2011-06-29 21:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description beojan 2011-06-27 15:48:35 UTC
Application: calligrawords (2.4 Alpha 2)
KDE Platform Version: 4.6.4 (4.6.4)
Qt Version: 4.7.3
Operating System: Linux 2.6.39-ck1-aperion i686
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
- What I was doing when the application crashed:

Upon attempting to open a Microsoft Word 2003 file, Calligra Words crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: Words (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#7  CreateMissingFormatData (paraText=..., paraFormatDataList=...) at /root/calligra/filters/words/libexport/KWEFStructures.cc:161
#8  0xadc78014 in ProcessParagraphTag (myNode=..., tagData=0x915f360, leader=0x8c17878) at /root/calligra/filters/words/libexport/KWEFWordsLeader.cc:193
#9  0xadc4bd53 in ProcessSubtags (parentNode=..., tagProcessingList=..., leader=0x8c17878) at /root/calligra/filters/words/libexport/TagProcessing.cc:68
#10 0xadc687cd in ProcessTableAnchor (myNode=..., leader=0x8c17878, frameAnchor=0x9156388, col=1, row=1, cols=1, rows=1) at /root/calligra/filters/words/libexport/KWEFWordsLeader.cc:338
#11 0xadc70d65 in ProcessFramesetTag (myNode=..., tagData=0xbf8f444c, leader=0x8c17878) at /root/calligra/filters/words/libexport/KWEFWordsLeader.cc:455
#12 0xadc4bd53 in ProcessSubtags (parentNode=..., tagProcessingList=..., leader=0x8c17878) at /root/calligra/filters/words/libexport/TagProcessing.cc:68
#13 0xadc68060 in ProcessFramesetsTag (myNode=..., tagData=0xbf8f444c, leader=0x8c17878) at /root/calligra/filters/words/libexport/KWEFWordsLeader.cc:539
#14 0xadc4bd53 in ProcessSubtags (parentNode=..., tagProcessingList=..., leader=0x8c17878) at /root/calligra/filters/words/libexport/TagProcessing.cc:68
#15 0xadc73d25 in ProcessDocTag (myNode=..., leader=0x8c17878) at /root/calligra/filters/words/libexport/KWEFWordsLeader.cc:1023
#16 0xadc65ca9 in ProcessStoreFile (subFile=0xbf8f45bc, processor=0xadc72a40 <ProcessDocTag(QDomNode, void*, KWEFWordsLeader*)>, leader=0x915f360) at /root/calligra/filters/words/libexport/KWEFWordsLeader.cc:1231
#17 0xadc67826 in KWEFWordsLeader::convert (this=0x8c17878, chain=0x8c13750, from=..., to=...) at /root/calligra/filters/words/libexport/KWEFWordsLeader.cc:1308
#18 0xadb1c19d in RTFExport::convert (this=0x915f360, from=..., to=...) at /root/calligra/filters/words/rtf/export/rtfexport.cc:81
#19 0xb21151c7 in CalligraFilter::ChainLink::invokeFilter (this=0x8d85a78, parentChainLink=0x0) at /root/calligra/libs/main/KoFilterChainLink.cpp:90
#20 0xb210ba00 in KoFilterChain::invokeChain (this=0x8c13750) at /root/calligra/libs/main/KoFilterChain.cpp:79
#21 0xb2109d12 in KoFilterManager::importDocument (this=0x8e785d0, url=..., documentMimeType=..., status=@0xbf8f4a40) at /root/calligra/libs/main/KoFilterManager.cpp:170
#22 0xb20b8841 in KoDocument::openFile (this=0x8c53940) at /root/calligra/libs/main/KoDocument.cpp:1504
#23 0xb5069fd0 in ?? () from /usr/lib/libkparts.so.4
#24 0xb506a695 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#25 0xb20bcd5c in KoDocument::openUrl (this=0x8c53940, _url=...) at /root/calligra/libs/main/KoDocument.cpp:1263
#26 0xb20d9b74 in KoMainWindow::openDocumentInternal (this=0x8d4e018, url=..., newdoc=<value optimized out>) at /root/calligra/libs/main/KoMainWindow.cpp:677
#27 0xb20d87b4 in KoMainWindow::openDocument (this=0x8d4e018, newdoc=0x8c53940, url=...) at /root/calligra/libs/main/KoMainWindow.cpp:660
#28 0xb20a8c19 in KoApplication::start (this=0xbf8f508c) at /root/calligra/libs/main/KoApplication.cpp:252
#29 0xb5653d7a in kdemain (argc=2, argv=0x89807b0) at /root/calligra/words/part/main.cpp:41
#30 0x0804fc55 in _start ()

Reported using DrKonqi
Comment 1 Sebastian Sauer 2011-06-29 20:30:21 UTC
Thank you very mich for the bugreport beojan! Seems the code in question where it crashes doesn't really have a direct visible bug. So, we would need to investigate the issue to see why that happens and to come up with a fix for it.

Can you maybe attach the document that leads to the crash to this bugreport? If not cause it maybe contains sensitive informations could you maybe mail it to me ( sebsauer@kdab.com )? If that's not possible either cause those sensitive informations are to sensitive for that could you maybe remove sensitive content the parts+test if it still crashes and either readd or continue removing content till we have a doc without such sensitive informations that you can share with me or somebody else from the Calligra community? That would help us a lot.

Thanks in advance :)
Comment 2 Sebastian Sauer 2011-06-29 20:50:49 UTC
As helper if the trim-down case is needed; the crash happens within the handling of the bookmarks-code. So, you probably can remove anything except the bookmarks and will hopefully still have the crash.
Comment 3 Sebastian Sauer 2011-06-29 21:09:39 UTC
and I found the reason for the crash, fix it and the fix is pushed to master with 22cc64e44073507af4bd518b0dc5aa811750da48 now. That bug was btw at least 10 years old and noone ever discovered it. Tons of thanks, beojan!