Skip to content
Disclosed report

MethodJIT: Assertion failure: cx->enumerators == obj, at jsiter.cpp:789

Christian Holler Follow

Originally disclosed on Mozilla

  • Fixed in 9 days
  • Paid in 2.5 years
  • Disclosed after 9 days
Text
Created attachment 507831
Test case for shell (run with -j and -m)

The attached testcase asserts on 64 bit TM tip, run in shell with "-j -m". Testcase is not minimal and might not terminate if assertion isn't triggered (sorry, didn't have more time for further minimization/rewriting).

Backtrace:

#0  0x00007ffff7bd1ebb in raise () from /lib/libpthread.so.0
#1  0x0000000000598960 in JS_Assert (s=0x736327 "cx->enumerators == obj", file=0x73626b "jsiter.cpp", ln=789) at jsutil.cpp:83
#2  0x00000000004d49e9 in js_CloseIterator (cx=0xae80c0, obj=0x7ffff689a288) at jsiter.cpp:789
#3  0x00000000006b29a5 in FindExceptionHandler (cx=0xae80c0) at ./methodjit/InvokeHelpers.cpp:159
#4  0x00000000006b3b19 in js_InternalThrow (f=...) at ./methodjit/InvokeHelpers.cpp:552
#5  0x000000000064cac8 in JaegerThrowpoline () at ./methodjit/MethodJIT.cpp:139
#6  0x00007ffff7f96400 in ?? ()
[...]

Bisect shows:

Changeset 54650:427282865362: bad
The first bad revision is:
changeset:   54650:427282865362
user:        Bill McCloskey <[address removed]>
date:        Wed Sep 29 13:21:36 2010 -0700
summary:     Bug 535912 - Eliminate blockChain from JSStackFrame (r=cdleary)

however, this revision shows a different assertion

"Assertion failure: offset < script->length, at ../methodjit/InvokeHelpers.cpp:90"

This did not crash in my tests, so no security lock. Lock if appropriate.

The original report as published on Mozilla's Bugzilla, by Christian Holler. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A security bug in JavaScript Engine. Mozilla made it public on 7 February 2011.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

More by Christian Holler

View all

34 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.