Closed Bug 359786 Opened 18 years ago Closed 18 years ago

crash when listitem is first element inside listitem (due to infinite recusion)

Categories

(Core :: Layout, defect)

1.8 Branch
x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 306911

People

(Reporter: soyapim, Unassigned)

Details

(Keywords: crash)

Attachments

(1 file)

387 bytes, application/vnd.mozilla.xul+xml
Details
User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

When a <listitem> is the first or only element inside another <listitem>, the browser crashes.

This can easily happen when you mistakenly type listitem instead of listcell when implementing a multi-column listbox

Reproducible: Always

Steps to Reproduce:
1. In a XUL file,create a listbox with at least one listitem
2. Inside any listitem, insert another listitem
3. Open the XUL file in the browser

Actual Results:  
Firefox crashed

Expected Results:  
The same behaviour when a listitem is not the first embedded element
Attached file Test case
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20061107 Minefield/3.0a1

I crash in 1.8 build, but not on trunk. Unfortunately, Talkback isn't firing when I crash.

Soyapi, does Talkback fire when you crash? If so, please paste the ID here. http://kb.mozillazine.org/Talkback
Keywords: crash, stackwanted
Version: unspecified → 1.8 Branch
Crash confirmed on
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061107 BonEcho/2.0
not on trunk.
The crash is due to infinite recursion. Here's a snippet from the stack:

#1287 0xb5952874 in nsGridRowLeafLayout::GetMaxSize (this=0x9177a68, aBox=0x91762d0, aState=@0xbff91a14, aSize=@0xbf7a8250) at /moz/branch/mozilla/layout/xul/base/src/grid/nsGridRowLeafLayout.cpp:128
#1288 0xb5678e55 in nsBoxFrame::GetMaxSize (this=0x91762d0, aBoxLayoutState=@0xbff91a14, aSize=@0xbf7a8250) at /moz/branch/mozilla/layout/xul/base/src/nsBoxFrame.cpp:1063
#1289 0xb595812b in nsGridCell::GetMaxSize (this=0x9177b2c, aState=@0xbff91a14, aMax=@0xbf7a8294) at /moz/branch/mozilla/layout/xul/base/src/grid/nsGridCell.cpp:149
#1290 0xb5956cc2 in nsGrid::GetMaxRowHeight (this=0x91754d0, aState=@0xbff91a14, aIndex=0, aSize=@0xbf7a8310, aIsHorizontal=1) at /moz/branch/mozilla/layout/xul/base/src/grid/nsGrid.cpp:1180
#1291 0xb5956e3a in nsGrid::GetMaxRowSize (this=0x91754d0, aState=@0xbff91a14, aRowIndex=0, aSize=@0xbf7a83a0, aIsHorizontal=1) at /moz/branch/mozilla/layout/xul/base/src/grid/nsGrid.cpp:622

Basically the same issue as bug 322759.
Component: XUL Widgets → Layout
Keywords: stackwanted
Product: Toolkit → Core
QA Contact: xul.widgets → layout
Summary: crash when listitem is first element inside listitem → crash when listitem is first element inside listitem (due to infinite recusion)

*** This bug has been marked as a duplicate of 322759 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Reopening. Martijn says he still crashes on trunk when viewing the testcase in bug 322759, but doesn't crash when viewing this case on trunk (using Windows), so this is probably a different bug.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Yeah, the same bug as bug 306911, the testcase in that bug is the same.

*** This bug has been marked as a duplicate of 306911 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: