Bug 280703 - wv2 import filter crashes with .doc file: #headers % 6 != 0
Summary: wv2 import filter crashes with .doc file: #headers % 6 != 0
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kword
Classification: Miscellaneous
Component: filters (show other bugs)
Version: 2.3
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: KOffice Bug Wranglers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 11:34 UTC by Thomas Fischer
Modified: 2015-02-06 13:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Fischer 2011-08-24 11:34:54 UTC
Version:           2.3 (using KDE 4.6.3) 
OS:                Linux

When opening a certain .doc file, the wv2-based import filter crashes KWord.
The file's URL is http://www.stuffit.org/why/theriot.doc (and attached to this bug report).

KWord+wv2 gives the following output on the command line when crashing:

kword(14244)/winword-filter MSWordOdfImport::convert: ######################## MSWordOdfImport::convert ########################
kword(14244)/winword-filter MSWordOdfImport::convert: created storeout.
kword(14244)/winword-filter MSWordOdfImport::convert: created oasisStore.
kword(14244)/winword-filter MSWordOdfImport::convert: created temp contentWriter and bodyWriter.
kword(14244) <unnamed>::setupParser: nFib = 0x 101 ( 257 )
kword(14244) <unnamed>::setupParser: Looks like document was created with Word 10/Office XP , trying with the Word 8 parser.
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCLidBi not implemented (no documentation available)
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  58  sti =  85
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  60  sti =  87
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  65  sti =  88
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  89  sti =  41
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Style::unwrapStyle: ##### in here, parent style =  4094
kword(14244) wvWare::Style::unwrapStyle: our istd =  15  sti =  4094
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Word97::CHP::applyCHPSPRM: Warning: sprmCHpsBi not implemented (no documentation available)
kword(14244) wvWare::Properties97::Properties97: Warning: DOP has a different size than expected.
kword(14244) wvWare::Fields::sanityCheck: Warning: Detected a hole within the table stream (next fc= 9783 )
kword(14244) wvWare::PLCFMap<T>::calculateCount: Warning: PLCFMap size seems to be screwed
kword(14244) wvWare::PLCFMap<T>::calculateCount: Warning: length:  146 , size:  2 , mod:  4
kword(14244) wvWare::Headers::Headers: Bug: #headers %  6  != 0!

The KDE Crash Handler returns:

