https://bugs.freedesktop.org/show_bug.cgi?id=49819

--- Comment #5 from Michael Meeks <michael.me...@novell.com> 2012-09-21 
09:12:33 UTC ---
Looks like we detect a problem with the zip file:

(gdb) bt 15
#0  __cxxabiv1::__cxa_throw (obj=0x95443b8, tinfo=0xb06c5438 <typeinfo for
com::sun::star::packages::zip::ZipIOException>, dest=
    0xb0689dc6
<com::sun::star::packages::zip::ZipIOException::~ZipIOException()>) at
../../../../libstdc++-v3/libsupc++/eh_throw.cc:63
#1  0xb068abab in ZipFile::readLOC (this=0x9545670, rEntry=...) at
/ssd/opt/libreoffice/master/package/source/zipapi/ZipFile.cxx:706

704        if ( bBroken && !bRecoveryMode )
705            throw ZipIOException("The stream seems to be broken!",
706                                uno::Reference< XInterface >() );

#2  0xb068c05e in ZipFile::getDataStream (this=0x9545670, rEntry=...,
rData=..., bIsEncrypted=0 '\000', aMutexHolder=...)
    at /ssd/opt/libreoffice/master/package/source/zipapi/ZipFile.cxx:577
#3  0xb06a9c0f in ZipPackageStream::getDataStream (this=0xad6363e0)
    at
/ssd/opt/libreoffice/master/package/source/zippackage/ZipPackageStream.cxx:551
#4  0xac4df7b3 in OWriteStream_Impl::GetStream_Impl (this=0x9544278,
nStreamMode=1, bHierarchyAccess=1 '\001')
    at
/ssd/opt/libreoffice/master/package/source/xstor/owriteablestream.cxx:1357
#5  0xac4e2b0f in OWriteStream_Impl::GetStream (this=0x9544278, nStreamMode=1,
bHierarchyAccess=1 '\001')
    at
/ssd/opt/libreoffice/master/package/source/xstor/owriteablestream.cxx:1337
#6  0xac4fb209 in OStorage::openStreamElementByHierarchicalName
(this=0xad632458, aStreamPath=..., nOpenMode=1)
    at /ssd/opt/libreoffice/master/package/source/xstor/xstorage.cxx:6241
#7  0xac4d3da1 in OHierarchyElement_Impl::GetStreamHierarchically
(this=0xaf28ea38, nStorageMode=1, 
    aListPath=std::vector of length 0, capacity 2, nStreamMode=1,
aEncryptionData=...)
    at
/ssd/opt/libreoffice/master/package/source/xstor/ohierarchyholder.cxx:106
#8  0xac4d404f in OHierarchyElement_Impl::GetStreamHierarchically
(this=0xaf28e618, nStorageMode=1, 
    aListPath=std::vector of length 0, capacity 2, nStreamMode=1,
aEncryptionData=...)
    at
/ssd/opt/libreoffice/master/package/source/xstor/ohierarchyholder.cxx:148
#9  0xac4d432d in OHierarchyHolder_Impl::GetStreamHierarchically
(this=0xad63132c, nStorageMode=1, 
    aListPath=std::vector of length 0, capacity 2, nStreamMode=1,
aEncryptionData=...)
    at /ssd/opt/libreoffice/master/package/source/xstor/ohierarchyholder.cxx:42
#10 0xac4fb2bb in OStorage::openStreamElementByHierarchicalName
(this=0xa2de4e04, aStreamPath=..., nOpenMode=1)
    at /ssd/opt/libreoffice/master/package/source/xstor/xstorage.cxx:6253
#11 0xa2f5cd3b in oox::docprop::(anonymous namespace)::lclGetRelatedStreams
(rxStorage=..., rStreamType=...)
    at /ssd/opt/libreoffice/master/oox/source/docprop/ooxmldocpropimport.cxx:89
#12 0xa2f5d184 in oox::docprop::DocumentPropertiesImport::importProperties
(this=0xad630368, rxSource=..., rxDocumentProperties=...)
    at
/ssd/opt/libreoffice/master/oox/source/docprop/ooxmldocpropimport.cxx:155
#13 0xa096b8bc in writerfilter::dmapper::DomainMapper::DomainMapper
(this=0x9540b90, xContext=..., xInputStream=..., xModel=..., eDocumentType=
    writerfilter::dmapper::DOCUMENT_OOXML) at
/ssd/opt/libreoffice/master/writerfilter/source/dmapper/DomainMapper.cxx:117
#14 0xa09db041 in WriterFilter::filter (this=0xa2de4d14, aDescriptor=...)
    at
/ssd/opt/libreoffice/master/writerfilter/source/filter/ImportFilter.cxx:104

which I imagine is what causes the ultimate General Error dialog:

(gdb) p rEntry
$4 = (ZipEntry &) @0xad636418: {nVersion = 20, nFlag = 6, nMethod = 8, nTime =
1083022683, nCrc = 2030890763, nCompressedSize = 356, nSize = 
    396, nOffset = 12688, nPathLen = 17, nExtraLen = 0, sPath = {pData =
0xa2deef44}}


693            bBroken = rEntry.nVersion != nVersion
694                            || (rEntry.nFlag & ~6L) != (nFlag & ~6L)
695                            || rEntry.nTime != nTime
696                            || rEntry.nPathLen != nPathLen
697                            || !rEntry.sPath.equals( sLOCPath );

(gdb) p rEntry.nVersion
$5 = 20
(gdb) p nVersion
$6 = 20
(gdb) p rEntry.nFlag & ~6L
$7 = 0
(gdb) p nFlag & ~6L
$9 = 0
(gdb) p rEntry.nTime
$10 = 1083022683
(gdb) p nTime
$11 = 1083088142
(gdb) p rEntry.nPathLen 
$12 = 17
(gdb) p nPathLen
$13 = 17

So - seems like it has a different time stamp: odd ...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to