Bug 251562 - kword:msoffice2000:Kword crashes while trying to open the attached document
Summary: kword:msoffice2000:Kword crashes while trying to open the attached document
Status: VERIFIED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: doc (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-17 13:37 UTC by swathi
Modified: 2010-12-23 12:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test data in MS Word 2000 (35.00 KB, application/octet-stream)
2010-09-17 13:37 UTC, swathi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description swathi 2010-09-17 13:37:07 UTC
Created attachment 51752 [details]
Test data in MS Word 2000

Version:           koffice-essen branch version 1174810 (using KDE 4.4.3) 
OS:                Kubuntu 10.04

Test data is in MS Word 2000 format which has  some  text content in it.
When i opened the same document in Kword, application crashes.

Expected outcome:
Kword should be able to open the document without any crash.
Comment 1 swathi 2010-09-17 13:38:03 UTC
Here is the Backtrace.

Application: KWord (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#6  QBasicAtomicInt::ref (this=0x9f32bd8, paragraphProperties=) at /usr/include/qt4/QtCore/qatomic_i386.h:120
#7  QString (this=0x9f32bd8, paragraphProperties=) at /usr/include/qt4/QtCore/qstring.h:715
#8  Document::currentBgColor (this=0x9f32bd8, paragraphProperties=) at /home/deepcheck/lns13sep/koffice-essen/filters/kword/msword-odf/document.h:144
#9  KWordTextHandler::paragraphStart (this=0x9f32bd8, paragraphProperties=) at /home/deepcheck/lns13sep/koffice-essen/filters/kword/msword-odf/texthandler.cpp:803
#10 0x081c19ce in wvWare::Parser9x::processParagraph (this=0x9f16e98, fc=1279) at /home/deepcheck/lns13sep/koffice-essen/filters/kword/msword-odf/wv2/src/parser9x.cpp:692
#11 0x081c44d2 in wvWare::Parser9x::processPiece<unsigned char> (this=0x9f16e98, 
    string=0x9f59fe0 "Blue Sky Airlines\aBlue Sky Corporation\tPhone 123 456 7890\r12345 Main Street\tTelex 123 456 7890\rSouthridge, WA 12345\tFax 123 456 7890\a\aProposal and Marketing Plan\rBlue Sky\222s Best Opportunity for East R"..., fc=1024, limit=3605, position=...) at /home/deepcheck/lns13sep/koffice-essen/filters/kword/msword-odf/wv2/src/parser9x.cpp:591
#12 0x081c2879 in wvWare::Parser9x::parseHelper (this=0x9f16e98, startPos=...) at /home/deepcheck/lns13sep/koffice-essen/filters/kword/msword-odf/wv2/src/parser9x.cpp:529
#13 0x081c2f7b in wvWare::Parser9x::parseBody (this=0x9f16e98) at /home/deepcheck/lns13sep/koffice-essen/filters/kword/msword-odf/wv2/src/parser9x.cpp:478
#14 0x081c3119 in wvWare::Parser9x::parse (this=0x9f16e98) at /home/deepcheck/lns13sep/koffice-essen/filters/kword/msword-odf/wv2/src/parser9x.cpp:176
#15 0x02c4af13 in Document::parse (this=0x9f16028) at /home/deepcheck/lns13sep/koffice-essen/filters/kword/msword-odf/document.cpp:369
#16 0x02c496b6 in MSWordOdfImport::convert (this=0x9ed89f8, from=..., to=...) at /home/deepcheck/lns13sep/koffice-essen/filters/kword/msword-odf/mswordodfimport.cpp:204
#17 0x01651e08 in KOfficeFilter::ChainLink::invokeFilter (this=0x9ef4b68, parentChainLink=0x0) at /home/deepcheck/lns13sep/koffice-essen/libs/main/KoFilterChainLink.cpp:90
#18 0x01647f9d in KoFilterChain::invokeChain (this=0x9ed3e38) at /home/deepcheck/lns13sep/koffice-essen/libs/main/KoFilterChain.cpp:94
#19 0x01645f15 in KoFilterManager::importDocument (this=0x9eccf60, url=..., status=@0xbfe9ee44) at /home/deepcheck/lns13sep/koffice-essen/libs/main/KoFilterManager.cpp:164
#20 0x015f47d6 in KoDocument::openFile (this=0x9cd1678) at /home/deepcheck/lns13sep/koffice-essen/libs/main/KoDocument.cpp:1331
#21 0x001c3ca9 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#22 0x015f3231 in KoDocument::openUrl (this=0x9cd1678, _url=...) at /home/deepcheck/lns13sep/koffice-essen/libs/main/KoDocument.cpp:1251
#23 0x0161774f in KoMainWindow::openDocumentInternal (this=0x9d3f890, url=..., newdoc=0x9cd1678) at /home/deepcheck/lns13sep/koffice-essen/libs/main/KoMainWindow.cpp:678
#24 0x01618636 in KoMainWindow::openDocument (this=0x9d3f890, newdoc=0x9cd1678, url=...) at /home/deepcheck/lns13sep/koffice-essen/libs/main/KoMainWindow.cpp:661
#25 0x015e2d9d in KoApplication::start (this=0xbfe9f410) at /home/deepcheck/lns13sep/koffice-essen/libs/main/KoApplication.cpp:252
#26 0x08f170aa in kdemain (argc=2, argv=0x9babf20) at /home/deepcheck/lns13sep/koffice-essen/kword/part/main.cpp:36
#27 0x0804e133 in _start ()
Comment 2 Thomas Zander 2010-09-21 21:15:37 UTC
Please test against the main branch and not an unstable feature branch thats
not supported by the KOffice core team. Feel free to reopen if the bug exists
in the main branch.
Comment 3 Miroslav Nohaj 2010-09-22 09:23:45 UTC
Tested in trunk, svn revision 1177436, crashes too:

#0  0x0012d422 in __kernel_vsyscall ()
#1  0x02163651 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0x02166a82 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0x01dc42dc in qt_message_output (msgType=QtFatalMsg, buf=0x86f5978 "ASSERT: \"!this->isEmpty()\" in file /usr/include/qt4/QtCore/qstack.h, line 72")
    at global/qglobal.cpp:2250
#4  0x01dc44aa in qt_message (msgType=<value optimized out>, msg=0x1f372fc "ASSERT: \"%s\" in file %s, line %d", ap=0xbfffcb04 "+U?\004XZ?\004H")
    at global/qglobal.cpp:2296
#5  0x01dc45b9 in qFatal (msg=0x1f372fc "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2479
#6  0x01dc4645 in qt_assert (assertion=0x43f552b "!this->isEmpty()", file=0x43f5a58 "/usr/include/qt4/QtCore/qstack.h", line=72) at global/qglobal.cpp:2013
#7  0x042f7459 in QStack<QString>::top (this=0x86a6ef0) at /usr/include/qt4/QtCore/qstack.h:72
#8  0x042f74aa in Document::currentBgColor (this=0x86a6e18) at /home/nohajmi/ko-src/filters/kword/msword-odf/document.h:144
#9  0x043051a9 in KWordTextHandler::paragraphStart (this=0x86c2a70, paragraphProperties=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
)
    at /home/nohajmi/ko-src/filters/kword/msword-odf/texthandler.cpp:803
