Closed
Bug 394800
Opened 17 years ago
Closed 17 years ago
"ASSERTION: Some objects allocated with AllocateFrame were not freed" with xul:menulist, xul:tooltip
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
VERIFIED
FIXED
mozilla1.9beta1
People
(Reporter: jruderman, Assigned: MatsPalmgren_bugz)
References
Details
(Keywords: assertion, crash, testcase, Whiteboard: [sg:critical?][dbaron-1.9:Rs])
Attachments
(3 files)
(deleted),
application/xhtml+xml
|
Details | |
(deleted),
application/octet-stream
|
Details | |
(deleted),
patch
|
enndeakin
:
review+
bzbarsky
:
superreview+
dbaron
:
approval1.9+
|
Details | Diff | Splinter Review |
###!!! ASSERTION: Shallow unbind won't clear document and binding parent on kids!: 'aDeep || (!GetCurrentDoc() && !GetBindingParent())', file /Users/jruderman/trunk/mozilla/content/base/src/nsGenericElement.cpp, line 2090
###!!! ASSERTION: Some objects allocated with AllocateFrame were not freed: 'mFrameCount == 0', file /Users/jruderman/trunk/mozilla/layout/base/nsPresShell.cpp, line 673
This bug appears to be exploitable via the usual method for exploiting "ASSERTION: Some objects allocated with AllocateFrame were not freed" bugs.
Flags: blocking1.9?
Reporter | ||
Comment 1•17 years ago
|
||
Reporter | ||
Comment 2•17 years ago
|
||
You have to reload to see the second assertion, as usual.
Reporter | ||
Updated•17 years ago
|
Whiteboard: [sg:critical?]
Assignee | ||
Comment 3•17 years ago
|
||
We're calling nsMenuFrame::InsertFrames with aPrevFrame == the popup frame
on its ::popupList although we insert the new frame into the principal list.
This is same problem as we had with nsFieldSetFrame when aPrevFrame was
the legend frame in bug 345249. Patch coming up.
Assignee: nobody → mats.palmgren
Flags: in-testsuite?
OS: Mac OS X → All
Hardware: PC → All
Assignee | ||
Comment 4•17 years ago
|
||
Assignee | ||
Comment 5•17 years ago
|
||
Fixes the second assertion (and the crash I hope -- Jesse, confirm?).
The first assertion still occurs but I think it's unrelated and can
be handled in a separate bug.
Attachment #279581 -
Flags: superreview?(enndeakin)
Attachment #279581 -
Flags: review?(enndeakin)
Reporter | ||
Comment 6•17 years ago
|
||
make[5]: *** No rule to make target `/Users/jruderman/trunk/mozilla/layout/xul/test/Makefile.in', needed by `test/Makefile'. Stop.
Did you forget to include your new tests in the patch?
Reporter | ||
Comment 7•17 years ago
|
||
The patch does fix the crash :)
Assignee | ||
Comment 8•17 years ago
|
||
(In reply to comment #6)
> Did you forget to include your new tests in the patch?
It's in the attached .tar.gz file. I don't think it's possible to make
a cvs diff with files in new directories (layout/xul/test), IIRC "cvs add"
of a directory is immediate and I didn't want to affect the repository
without approval.
(In reply to comment #7)
> The patch does fix the crash :)
Thanks!
Comment 9•17 years ago
|
||
(In reply to comment #8)
>I don't think it's possible to make a cvs diff with files in new directories
There are third-party utilities that allow this (e.g. cvsdo).
Updated•17 years ago
|
Attachment #279581 -
Flags: superreview?(enndeakin)
Attachment #279581 -
Flags: superreview?(bzbarsky)
Attachment #279581 -
Flags: review?(enndeakin)
Attachment #279581 -
Flags: review+
Comment 10•17 years ago
|
||
Comment on attachment 279581 [details] [diff] [review]
Patch rev. 1
sr=bzbarsky
Attachment #279581 -
Flags: superreview?(bzbarsky) → superreview+
Assignee | ||
Updated•17 years ago
|
Attachment #279581 -
Flags: approval1.9?
Flags: blocking1.9? → blocking1.9+
Comment 11•17 years ago
|
||
Comment on attachment 279581 [details] [diff] [review]
Patch rev. 1
a1.9=dbaron
Attachment #279581 -
Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
Updated•17 years ago
|
Whiteboard: [sg:critical?] → [sg:critical?][dbaron-1.9:Rs]
Assignee | ||
Comment 12•17 years ago
|
||
mozilla/layout/xul/test/Makefile.in 1.2
mozilla/layout/xul/test/test_bug394800.xhtml 1.1
mozilla/layout/xul/base/src/nsBoxFrame.cpp 1.341
mozilla/layout/xul/base/src/nsMenuFrame.cpp 1.362
-> FIXED
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite? → in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M9
Comment 13•17 years ago
|
||
verified fixed 1.9.0 debug no AllocateFrame assertion with attachment 279517 [details] on linux/macppc/windows. Also no assertion on linux/windows with the mochikit test (mac wouldn't run mochikit...)
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 14•17 years ago
|
||
This bug doesn't seem to affect branch. I ported the patch for bug 334514 to branch just to make sure ;)
Group: security
Flags: wanted1.8.1.x-
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•