Closed Bug 267607 Opened 20 years ago Closed 8 years ago

memory leaks in nsTableCreator::CreateTableCellFrame()

Categories

(Core :: Layout, defect)

1.4 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: eagle.lu, Unassigned)

Details

One of our customers reported that there are memory leaks in
nsTableCreator::CreateTableCellFrame(). 

The following is the call stack that causes the leak:
    libplds4.so`PL_ArenaAllocate+0x150
         libgklayout.so`unsigned PresShell::AllocateFrame(unsigned,void**)+0x60
         libgklayout.so`void*nsFrame::operator new(unsigned,nsIPresShell*)+0x18
         libgklayout.so`unsigned
NS_NewTableCellFrame(nsIPresShell*,int,nsIFrame**)+0x8c         
libgklayout.so`unsigned
nsTableCreator::CreateTableCellFrame(nsIFrame*,nsIFrame**)+0xa8
         libgklayout.so`unsigned
nsCSSFrameConstructor::ConstructTableCellFrame(nsIPresShell*,nsIPresContext*,nsFrameConstructorState&,nsIContent*,nsIFrame*,nsStyleContext*,nsTableCreator&,int,nsFrameItems&,nsIFrame*&,nsIFrame*&,int&)+0x220
         libgklayout.so`unsigned
nsCSSFrameConstructor::TableProcessChild(nsIPresShell*,nsIPresContext*,nsFrameConstructorState&,nsIContent*,nsIContent*,nsIFrame*,nsIAtom*,nsStyleContext*,nsTableCreator&,nsFrameItems&,nsIFrame*&)+0x31c
         libgklayout.so`unsigned
nsCSSFrameConstructor::TableProcessChildren(nsIPresShell*,nsIPresContext*,nsFrameConstructorState&,nsIContent*,nsIFrame*,nsTableCreator&,nsFrameItems&,nsIFrame*&)+0x4b4
         libgklayout.so`unsigned
nsCSSFrameConstructor::ConstructTableRowFrame(nsIPresShell*,nsIPresContext*,nsFrameConstructorState&,nsIContent*,nsIFrame*,nsStyleContext*,nsTableCreator&,int,nsFrameItems&,nsIFrame*&,int&)+0x2f0
         libgklayout.so`unsigned
nsCSSFrameConstructor::TableProcessChild(nsIPresShell*,nsIPresContext*,nsFrameConstructorState&,nsIContent*,nsIContent*,nsIFrame*,nsIAtom*,nsStyleContext*,nsTableCreator&,nsFrameItems&,nsIFrame*&)+0x274
         libgklayout.so`unsigned
nsCSSFrameConstructor::TableProcessChildren(nsIPresShell*,nsIPresContext*,nsFrameConstructorState&,nsIContent*,nsIFrame*,nsTableCreator&,nsFrameItems&,nsIFrame*&)+0x4b4
         libgklayout.so`unsigned
nsCSSFrameConstructor::ConstructTableRowGroupFrame(nsIPresShell*,nsIPresContext*,nsFrameConstructorState&,nsIContent*,nsIFrame*,nsStyleContext*,nsTableCreator&,int,nsFrameItems&,nsIFrame*&,int&)+0x378
This bug isn't very specific, isn't it?
1. under which conditions does that leak occure?
2. is it reproducible?
3. can you attach a testcase that triggers the leak?
4. does that leak also occure with a current nightly?
Please consider using some of the information at
http://www.mozilla.org/performance/leak-brownbag.html to help get more
information on this leak.
The code for freeing the arena isn't table-specific at all, so changing component.
Component: Layout: Tables → Layout: Misc Code
QA Contact: core.layout.tables → core.layout.misc-code
Sorry, I can't provide more detailed information. This trace is got from one of
sun's customer and I can't access his machine.
without a testcase and several unanswered questions, it seems likely this bug isn't actionable
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.