Closed Bug 520613 Opened 15 years ago Closed 15 years ago

TM: Crash [@ js_ValueToNumber] or "Assertion failure: !JSVAL_IS_PRIMITIVE(v), at ../jsnum.cpp" with recursion

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 520503

People

(Reporter: gkw, Unassigned)

References

Details

(4 keywords, Whiteboard: [ccbr])

Crash Data

(Function("for (var a = 0; a < 6; a++) {\
        (function sum_indexing(b, c) {\
            return b.length == c ? 0 : b[c] + sum_indexing(b, c + 1)\
        })([(void 0), Infinity, Infinity], 0)\
}"))()

crashes js opt shell on TM tip with -j at js_ValueToNumber at 0x00000580 and asserts js debug shell on TM tip with -j at Assertion failure: !JSVAL_IS_PRIMITIVE(v), at ../jsnum.cpp:995

This smells like it's caused by tracerecursion...


Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000580
Crashed Thread:  0

Thread 0 Crashed:
0   js-opt-tm-darwin              	0x000630fc js_ValueToNumber + 188
1   js-opt-tm-darwin              	0x00058432 js_Interpret + 41618
2   js-opt-tm-darwin              	0x0005df1a js_Execute + 362
3   js-opt-tm-darwin              	0x0000d52c JS_ExecuteScript + 60
4   js-opt-tm-darwin              	0x000040b8 __ZL7ProcessP9JSContextP8JSObjectPci + 1336
5   js-opt-tm-darwin              	0x00008174 main + 2212
6   js-opt-tm-darwin              	0x0000204b _start + 209
7   js-opt-tm-darwin              	0x00001f79 start + 41
Summary: TM: Crash [@ js_ValueToNumber] or "Assertion failure: !JSVAL_IS_PRIMITIVE(v), at ../jsnum.cpp" → TM: Crash [@ js_ValueToNumber] or "Assertion failure: !JSVAL_IS_PRIMITIVE(v), at ../jsnum.cpp" with recursion
Whiteboard: [ccbr]
Definitely the same crash, including this test case in patch.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Crash Signature: [@ js_ValueToNumber]
A testcase for this bug was already added in the original bug (bug 520503).
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.