#10 0x044d08d1 in wvWare::Parser9x::processParagraph (this=0x86a79c0, fc=1279) at /home/nohajmi/ko-src/filters/kword/msword-odf/wv2/src/parser9x.cpp:692
#11 0x044d800d in wvWare::Parser9x::processPiece<unsigned char> (this=0x86a79c0, 
    string=0x86eb0f8 "Blue Sky Airlines\aBlue Sky Corporation\tPhone 123 456 7890\r12345 Main Street\tTelex 123 456 7890\rSouthridge, WA 12345\tFax 123 456 7890\a\aProposal and Marketing Plan\rBlue Sky\222s Best Opportunity for East R"..., fc=1024, limit=3605, position=...)
    at /home/nohajmi/ko-src/filters/kword/msword-odf/wv2/src/parser9x.cpp:591
#12 0x044d0aec in wvWare::Parser9x::parseHelper (this=0x86a79c0, startPos=...) at /home/nohajmi/ko-src/filters/kword/msword-odf/wv2/src/parser9x.cpp:529
#13 0x044d12de in wvWare::Parser9x::parseBody (this=0x86a79c0) at /home/nohajmi/ko-src/filters/kword/msword-odf/wv2/src/parser9x.cpp:478
#14 0x044d1be0 in wvWare::Parser9x::parse (this=0x86a79c0) at /home/nohajmi/ko-src/filters/kword/msword-odf/wv2/src/parser9x.cpp:176
#15 0x042ef8f6 in Document::parse (this=0x86a6e18) at /home/nohajmi/ko-src/filters/kword/msword-odf/document.cpp:370
#16 0x042ec1f3 in MSWordOdfImport::convert (this=0x86744b0, from=..., to=...) at /home/nohajmi/ko-src/filters/kword/msword-odf/mswordodfimport.cpp:204
#17 0x001ed1b3 in KOfficeFilter::ChainLink::invokeFilter (this=0x8684288, parentChainLink=0x0) at /home/nohajmi/ko-src/libs/main/KoFilterChainLink.cpp:90
#18 0x001e5076 in KoFilterChain::invokeChain (this=0x8685fa8) at /home/nohajmi/ko-src/libs/main/KoFilterChain.cpp:94
#19 0x001e1da2 in KoFilterManager::importDocument (this=0x85f23a0, url=..., status=@0xbfffd5c0) at /home/nohajmi/ko-src/libs/main/KoFilterManager.cpp:164
#20 0x00191e1d in KoDocument::openFile (this=0x8178c18) at /home/nohajmi/ko-src/libs/main/KoDocument.cpp:1331
#21 0x007f5ca9 in KParts::ReadOnlyPart::openUrl (this=0x8178c18, url=...) at ../../kparts/part.cpp:557
#22 0x001933d7 in KoDocument::openUrl (this=0x8178c18, _url=...) at /home/nohajmi/ko-src/libs/main/KoDocument.cpp:1251
#23 0x0018b2a9 in KoDocument::openExistingFile (this=0x8178c18, url=...) at /home/nohajmi/ko-src/libs/main/KoDocument.cpp:2410
#24 0x001962ad in KoDocument::qt_metacall (this=0x8178c18, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbfffd958)
    at /home/nohajmi/ko-build/libs/main/KoDocument.moc:131
