Closed
Bug 580151
Opened 14 years ago
Closed 14 years ago
Crash [@ nsSelectionState::DoTraverse] with textarea, changing root
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b4
People
(Reporter: jruderman, Assigned: ehsan.akhgari)
References
Details
(Keywords: assertion, crash, testcase, Whiteboard: [sg:critical?] [qa-examined-191] [qa-examined-192])
Crash Data
Attachments
(5 files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dbaron
:
approval2.0+
dveditz
:
approval1.9.2.11+
dveditz
:
approval1.9.1.14+
|
Details | Diff | Splinter Review |
###!!! ASSERTION: bad action nesting!: 'mActionNesting>0', file editor/libeditor/text/nsTextEditRules.cpp, line 250
###!!! ASSERTION: zero or negative placeholder batch count when ending batch!: 'mPlaceHolderBatch > 0', file editor/libeditor/base/nsEditor.cpp, line 876
Crash [@ nsSelectionState::DoTraverse]
Assignee | ||
Updated•14 years ago
|
blocking2.0: --- → ?
Assignee | ||
Comment 1•14 years ago
|
||
The first assertion is caused by the fact that nsTextEditRules::BeforeEdit can be bailing out early if nsEditor::GetSelection fails, and therefore not incrementing mActionNesting as expected.
Assignee | ||
Comment 2•14 years ago
|
||
The cause of the second assertion is similar: failing to increment mPlaceHolderBatch because we bail out early if we can't get the selection. These two patches fix the crash as well (as it was caused by a partially initialized placeholder transaction.)
Attachment #458644 -
Flags: review?(roc)
Assignee | ||
Comment 3•14 years ago
|
||
Attachment #458645 -
Flags: review?(roc)
Assignee | ||
Updated•14 years ago
|
blocking1.9.1: --- → ?
blocking1.9.2: --- → ?
Comment 4•14 years ago
|
||
Why would this block the branch releases? Seems nice to have on the branches so request approval when you've got reviews, etc. If we're misunderstanding the importance of this apparently non-security, non-topcrash bug please let us know.
Attachment #458641 -
Flags: review?(roc) → review+
Attachment #458644 -
Flags: review?(roc) → review+
Attachment #458645 -
Flags: review?(roc) → review+
Assignee | ||
Comment 5•14 years ago
|
||
Attachment #462449 -
Flags: approval2.0?
Comment 6•14 years ago
|
||
Comment on attachment 462449 [details] [diff] [review]
Rolled up patch
a2.0=dbaron
Attachment #462449 -
Flags: approval2.0? → approval2.0+
Updated•14 years ago
|
Assignee | ||
Comment 7•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/6a75787301c4
http://hg.mozilla.org/mozilla-central/rev/c87965964a17
http://hg.mozilla.org/mozilla-central/rev/440a4bfe2f5f
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b4
Assignee | ||
Updated•14 years ago
|
Attachment #462449 -
Flags: approval1.9.2.10?
Attachment #462449 -
Flags: approval1.9.1.13?
Comment 8•14 years ago
|
||
crashing in cycle collection, and a smattering of definitely NOT near-null addresses in http://crash-stats.mozilla.com/report/list?product=Firefox&query_search=signature&query_type=startswith&query=nsSelectionState%3A%3ADoTraverse&date=08%2F27%2F2010%2010%3A21%3A14&range_value=1&range_unit=weeks&hang_type=any&process_type=any&plugin_field=&plugin_query_type=&plugin_query=&do_query=1&admin=&signature=nsSelectionState%3A%3ADoTraverse%28nsCycleCollectionTraversalCallback%26%29
make me think this is possible a security problem.
Group: core-security
blocking1.9.1: --- → .13+
blocking1.9.2: --- → .10+
Whiteboard: [sg:critical?]
Comment 9•14 years ago
|
||
Comment on attachment 462449 [details] [diff] [review]
Rolled up patch
Approved for 1.9.2.10 and 1.9.1.13, a=dveditz for release-drivers
Attachment #462449 -
Flags: approval1.9.2.10?
Attachment #462449 -
Flags: approval1.9.2.10+
Attachment #462449 -
Flags: approval1.9.1.13?
Attachment #462449 -
Flags: approval1.9.1.13+
Assignee | ||
Comment 10•14 years ago
|
||
Comment 11•14 years ago
|
||
Looks like this might've caused a new mochitest failure in editor code on 1.9.1:
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox3.5/1282941921.1282944723.14877.gz
OS X 10.5.2 mozilla-1.9.1 test mochitests on 2010/08/27 13:45:21
s: moz2-darwin9-slave55
>44652 ERROR TEST-UNEXPECTED-FAIL | /tests/editor/libeditor/html/tests/test_CF_HTML_clipboard.html | [SimpleTest/SimpleTest.js, window.onerror] An error occurred - SimpleTest.waitForFocus is not a function
Comment 12•14 years ago
|
||
I had aki|buildduty trigger another round of mochitests for that box, to see if the orange from comment 11 sticks.
Comment 13•14 years ago
|
||
Actually it looks like that test has been perma-orange on 1.9.1 for a while (probably ever since it landed in bug 572642)
I filed Bug 591544 on it.
Comment 14•14 years ago
|
||
Assignee | ||
Comment 15•14 years ago
|
||
Loading the page in a tab, closing the tab and waiting for a while should be enough.
Comment 16•14 years ago
|
||
Nothing here running a 1.9.2.9pre build in order to see the crash. What operating system are you using?
Whiteboard: [sg:critical?] → [sg:critical?] [qa-examined-191] [qa-examined-192]
Assignee | ||
Comment 17•14 years ago
|
||
Mac.
Comment 18•14 years ago
|
||
I just tried with 10.6.4, using both testcases, opening them in a new tab, waiting a minute, closing the tab, and then watching. I see no asserts and no crashes in 1.9.2.11pre.
Assignee | ||
Comment 19•14 years ago
|
||
Hmm, weird. What about 1.9.1?
Comment 20•14 years ago
|
||
The same.
Assignee | ||
Comment 21•14 years ago
|
||
(In reply to comment #20)
> The same.
Then something else is probably in play here...
Updated•14 years ago
|
Group: core-security
Updated•13 years ago
|
Crash Signature: [@ nsSelectionState::DoTraverse]
You need to log in
before you can comment on or make changes to this bug.
Description
•