Closed Bug 372376 Opened 17 years ago Closed 17 years ago

Memory corruption with <tr style="display: inherit">


(Core :: Layout: Tables, defect)

Not set





(Reporter: jruderman, Assigned: bzbarsky)



(5 keywords, Whiteboard: [sg:critical] see


(2 files)

This testcase leads to crashes in *entirely* random places and times.  It might crash soon during GC, or it might crash while writing bookmarks during shutdown, or it might not crash at all.  You should restart Firefox after loading the testcase to avoid data loss in a crash later.

Memory corruption leading to random crashes, including "Illegal instruction" crashes --> sg:critical.

You're also likely to see these two assertions:

###!!! ASSERTION: wrong display type on rowframe: 'NS_STYLE_DISPLAY_TABLE_ROW == childFrame->GetStyleDisplay()->mDisplay', file /Users/jruderman/trunk/mozilla/layout/tables/nsTableRowFrame.cpp, line 1291

###!!! ASSERTION: invalid array index: 'i < Length()', file ../../dist/include/xpcom/nsTArray.h, line 318

and you might also see:

###!!! ASSERTION: span beyond the row size!: 'endColIndex + 1 <= row.Length()', file /Users/jruderman/trunk/mozilla/layout/tables/nsCellMap.cpp, line 2108

###!!! ASSERTION: Bogus row index?: 'Not Reached', file /Users/jruderman/trunk/mozilla/layout/tables/nsCellMap.cpp, line 399
Flags: blocking1.9?
Does the tr's display property have to be "inherit" to trigger this crash?  The computed style is "block" (why not "table"?), but if I change "inherit" to "block" in the testcase the assertions and crash and incorrect display go away.
Whiteboard: [sg:critical]
I think this might be related to bug 317876.
###!!! ASSERTION: wrong display type on rowframe: 'NS_STYLE_DISPLAY_TABLE_ROW
== childFrame->GetStyleDisplay()->mDisplay', file
/Users/jruderman/trunk/mozilla/layout/tables/nsTableRowFrame.cpp, line 1291

Is exactly bug 317876, the cure is outlined in which is beyond my capabilities.
Depends on: 317876
Keywords: arch
Whiteboard: [sg:critical] → [sg:critical] see
Critical security bugs need to have an owner.  Bern, DBarron, who should own this bug?
That one is also assigned to nobody.  Any ideas who should get them?
bz attached a patch last week and it already has review.  It sounds like he needs more time to test the patch before he's comfortable checking it in.
Assignee: nobody → bzbarsky
Note to self:  The PresContext() landing bitrotted this.  Need to update...  The patch lives in the "leafframe" tree.
Depends on: 323656
Now that bug bug 323656 is fixed, is this still a problem?
A debug build from earlier today had a bunch of problems (random rendering, assertions, random crashes) with the testcase.  A debug build from just now does fine.  FIXED by the checkin for bug 323656.
Closed: 17 years ago
Flags: blocking1.9?
Resolution: --- → FIXED
The testcase crashes debug builds but with a different assertion (twice):

###!!! ASSERTION: Computed overflow area must contain frame bounds: 'aNewSize.width == 0 || aNewSize.height == 0 || aOverflowArea->Contains(nsRect(nsPoint(0, 0), aNewSize))', file c:/dev/ff2/mozilla/layout/generic/nsFrame.cpp, line 4410

The crash is due to the debug heap routines detecting damaged blocks (i.e. most likely sg:critical). Applying the patch from bug 323656 to see if it's the same thing as the trunk crash.
Flags: wanted1.8.1.x+
Flags: wanted1.8.0.x+
Flags: blocking1.8.1.4?
Flags: blocking1.8.0.12?
The patch from bug 323656 seems to fix the branch crash, too.
Flags: blocking1.8.1.4?
Flags: blocking1.8.1.4+
Flags: blocking1.8.0.12?
Flags: blocking1.8.0.12+
Appears fixed in by bug 323656. Adding keywords but also "qawanted" to make sure we double-check this one.
Verified fixed on trunk and branches.
The testcase doesn't crash on load, or even reloading it a few times.
Group: security
Flags: in-testsuite?
Crashtest checked in.
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.