#25 0x02e2724a in KWDocument::qt_metacall (this=0x8178c18, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0xbfffd958)
    at /home/nohajmi/ko-build/kword/part/moc_KWDocument.cpp:92
#26 0x01ed4c9a in QMetaObject::metacall (object=0x8178c18, cl=1847, idx=34, argv=0xbfffd958) at kernel/qmetaobject.cpp:237
#27 0x01ee33d5 in QMetaObject::activate (sender=0x8294088, m=0x267f28, local_signal_index=0, argv=0xbfffd958) at kernel/qobject.cpp:3293
#28 0x00200ba3 in KoOpenPane::openExistingFile (this=0x8294088, _t1=...) at /home/nohajmi/ko-build/libs/main/KoOpenPane.moc:104
#29 0x00200ebd in KoOpenPane::qt_metacall (this=0x8294088, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbfffda88)
    at /home/nohajmi/ko-build/libs/main/KoOpenPane.moc:86
#30 0x01ed4c9a in QMetaObject::metacall (object=0x8294088, cl=1847, idx=27, argv=0xbfffda88) at kernel/qmetaobject.cpp:237
#31 0x01ee33d5 in QMetaObject::activate (sender=0x83d6970, m=0x267e08, local_signal_index=0, argv=0xbfffda88) at kernel/qobject.cpp:3293
#32 0x00200263 in KoExistingDocumentPane::openExistingUrl (this=0x83d6970, _t1=...) at /home/nohajmi/ko-build/libs/main/KoExistingDocumentPane.moc:89
#33 0x0020036f in KoExistingDocumentPane::onAccepted (this=0x83d6970) at /home/nohajmi/ko-src/libs/main/KoExistingDocumentPane.cpp:56
#34 0x0020040d in KoExistingDocumentPane::qt_metacall (this=0x83d6970, _c=QMetaObject::InvokeMetaMethod, _id=28, _a=0xbfffdbbc)
    at /home/nohajmi/ko-build/libs/main/KoExistingDocumentPane.moc:77
#35 0x01ed4c9a in QMetaObject::metacall (object=0x83d6970, cl=1847, idx=28, argv=0xbfffdbbc) at kernel/qmetaobject.cpp:237
#36 0x01ee33d5 in QMetaObject::activate (sender=0x83d6db0, m=0x2321b30, local_signal_index=6, argv=0x0) at kernel/qobject.cpp:3293
#37 0x022da4a7 in KFileWidget::accepted (this=0x83d6db0) at ./kfilewidget.moc:209
#38 0x022ebd9e in KFileWidget::slotOk (this=0x83d6db0) at ../../kfile/kfilewidget.cpp:997
#39 0x022dfc60 in KFileWidgetPrivate::_k_fileSelected (this=0x83d6fd8, i=...) at ../../kfile/kfilewidget.cpp:1106
#40 0x022ea758 in KFileWidget::qt_metacall (this=0x83d6db0, _c=QMetaObject::InvokeMetaMethod, _id=44, _a=0xbfffdf48) at ./kfilewidget.moc:145
#41 0x01ed4c9a in QMetaObject::metacall (object=0x83d6db0, cl=1847, idx=44, argv=0xbfffdf48) at kernel/qmetaobject.cpp:237
#42 0x01ee33d5 in QMetaObject::activate (sender=0x83f7e40, m=0x2321174, local_signal_index=7, argv=0xbfffdf48) at kernel/qobject.cpp:3293
#43 0x022beb23 in KDirOperator::fileSelected (this=0x83f7e40, _t1=...) at ./kdiroperator.moc:322
#44 0x022bf699 in KDirOperator::selectFile (this=0x83f7e40, item=...) at ../../kfile/kdiroperator.cpp:1725
#45 0x022bf801 in KDirOperator::Private::_k_slotActivated (this=0x83f8208, index=...) at ../../kfile/kdiroperator.cpp:2372
#46 0x022cb775 in KDirOperator::qt_metacall (this=0x83f7e40, _c=QMetaObject::InvokeMetaMethod, _id=59, _a=0xbfffe0f8) at ./kdiroperator.moc:251
Comment 4 Thomas Zander 2010-11-07 15:17:06 UTC
SVN commit 1193896 by zander:

Fix crash on opening document

BUG:251562

 M  +1 -1      document.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1193896
Comment 5 swathi 2010-12-23 12:22:51 UTC
No more crash is observed in latest  Calligra latest revision.
(Git  commit 78f327920cfbc1143d2fdd5a6987a517ece2952f))