Closed
Bug 470167
Opened 16 years ago
Closed 16 years ago
"ASSERTION: Should be in an update while creating frames" with stylesheet appended many times
Categories
(Core :: Layout, defect, P2)
Tracking
()
VERIFIED
FIXED
People
(Reporter: jruderman, Assigned: smaug)
References
Details
(Keywords: assertion, testcase, verified1.9.1)
Attachments
(3 files)
369 bytes,
text/html
|
Details | |
8.20 KB,
text/plain
|
Details | |
668 bytes,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
This testcase triggers:
###!!! ASSERTION: Should be in an update while creating frames: 'mUpdateCount != 0', file layout/base/nsCSSFrameConstructor.cpp, line 8355
A related testcase (not attached) triggers:
###!!! ASSERTION: Should be in an update while destroying frames: 'mUpdateCount != 0', file layout/base/nsCSSFrameConstructor.cpp, line 9319
###!!! ASSERTION: Odd update count: 'mUpdateCount == 1', file layout/base/nsCSSFrameConstructor.cpp, line 10144
Bug 464863 also triggers the "should be in an update" assertions, but its testcase is very different.
Reporter | ||
Comment 1•16 years ago
|
||
Comment 2•16 years ago
|
||
Whoops. This is a regression from bug 431082. The --mUpdateCount disappeared from nsCSSFrameConstructor::EndUpdate, so we overflow the counter.
Need to fix this. smaug, want to patch?
Blocks: 431082
Flags: blocking1.9.1?
Assignee | ||
Comment 4•16 years ago
|
||
Attachment #353893 -
Flags: superreview?(bzbarsky)
Attachment #353893 -
Flags: review?(bzbarsky)
Updated•16 years ago
|
Attachment #353893 -
Flags: superreview?(bzbarsky)
Attachment #353893 -
Flags: superreview+
Attachment #353893 -
Flags: review?(bzbarsky)
Attachment #353893 -
Flags: review+
Assignee | ||
Updated•16 years ago
|
Attachment #353893 -
Flags: approval1.9.1?
Assignee | ||
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 5•16 years ago
|
||
It's unfortunate that I had to overflow the counter to notice the bug. Are there points at which we can assert that the counter is 0, perhaps when the object that owns the counter is destroyed?
Comment 6•16 years ago
|
||
Hmm. Yeah, I think it should be reasonable to have such an assert in ~nsCSSFrameConstructor.
Pushed http://hg.mozilla.org/mozilla-central/rev/018f2e97dedd to do that.
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P2
Comment 7•16 years ago
|
||
Comment on attachment 353893 [details] [diff] [review]
put back --mUpdateCount
a191=beltzner
Attachment #353893 -
Flags: approval1.9.1? → approval1.9.1+
Assignee | ||
Updated•16 years ago
|
Keywords: fixed1.9.1
Reporter | ||
Comment 8•16 years ago
|
||
in-testsuite- (the testcase in comment 0 is slow, and the assertion added in comment 6 covers the bug better the testcase does).
Flags: in-testsuite-
Comment 9•15 years ago
|
||
pushed to 1.9.1 too: http://hg.mozilla.org/releases/mozilla-1.9.1/rev/fcfcf03ce04d
verified FIXED (no assertions) using the attached test case on debug builds:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1pre) Gecko/20090608 Shiretoko/3.5pre ID:20090608122057
and
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090608 Minefield/3.6a1pre ID:20090608122028
Status: RESOLVED → VERIFIED
Keywords: fixed1.9.1 → verified1.9.1
You need to log in
before you can comment on or make changes to this bug.
Description
•