Closed
Bug 457375
Opened 16 years ago
Closed 16 years ago
"ASSERTION: comparing iterators over different lists" with -moz-column, null character, height
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
VERIFIED
FIXED
mozilla1.9.1b2
People
(Reporter: jruderman, Assigned: MatsPalmgren_bugz)
References
Details
(5 keywords, Whiteboard: [sg:critical?])
Attachments
(4 files)
(deleted),
text/html
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
patch
|
roc
:
review+
roc
:
superreview+
dveditz
:
approval1.9.0.4+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
Loading the testcase in a trunk debug build triggers:
###!!! ASSERTION: comparing iterators over different lists: 'mListLink == aOther.mListLink', file /Users/jruderman/central/layout/base/../generic/nsLineBox.h, line 690
###!!! ABORT: running past end: 'mCurrent != mListLink', file /Users/jruderman/central/layout/base/../generic/nsLineBox.h, line 611
The abort usually indicates heap corruption. This testcase makes nightlies hang rather than crash, but I'm filing as security-sensitive to be on the safe side.
Gary Kwong did the hard part of finding a reproducible testcase triggering the bug. I just did the easy part of reducing it ;)
Flags: blocking1.9.1?
Assignee | ||
Comment 1•16 years ago
|
||
Assignee | ||
Comment 2•16 years ago
|
||
When switching from the overflow lines to normal lines we must reset
'mInOverflowLines' or we'll compare 'mLine' to wrong list on the
next call. See the printf's at the top and frame dump in the previous
attachment for details.
Assignee: nobody → mats.palmgren
Attachment #342020 -
Flags: superreview?(roc)
Attachment #342020 -
Flags: review?(roc)
Assignee | ||
Updated•16 years ago
|
OS: Mac OS X → All
Hardware: PC → All
Attachment #342020 -
Flags: superreview?(roc)
Attachment #342020 -
Flags: superreview+
Attachment #342020 -
Flags: review?(roc)
Attachment #342020 -
Flags: review+
Comment on attachment 342020 [details] [diff] [review]
Patch rev. 1
r+sr if you move it into "if (currentlyInOverflowLines) {"
Assignee | ||
Comment 4•16 years ago
|
||
That's not necessary for correctness though, do you think it's faster?
If so, why?
It's cleaner there. If we're currentlyInOverflowLines, then we toggle mInOverflowLines to null; otherwise the other branch of the 'if' toggles it to something non-null.
Assignee | ||
Comment 6•16 years ago
|
||
Ok, I'll fix that.
Reporter | ||
Updated•16 years ago
|
Whiteboard: [sg:critical?]
Assignee | ||
Comment 7•16 years ago
|
||
Assignee | ||
Comment 8•16 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/f6ed4aa2071c
Holding the crashtest until 1.9.0.x is released with the fix.
-> FIXED
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: wanted1.9.0.x?
Flags: in-testsuite?
Resolution: --- → FIXED
Comment 9•16 years ago
|
||
(In reply to comment #8)
> http://hg.mozilla.org/mozilla-central/rev/f6ed4aa2071c
FWIW, the URL for the fixed (landed) version of the patch, addressing the change suggested in comment 3 & comment 5, is:
http://hg.mozilla.org/mozilla-central/raw-diff/f6ed4aa2071c/layout/generic/nsBlockFrame.cpp
Assignee | ||
Updated•16 years ago
|
Target Milestone: --- → mozilla1.9.1b2
Assignee | ||
Updated•16 years ago
|
Attachment #342020 -
Flags: approval1.9.0.4?
Comment 10•16 years ago
|
||
Comment on attachment 342020 [details] [diff] [review]
Patch rev. 1
Approved for 1.9.0.4, a=dveditz for release-drivers
Attachment #342020 -
Flags: approval1.9.0.4? → approval1.9.0.4+
Assignee | ||
Comment 11•16 years ago
|
||
Landed on CVS trunk for 1.9.0.4:
mozilla/layout/generic/nsBlockFrame.cpp 3.958
Comment 12•16 years ago
|
||
Verified for 1.9.0.4 with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.4pre) Gecko/2008102104 GranParadiso/3.0.4pre.
Keywords: fixed1.9.0.4 → verified1.9.0.4
Comment 13•16 years ago
|
||
Verified for trunk with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b2pre) Gecko/20081020 Minefield/3.1b2pre.
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Group: core-security
Reporter | ||
Updated•16 years ago
|
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•