Apache OpenOffice (AOO) Bugzilla – Issue 100472
crash loading master document
Last modified: 2013-08-07 14:44:00 UTC
Load master document attached to issue 100448. -> 3.0.1: ok. -> OOO310m6: crash
Broken due to changes of cws aw063 stack: svlmi.dll!SfxItemSet::GetItemState(unsigned short nWhich=3998, unsigned char bSrchInParent='', const SfxPoolItem * * ppItem=0x0162b804) Line 544 + 0x14 bytes C++ svlmi.dll!SfxItemSet::Set(const SfxItemSet & rSet={...}, unsigned char bDeep='') Line 934 + 0x13 bytes C++ > svxmi.dll!ContentInfo::ContentInfo(const ContentInfo & rCopyFrom={...}, SfxItemPool & rPoolToUse={...}) Line 207 C++ svxmi.dll!BinTextObject::ObjectInDestruction(const SfxItemPool & rSfxItemPool={...}) Line 591 + 0x2a bytes C++ svlmi.dll!SfxItemPool::Free(SfxItemPool * pPool=0x11b9b620) Line 418 + 0x10 bytes C++ swmi.dll!SwDoc::~SwDoc() Line 715 + 0x13 bytes C++ swmi.dll!SwDoc::`vector deleting destructor'() + 0x50 bytes C++ swmi.dll!SwDocShell::RemoveLink() Line 555 + 0x24 bytes C++ swmi.dll!SwDocShell::~SwDocShell() Line 453 C++
AW->OS: Not sure what i exactly need to do. Got the *.tar.gz and loaded both *.odt without problem in a OOO310 m7. Please describe the exact way to the crash.
->aw: You have to load the test.odm (which is the master document)
AW: Thanks, can reproduce the crash now. During load, SW is creating 4 SwAttrPools from which the 3rd is deleted quickly. For the 2nd and the 4th one, BinTextObjects get created. The 4th one is destructed at the end of SwDoc::~SwDoc() while still BinTextObjects using the pool exist. Exactly for that scenario i created the protection for pools: The pool destructors are protected, all deletions are changed to a Free() - call. BinTextObjects register as a user at the pool they get destructed with, and thus the Free() - call at the pool can tell all BinTextObjects that he gets destructed. The BinTextObject::ObjectInDestruction reacts on that by creationg an own pool and migrating it's data to it. AW->OS: The crash happens since copying the items from the old pool fails. The old pool (deleted at the end of SwDoc::~SwDoc()) looks corrupted, the SfxItems which need to be accessed to copy them look bad. Which mechanisms in SW may have corrupted that pool's content before it's deletion? I have no idea what happens during master-document loading.
AW. OOps, forgot owner change...
SBA->OS. Please see also issue 101239.
Duplicate of issue 101007, easier to investigate *** This issue has been marked as a duplicate of 101007 ***
Reopening, wrong duplicate to
Duplicate of issue 101239 *** This issue has been marked as a duplicate of 101239 ***
duplicate -> closed