Closed
Bug 414740
Opened 17 years ago
Closed 17 years ago
nsLineIterator leak with caret mode and pressing right arrow key, using testcase from bug 344164
Categories
(Core :: Layout, defect, P2)
Core
Layout
Tracking
()
VERIFIED
FIXED
mozilla1.9beta4
People
(Reporter: martijn.martijn, Assigned: MatsPalmgren_bugz)
References
()
Details
(Keywords: memory-leak, testcase)
Attachments
(3 files)
3.38 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
4.84 KB,
patch
|
Details | Diff | Splinter Review | |
1.91 KB,
patch
|
Details | Diff | Splinter Review |
I'm getting this leak when pressing the right arrow key a couple of times with the testcase from bug 344164 and in caret mode: == BloatView: ALL (cumulative) LEAK STATISTICS |<----------------Class--------------->|<-----Bytes------>|<----------------Objects---------------->|<--------------References-------------->| Per-Inst Leaked Total Rem Mean StdDev Total Rem Mean StdDev 0 TOTAL 23 2856 550885 102 ( 1092.46 +/- 1366.90) 1254928 102 ( 1465.73 +/- 2288.88) 450 nsLineIterator 28 2856 488 102 ( 48.40 +/- 34.25) 860 102 ( 49.36 +/- 34.23) There is also an automated testcase: https://bugzilla.mozilla.org/attachment.cgi?id=228724 You need to download it to your computer, because of the use of enhanced privileges.
Reporter | ||
Comment 1•17 years ago
|
||
It also seems to happen with https://bugzilla.mozilla.org/attachment.cgi?id=230293 , with the testcase from bug 345616.
Looks bad
Flags: blocking1.9+
Priority: -- → P2
Assignee | ||
Comment 3•17 years ago
|
||
http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/layout/generic/nsBlockFrame.cpp&rev=3.927&root=/cvsroot&mark=328,333#317
Assignee: nobody → mats.palmgren
Status: NEW → ASSIGNED
Attachment #300337 -
Flags: superreview?(roc)
Attachment #300337 -
Flags: review?(roc)
Assignee | ||
Comment 4•17 years ago
|
||
Please also add the testcase as a crash-test so that we'll test this for leaks once we have proper leak testing for automated tests.
Assignee | ||
Comment 6•17 years ago
|
||
Comment on attachment 300337 [details] [diff] [review] Patch rev. 1 yikes
Attachment #300337 -
Flags: superreview?(roc)
Attachment #300337 -
Flags: superreview+
Attachment #300337 -
Flags: review?(roc)
Attachment #300337 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Attachment #300337 -
Flags: approval1.9?
Assignee | ||
Updated•17 years ago
|
Attachment #300337 -
Flags: approval1.9?
Comment 8•17 years ago
|
||
Man. Having QI on a frame actually return a refcounted object is evil... Benjamin, how are we handling this case in your moz2 changes?
Comment 9•17 years ago
|
||
In bug 396185 nsILineIterator is still a refcounted object. But there at least you have pseudo-documentation for which objects are refcounted and which aren't: refcounted objects inherit from nsISupports while non-refcounted frames inherit from nsFrameQI or nothing.
Comment 10•17 years ago
|
||
Mats, does this cause the failure of 51 other crash-tests (i noticed you just commented out yours)?
Assignee | ||
Comment 11•17 years ago
|
||
mozilla/layout/generic/nsFrameList.cpp 3.54 mozilla/layout/generic/crashtests/414740.html 1.1 The testcase fails for unknown reasons though so I removed it from the crashtests.list for now in an attempt to make Tinderbox green. -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9beta4
Assignee | ||
Comment 12•17 years ago
|
||
(In reply to comment #10) > Mats, does this cause the failure of 51 other crash-tests (i noticed you just > commented out yours)? Yes, I'm pretty sure this test caused the tests after it to fail, maybe by causing a permission dialog to pop up? I have removed it so Tinderbox should go green now...
Comment 13•17 years ago
|
||
verified fixed with the steps to reproduce from mats and Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008050621 Firefox/3.0pre -> no leak ...verified fixed
Status: RESOLVED → VERIFIED
Comment 14•15 years ago
|
||
This bug's crashtest uses enablePrivilege, which isn't allowed for crashtests (pops up a permission dialog, as suggested in comment 12). It should probably be converted into a mochitest, because the mochitest harness auto-allows enablePrivilege requests.
You need to log in
before you can comment on or make changes to this bug.
Description
•