Closed
Bug 393760
Opened 17 years ago
Closed 17 years ago
"ASSERTION: nsVoidArray::ElementAt: index out of range" with mfenced, mathbackground
Categories
(Core :: MathML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: roc)
References
Details
(Keywords: assertion, testcase, Whiteboard: [wanted-1.9] post-1.8-branch)
Attachments
(4 files)
Loading the testcase triggers:
###!!! ASSERTION: nsVoidArray::ElementAt: index out of range: '0 <= aIndex && aIndex < Count()', file ../../../dist/include/xpcom/nsVoidArray.h, line 81
There's also a visual glitch: instead of a pair of parentheses with a yellow background, I see a *random unicode character* with a white background. It's different on every load, suggesting an uninitialized variable or an OOB read. (nsVoidArray::ElementAt has a runtime check, so if there's an OOB read, it's somewhere else.)
Flags: blocking1.9?
Reporter | ||
Comment 1•17 years ago
|
||
The same DOM, but static, makes a nice reference (for reftest).
Reporter | ||
Comment 2•17 years ago
|
||
Generated with:
export XPCOM_DEBUG_BREAK=stack
(run firefox)
(copy sketchy assertion stack to clipboard)
pbpaste | mac2unix | ~/trunk/mozilla/tools/rb/fix-macosx-stack.pl
Flags: blocking1.9? → blocking1.9-
Whiteboard: [wanted-1.9]
Comment 3•17 years ago
|
||
Reproducing on Linux as well as Mac:
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x805303E8: file /home/karl/moz/mozilla/layout/style/nsCSSStyleSheet.cpp, line 1520
###!!! ASSERTION: nsVoidArray::ElementAt: index out of range: '0 <= aIndex && aIndex < Count()', file ../../../../dist/include/xpcom/nsVoidArray.h, line 81
WARNING: String ending in half a surrogate pair!: file ../../../dist/include/string/nsUTF8Utils.h, line 748
OS: Mac OS X → All
Reporter | ||
Updated•17 years ago
|
Whiteboard: [wanted-1.9] → [wanted-1.9] post-1.8-branch
Reporter | ||
Comment 4•17 years ago
|
||
No longer asserts for me on trunk (Mac). Apparently we no longer honor the mathbackground attribute on <mfenced> elements. This brings us more in line with the MathML spec, which specifies mathbackground as being an attribute of <mstyle> and tokens only. I'm guessing this change was intentional and part of bug 355548.
Doesn't assert for me on branch.
Assignee: rbs → roc
Depends on: 355548
Reporter | ||
Updated•17 years ago
|
Group: security
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite?
Reporter | ||
Comment 5•17 years ago
|
||
roc, should I add this testcase as a crashtest, or should I make reftests to test that we support mathbackground on the correct elements but not on mfenced?
Assignee | ||
Comment 6•17 years ago
|
||
you could do both :-)
Reporter | ||
Comment 7•17 years ago
|
||
Ok, I checked in a crashtest, and here's some reftests.
Reporter | ||
Comment 8•17 years ago
|
||
Old builds fail almost every line of 393760-1.xml ;)
Reporter | ||
Comment 10•17 years ago
|
||
I had to remove the first line from the first reftest because the span's height was more than the math's height on a Linux Tinderbox.
Comment 11•15 years ago
|
||
This reftest is failing for Fedora unit tests (see bug 560882).
I have machines available to help fixing it.
Let me know if it should make sense to file another bug instead of reopening this one.
Blocks: ReftestFedoraOrange
Reporter | ||
Comment 12•15 years ago
|
||
Armen, please file a new bug (blocking this one if you want). We usually don't reopen bugs except for backouts or patches that didn't fix the bug as reported.
You need to log in
before you can comment on or make changes to this bug.
Description
•