Application: KWord (kword), signal: Segmentation fault
[KCrash Handler]
#7  0xafb2ad0e in QBasicAtomicInt::operator!= (this=0x1, value=1) at /usr/include/qt4/QtCore/qbasicatomic.h:75
#8  0xafb6af4d in QList<unsigned int>::append (this=0xbfad8968, t=@0xa03ff2c) at /usr/include/qt4/QtCore/qlist.h:496
#9  0xafb6a610 in wvWare::Headers::Headers (this=0xa03fe58, ccpHdd=9, fcPlcfhdd=5854, lcbPlcfhdd=92, tableStream=0x9ea5c78, version=wvWare::Word8) at /var/tmp/portage/app-office/kword-2.3.3/work/kword-2.3.3/filters/kword/msword-odf/wv2/src/headers.cpp:85
#10 0xafb6ba7d in wvWare::Headers97::Headers97 (this=0xa03fe58, ccpHdd=9, fcPlcfhdd=5854, lcbPlcfhdd=92, tableStream=0x9ea5c78) at /var/tmp/portage/app-office/kword-2.3.3/work/kword-2.3.3/filters/kword/msword-odf/wv2/src/headers97.cpp:24
#11 0xafb50530 in wvWare::Parser97::init (this=0x9f5d530) at /var/tmp/portage/app-office/kword-2.3.3/work/kword-2.3.3/filters/kword/msword-odf/wv2/src/parser97.cpp:42
#12 0xafb50660 in wvWare::Parser97::Parser97 (this=0x9f5d530, storage=0x9f51fd0, wordDocument=0x9f56700) at /var/tmp/portage/app-office/kword-2.3.3/work/kword-2.3.3/filters/kword/msword-odf/wv2/src/parser97.cpp:32
#13 0xafb50a0a in (anonymous namespace)::setupParser (storage=0x9f51fd0) at /var/tmp/portage/app-office/kword-2.3.3/work/kword-2.3.3/filters/kword/msword-odf/wv2/src/parserfactory.cpp:100
#14 0xafb51485 in wvWare::ParserFactory::createParser (fileName=...) at /var/tmp/portage/app-office/kword-2.3.3/work/kword-2.3.3/filters/kword/msword-odf/wv2/src/parserfactory.cpp:123
#15 0xafc45396 in Document::Document (this=0x9f51e90, fileName=..., chain=0x9eab4b0, bodyWriter=0x9ec9598, mainStyles=0x9ec7270, metaWriter=0xbfad92b8, manifestWriter=0xbfad92b0, store=0x9e80298, storage=0xbfad92dc, data=0xbfad9150, table=0x0, wdocument=0xbfad9124) at /var/tmp/portage/app-office/kword-2.3.3/work/kword-2.3.3/filters/kword/msword-odf/document.cpp:82
#16 0xafc3d243 in MSWordOdfImport::convert (this=0x9f02840, from=..., to=...) at /var/tmp/portage/app-office/kword-2.3.3/work/kword-2.3.3/filters/kword/msword-odf/mswordodfimport.cpp:196
#17 0xb7586e53 in KOfficeFilter::ChainLink::invokeFilter (this=0x9ecaf68, parentChainLink=0x0) at /var/tmp/portage/app-office/koffice-libs-2.3.3/work/koffice-libs-2.3.3/libs/main/KoFilterChainLink.cpp:90
#18 0xb757f347 in KoFilterChain::invokeChain (this=0x9eab4b0) at /var/tmp/portage/app-office/koffice-libs-2.3.3/work/koffice-libs-2.3.3/libs/main/KoFilterChain.cpp:94
#19 0xb757c2bc in KoFilterManager::importDocument (this=0x9ed48d8, url=..., status=@0xbfad9610) at /var/tmp/portage/app-office/koffice-libs-2.3.3/work/koffice-libs-2.3.3/libs/main/KoFilterManager.cpp:164
#20 0xb752e216 in KoDocument::openFile (this=0x9d29590) at /var/tmp/portage/app-office/koffice-libs-2.3.3/work/koffice-libs-2.3.3/libs/main/KoDocument.cpp:1336
#21 0xb63869b0 in KParts::ReadOnlyPartPrivate::openLocalFile (this=0x9d29690) at /var/tmp/portage/kde-base/kdelibs-4.6.5-r1/work/kdelibs-4.6.5/kparts/part.cpp:592
#22 0xb6386ce7 in KParts::ReadOnlyPart::openUrl (this=0x9d29590, url=...) at /var/tmp/portage/kde-base/kdelibs-4.6.5-r1/work/kdelibs-4.6.5/kparts/part.cpp:556
#23 0xb752fbf4 in KoDocument::openUrl (this=0x9d29590, _url=...) at /var/tmp/portage/app-office/koffice-libs-2.3.3/work/koffice-libs-2.3.3/libs/main/KoDocument.cpp:1251
#24 0xb755457c in KoMainWindow::openDocumentInternal (this=0x9e136a8, url=..., newdoc=0x9d29590) at /var/tmp/portage/app-office/koffice-libs-2.3.3/work/koffice-libs-2.3.3/libs/main/KoMainWindow.cpp:679
#25 0xb7552031 in KoMainWindow::openDocument (this=0x9e136a8, newdoc=0x9d29590, url=...) at /var/tmp/portage/app-office/koffice-libs-2.3.3/work/koffice-libs-2.3.3/libs/main/KoMainWindow.cpp:662
#26 0xb7521b7a in KoApplication::start (this=0xbfad9bbc) at /var/tmp/portage/app-office/koffice-libs-2.3.3/work/koffice-libs-2.3.3/libs/main/KoApplication.cpp:252
#27 0xb775dca9 in kdemain (argc=2, argv=0xbfad9cd4) at /var/tmp/portage/app-office/kword-2.3.3/work/kword-2.3.3/kword/part/main.cpp:36
#28 0x08048697 in main (argc=2, argv=0xbfad9cd4) at /var/tmp/portage/app-office/kword-2.3.3/work/kword-2.3.3_build/kword/part/kword_dummy.cpp:3


Reproducible: Didn't try

Steps to Reproduce:
To reproduce the problem, open the attached .doc file.


Expected Results:  
The file should properly open and KWord/wv2 should not crash.
Comment 1 Thomas Fischer 2011-08-24 11:37:12 UTC
.doc file is too large to be attached (>2MB), so please use the provided URL.
Comment 2 Christoph Feck 2015-02-06 13:19:06 UTC
Thank you for your bug report or feature suggestion.

The "KOffice" application suite is no longer maintained, and all tickets are now closed.

We recommend to switch to the "Calligra" application suite, which has replacements for all unmaintained KOffice applications:

- KWord was replaced with Calligra Words
- KPlato was replaced with Calligra Plan

For more information, see http://en.wikipedia.org/wiki/Calligra_Suite

(This is an automatic message from the KDE bug triaging team)