Apache OpenOffice (AOO) Bugzilla – Issue 104155
Some docx documents crash on load
Last modified: 2011-02-11 14:40:19 UTC
The backtrace leads to oox: Program received signal SIGSEGV, Segmentation fault. 0x00007fffd78dcc5f in oox::StorageBase::getSubStorage(rtl::OUString const&, bool) () from /local/inst/dev300-m54/openoffice.org3/program/../basis-link/program/libooxlx.so #1 0x00007fffd78dd1c7 in oox::StorageBase::openInputStream(rtl::OUString const&) () from /local/inst/dev300-m54/openoffice.org3/program/../basis-link/program/libooxlx.so #2 0x00007fffd78e3641 in oox::core::FilterBase::openInputStream(rtl::OUString const&) const () from /local/inst/dev300-m54/openoffice.org3/program/../basis-link/program/libooxlx.so #3 0x00007fffd78ee0ea in ?? () from /local/inst/dev300-m54/openoffice.org3/program/../basis-link/program/libooxlx.so #4 0x00007fffd78f4e77 in oox::core::XmlFilterBase::importFragment(rtl::Reference<oox::core::FragmentHandler> const&) () from /local/inst/dev300-m54/openoffice.org3/program/../basis-link/program/libooxlx.so #5 0x00007fffd78f6317 in oox::core::XmlFilterBase::importRelations(rtl::OUString const&) () from /local/inst/dev300-m54/openoffice.org3/program/../basis-link/program/libooxlx.so Let me attach the test document.
Created attachment 64066 [details] The file causing the crash.
Just a note, the file loaded just OK with m49, and does not work in m54.
started
target
dr->hbrinkm: Seems that oox::shape::ShapeContextHandler is using an uninitialized (or at least partly initialized) XmlFilterBase object. The members mxImpl->maFileUrl and mxImpl->mxStorage are empty. The latter causes the crash while calling FilterBase::openInputStream( "word/_rels/document.xml.rels" ) to read a relations stream. The mentioned members are inizialized while setting the media descriptor which is a must to use the FilterBase class correclty. This is usually done directly from the filter() API call that provides the filter descriptor as sequence of PropertyValues. P2 as it seems to crash with any DOCX containing shapes.
Fixed in cws writerfilter32bugfixes01 in oox/source/core/filterbase.cxx ->cedricbosdo: Please add this issue to the cws and add me as member of that cws
Set to fixed
cedricbosd->os: the EIS informations are updated.
*** Issue 105035 has been marked as a duplicate of this issue. ***
According to comment from kendy ("broken after m49"), I set keyword "regression".
wrong resolution
Resetting resolution. Got played on by IssueZilla.
Please update the status of this issue: can we close it?
set to verified This issue has not been added to the cws but the fix was included.
closing