You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2014/06/08 02:13:05 UTC
[Issue 125071] New: When saving as doc, odt file crashes and
immediately recovers
https://issues.apache.org/ooo/show_bug.cgi?id=125071
Issue ID: 125071
Issue Type: DEFECT
Summary: When saving as doc, odt file crashes and immediately
recovers
Product: Writer
Version: 4.2.0-dev
Hardware: All
OS: Windows XP
Status: CONFIRMED
Severity: normal
Priority: P3
Component: save-export
Assignee: issues@openoffice.apache.org
Reporter: knmc@apache.org
Created attachment 83528
--> https://issues.apache.org/ooo/attachment.cgi?id=83528&action=edit
File I was saving as .doc format to share with a Microsoft Word user
Using administrative install of 4.2.0-dev_1600106. When doing a save as to
Microsoft Wrod 97/2000/XP (.doc) format the odt file crashes and immediately
recovers. Saving to .doc format is never accomplished.
Steps to cause problem
Open or create a writer document
add some text
file->save as
choose Micrsoft Word 97/2000/XP (.doc)
click save
Expected Result: file saves in .doc format
Actual Result: odt file crashes and immediately recovers.
--
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.
[Issue 125071] When saving as doc, odt file crashes and immediately
recovers
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125071
Oliver-Rainer Wittmann <or...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|issues@openoffice.apache.or |orw@apache.org
|g |
--- Comment #4 from Oliver-Rainer Wittmann <or...@apache.org> ---
take over for patch review and further investigations
--
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.
[Issue 125071] When saving as doc, odt file crashes and immediately
recovers
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125071
hdu@apache.org <hd...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |regression
CC| |Armin.Le.Grand@me.com,
| |hdu@apache.org,
| |orw@apache.org
--- Comment #1 from hdu@apache.org <hd...@apache.org> ---
I saw a similar problem with tonight's buildbot build r1601656 when some of the
autotests such as "fvt.uno.sw.DocumentTest:testSaveAsDocument()" failed because
of such a crash.
Shortly before the crash it said: "formats.cxx:462 Do no longer use
SvxBrushItem, instead use [XATTR_FILL_FIRST..XATTR_FILL_LAST] FillAttributes
(simple fallback is in place and used)".
I'll attach a crash backtrace which shows an access violation at
main/sw/source/core/attr/format.cxx:481 when it assigns zero to *ppItem, which
unfortunately is NULL.
The crash stack and the error message suggest that the changes for issue 124638
might have caused this regression.
--
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.
[Issue 125071] When saving as doc, odt file crashes and immediately
recovers
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125071
--- Comment #7 from SVN Robot <sv...@dev.null.org> ---
"hdu" committed SVN revision 1602097 into trunk:
#i125071# check SwFmt::GetItemState()'s ppItem parameter for NULL
--
You are receiving this mail because:
You are watching all issue changes.
review granted: [Issue 125071] When saving as doc, odt file crashes
and immediately recovers : [Attachment 83542] check SwFmt::GetItemState()'s
ppItem for NULL
Posted by bu...@apache.org.
Oliver-Rainer Wittmann <or...@apache.org> has granted hdu@apache.org
<hd...@apache.org>'s request for review:
Issue 125071: When saving as doc, odt file crashes and immediately recovers
https://issues.apache.org/ooo/show_bug.cgi?id=125071
Attachment 83542: check SwFmt::GetItemState()'s ppItem for NULL
https://issues.apache.org/ooo/attachment.cgi?id=83542&action=edit
------- Additional Comments from Oliver-Rainer Wittmann <or...@apache.org>
adjusted patch looks good - bring it into trunk
[Issue 125071] When saving as doc, odt file crashes and immediately
recovers
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125071
hdu@apache.org <hd...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
OS|Windows XP |All
--
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.
[Issue 125071] When saving as doc, odt file crashes and immediately
recovers
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125071
hdu@apache.org <hd...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #83538| |review?(orw@apache.org)
Flags| |
--- Comment #3 from hdu@apache.org <hd...@apache.org> ---
Created attachment 83538
--> https://issues.apache.org/ooo/attachment.cgi?id=83538&action=edit
check SwFmt::GetItemState()'s ppItem for NULL
The SwFmt::GetItemState() method shoud check its ppItem pointer argument before
assigning something into it, because NULL is the default value according to
main/sw/inc/format.hxx and thus is allowed.
The suggested patch solves the crash for both Keith's sample document and for
the autotests, but debug logging still emits warnings like "Unhandled
SfxPoolItem with id X" which hint at a deeper problem.
--
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.
review requested: [Issue 125071] When saving as doc, odt file
crashes and immediately recovers : [Attachment 83538] check
SwFmt::GetItemState()'s ppItem for NULL
Posted by bu...@apache.org.
hdu@apache.org <hd...@apache.org> has asked Oliver-Rainer Wittmann
<or...@apache.org> for review:
Issue 125071: When saving as doc, odt file crashes and immediately recovers
https://issues.apache.org/ooo/show_bug.cgi?id=125071
Attachment 83538: check SwFmt::GetItemState()'s ppItem for NULL
https://issues.apache.org/ooo/attachment.cgi?id=83538&action=edit
------- Additional Comments from hdu@apache.org <hd...@apache.org>
The SwFmt::GetItemState() method shoud check its ppItem pointer argument before
assigning something into it, because NULL is the default value according to
main/sw/inc/format.hxx and thus is allowed.
The suggested patch solves the crash for both Keith's sample document and for
the autotests, but debug logging still emits warnings like "Unhandled
SfxPoolItem with id X" which hint at a deeper problem.
review requested: [Issue 125071] When saving as doc, odt file
crashes and immediately recovers : [Attachment 83542] check
SwFmt::GetItemState()'s ppItem for NULL
Posted by bu...@apache.org.
hdu@apache.org <hd...@apache.org> has asked for review:
Issue 125071: When saving as doc, odt file crashes and immediately recovers
https://issues.apache.org/ooo/show_bug.cgi?id=125071
Attachment 83542: check SwFmt::GetItemState()'s ppItem for NULL
https://issues.apache.org/ooo/attachment.cgi?id=83542&action=edit
[Issue 125071] When saving as doc, odt file crashes and immediately
recovers
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125071
Oliver-Rainer Wittmann <or...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #83542|review? |review+
Flags| |
--- Comment #6 from Oliver-Rainer Wittmann <or...@apache.org> ---
Comment on attachment 83542
--> https://issues.apache.org/ooo/attachment.cgi?id=83542
check SwFmt::GetItemState()'s ppItem for NULL
adjusted patch looks good - bring it into trunk
--
You are receiving this mail because:
You are watching all issue changes.
review canceled: [Issue 125071] When saving as doc, odt file crashes
and immediately recovers : [Attachment 83538] check SwFmt::GetItemState()'s
ppItem for NULL
Posted by bu...@apache.org.
hdu@apache.org <hd...@apache.org> has canceled hdu@apache.org <hd...@apache.org>'s
request for review:
Issue 125071: When saving as doc, odt file crashes and immediately recovers
https://issues.apache.org/ooo/show_bug.cgi?id=125071
Attachment 83538: check SwFmt::GetItemState()'s ppItem for NULL
https://issues.apache.org/ooo/attachment.cgi?id=83538&action=edit
[Issue 125071] When saving as doc, odt file crashes and immediately
recovers
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125071
Oliver-Rainer Wittmann <or...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|orw@apache.org |hdu@apache.org
--
You are receiving this mail because:
You are watching all issue changes.
[Issue 125071] When saving as doc, odt file crashes and immediately
recovers
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125071
hdu@apache.org <hd...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|CONFIRMED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.2.0
--- Comment #8 from hdu@apache.org <hd...@apache.org> ---
The crash is fixed with the commit above.
I suggest to fix the other problems with FillAttributes and unhandled
SfxPoolItems in an own bug or in issue 124638.
--
You are receiving this mail because:
You are watching all issue changes.
[Issue 125071] When saving as doc, odt file crashes and immediately
recovers
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125071
hdu@apache.org <hd...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #83538|0 |1
is obsolete| |
Attachment #83538|review?(orw@apache.org) |
Flags| |
Attachment #83542| |review?
Flags| |
--- Comment #5 from hdu@apache.org <hd...@apache.org> ---
Created attachment 83542
--> https://issues.apache.org/ooo/attachment.cgi?id=83542&action=edit
check SwFmt::GetItemState()'s ppItem for NULL
--
You are receiving this mail because:
You are watching all issue changes.
[Issue 125071] When saving as doc, odt file crashes and immediately
recovers
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125071
--- Comment #2 from hdu@apache.org <hd...@apache.org> ---
Created attachment 83537
--> https://issues.apache.org/ooo/attachment.cgi?id=83537&action=edit
relevant part of the save-as-doc crash stack
--
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.