Closed Bug 308752 Opened 20 years ago Closed 20 years ago

table crash [@ BCMapCellIterator::SetInfo] [@ nsTableFrame::GetEffectiveColSpan]

Categories

(Core :: Layout: Tables, defect)

PowerPC
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: bernd_mozilla)

References

Details

(Keywords: crash, verified1.8, Whiteboard: [sg:fix])

Crash Data

Attachments

(4 files, 1 obsolete file)

Attached file testcase (not reduced)
Whiteboard: [sg:fix]
taking, Can I add Martin Wargers to security related bugs, he is a testcase createur extraordinaire
Assignee: nobody → bernd_mozilla
Yes.
I managed to reduce it a bit further, but it is still not minimal. When you get a slow script warning, just continue. After the page has finished consuming all cpu, click once in the page to get the crash. The style table { border-collapse: collapse; } seems also necessary to trigger the crash.
This is how the dom source looks like of the parentNode of allNodes[60] just before the crash. allNodes[60] is the second td.
I see the crash with attachment 196333 [details] as described in comment 4
Flags: blocking1.8b5?
I tried today to get this testcase down to something reasonable, but failed. Is there any known way how to rewind these random things into something usefull? With the attached testcase its impossible for me to debug this.
Flags: blocking1.8b5? → blocking1.8b5+
Martijn, that testcase is great, its reasonable small, crashes and is debugable.
Attached patch patch (obsolete) — Splinter Review
Bernd, is this patch ready for review?
I need to rtest the patch and to add some comments at least to the bug or better to the source to get this into a shape where I can ask Boris to review this.
Attached patch patchSplinter Review
The problem here is that rebuild cellmap relied on Appendcells to increase the mRowCount. This fails if an empty row is in the table, as AppendCells will not be called in this case. Only when the rows are to be added or to be removed we know for certain that they are real and not dead rows so putting the burden here at AppendCells is wrong.
Attachment #196926 - Attachment is obsolete: true
Attachment #197277 - Flags: superreview?(bzbarsky)
Attachment #197277 - Flags: review?(bzbarsky)
Attachment #197277 - Flags: superreview?(bzbarsky)
Attachment #197277 - Flags: superreview+
Attachment #197277 - Flags: review?(bzbarsky)
Attachment #197277 - Flags: review+
fix checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment on attachment 197277 [details] [diff] [review] patch Did this land on trunk or branch?
Attachment #197277 - Flags: approval1.8b5?
This has so far landed on trunk but not branch.
Attachment #197277 - Flags: approval1.8b5? → approval1.8b5+
I am not sure that I will be able to checkin before friday, if this is urgent then please check it in before.
fixed on branch
Keywords: fixed1.8
Using Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b5) Gecko/20050928 Firefox/1.4, I still crash using the first test case, as well as the fourth test case. Reopening. Talkback ID is TB9840133M for the first testcase. Running OSX 10.4.2.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
resolving fixed again - I will test tomorrow. Misread the checkin date. sorry.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Looks good using Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b5) Gecko/20050929 Firefox/1.4. No crashes with any of the test cases. If I run the first test case, Firefox does throw up an alert "Unresponsive script." Is this expected?
Keywords: fixed1.8verified1.8
Flags: testcase+
Group: security
Summary: StirDOM/table crash [@ BCMapCellIterator::SetInfo] [@ nsTableFrame::GetEffectiveColSpan] → table crash [@ BCMapCellIterator::SetInfo] [@ nsTableFrame::GetEffectiveColSpan]
Flags: in-testsuite+ → in-testsuite?
Flags: in-testsuite? → in-testsuite+
Crash Signature: [@ BCMapCellIterator::SetInfo] [@ nsTableFrame::GetEffectiveColSpan]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: