Closed Bug 653789 Opened 13 years ago Closed 13 years ago

Crash [@ js_CheckForStringIndex] or [@ js::DefaultValue]

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: gkw, Assigned: Waldo)

References

Details

(Keywords: crash, regression, testcase, Whiteboard: fixed-in-tracemonkey)

Crash Data

Attachments

(2 files)

Attached file stacks
__defineGetter__("x", eval);
eval.toString = toLocaleString
eval < x

crashes js debug shell on TM changeset 3dd6ec45084c without -m nor -j at js_CheckForStringIndex and crashes js opt shell at js::DefaultValue
Assignee: general → jwalden+bmo
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla6
Attached patch Patch and testsSplinter Review
toLocaleString can straightforwardly recur through all-native functions.  Also, it didn't implement the spec algorithm.  Funny, that, how methods not written in the steps of the spec turn out to be buggy.
Attachment #529203 - Flags: review?(luke)
Oh, a simpler test:

"" + { toString: Object.prototype.toLocaleString };
Blocks: 645468
OS: Linux → All
Hardware: x86 → All
Comment on attachment 529203 [details] [diff] [review]
Patch and tests

Oops, I missed the initial review request.  Nice test.
Attachment #529203 - Flags: review?(luke) → review+
http://hg.mozilla.org/tracemonkey/rev/897963a18985

I noticed before landing that I had another test which I'd somehow forgotten to add to the patch.  It's basically comment 2, so not too tricky to need a look or anything.
Whiteboard: fixed-in-tracemonkey
Crash Signature: [@ js_CheckForStringIndex] [@ js::DefaultValue]
This already landed on mozilla-central some time ago.

http://hg.mozilla.org/mozilla-central/rev/897963a18985
Status: ASSIGNED → RESOLVED
Crash Signature: [@ js_CheckForStringIndex] [@ js::DefaultValue] → [@ js_CheckForStringIndex] [@ js::DefaultValue]
Closed: 13 years ago
Resolution: --- → FIXED
Automatically extracted testcase for this bug was committed:

https://hg.mozilla.org/mozilla-central/rev/efaf8960a929
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: