Closed Bug 263738 Opened 20 years ago Closed 20 years ago

crash on print/print preview [@ nsTableRowFrame::InsertCellFrame]

Categories

(Core :: Printing: Output, defect)

defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: felix, Assigned: bernd_mozilla)

References

()

Details

(5 keywords)

Crash Data

Attachments

(4 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041005 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041005 Firefox/0.10.1

This page can't be printed with any Gecko-based browser. When trying to print
this page, the browser crashes. Verified with Linux, Windows, MacOS X and
various Browsers (Mozilla 1.7 / Firefox 1.0PR)


Reproducible: Always
Steps to Reproduce:
1. open page http://www.lyngsat.com/astra19.html
2. Open Menu File->Print
3. Klick OK to start printing

Actual Results:  
Application crashes. On MacOS X it says "the Application exited unexpectedly",
on Linux it just disappears.

Expected Results:  
print the page without crashing ;-)

using default theme and any operating-system. Bug is reproduceable easily as
some colleagues / friends proofed.
Confirming bug, 2004-10-09-07 trunk Linux (both on Print and Print Preview).
Severity: normal → critical
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash
Summary: crash if I want to print the page http://www.lyngsat.com/astra19.html → crash on print/print preview [@ nsTableRowFrame::InsertCellFrame]
a reduced testcase would be nice
Keywords: qawanted
The critical section of code seems to be
<http://lxr.mozilla.org/seamonkey/source/layout/html/table/src/nsTableRowGroupFrame.cpp#1111>.
The call to UndoContinuedRow() at line 1115 is apparently supposed to invalidate
contRow, and at least in debug builds causes the contRow data structure to be
filled with 0xdd. contRow is passed to SplitSpanningCells() at line 1121, which
passes it to nsTableRowFrame::InsertCellFrame(). InsertCellFrame() dereferences
a pointer which has been set to 0xdddddddd and segfaults.
Severity: critical → normal
Attached file Backtrace (MacOS)
Looks very much the same as the one from Linux
Attached file testcase
This doesn't seem to be reduced, but everything I change "fixes" it.
this regressed between linux trunk 2004041308 and 2004041409.  bug 231823 looks
like the likely culprit.
Severity: normal → critical
taking the bug, bug 231823 only corrected the situation when we split, so
probably it only exposed the bug.
Assignee: core.printing → bernd_mozilla
Attached patch patch (obsolete) — Splinter Review
Bernd: with the patch, I still crash printing and print prviewing the URL and
testcase
Attached patch revised patchSplinter Review
Attachment #161745 - Attachment is obsolete: true
Andrew, could you please retest?
printing URL and testcase with the new patch works.
Attachment #161761 - Flags: superreview?(bzbarsky)
Attachment #161761 - Flags: review?(bzbarsky)
Comment on attachment 161761 [details] [diff] [review]
revised patch

r+sr=bzbarsky, but we really need to make this code more sane... :(
Attachment #161761 - Flags: superreview?(bzbarsky)
Attachment #161761 - Flags: superreview+
Attachment #161761 - Flags: review?(bzbarsky)
Attachment #161761 - Flags: review+
Comment on attachment 161761 [details] [diff] [review]
revised patch

going for approval
Attachment #161761 - Flags: approval1.7.x?
Attachment #161761 - Flags: approval-aviary?
Comment on attachment 161761 [details] [diff] [review]
revised patch

a=chofmann for the branches
Attachment #161761 - Flags: approval1.7.x?
Attachment #161761 - Flags: approval1.7.x+
Attachment #161761 - Flags: approval-aviary?
Attachment #161761 - Flags: approval-aviary+
fix checked in trunk + branches
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Verified FIXED on the trunk with build 2004-10-14-05, Windows XP Seamonkey.
Status: RESOLVED → VERIFIED
Crash Signature: [@ nsTableRowFrame::InsertCellFrame]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: