Closed Bug 621432 Opened 14 years ago Closed 14 years ago

Assertion failure: script->main <= target && target < script->code + script->length

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla2.0b12
Tracking Status
blocking2.0 --- final+

People

(Reporter: decoder, Assigned: Waldo)

References

Details

(Keywords: assertion, regression, testcase, Whiteboard: [softblocker][fixed-in-tracemonkey])

Attachments

(3 files)

Attached file First part of the testcase (deleted) —
Running the two attachments "t1.js" and "t2.js" together in the shell using $ js -f t1.js -f t2.js yields the assertion: Assertion failure: script->main <= target && target < script->code + script->length, at jsopcode.cpp:5491 Aborted The two files might not be minimal but cannot be combined into a single file.
Attached file Second part of the testcase (deleted) —
This bisect might be related: Changeset 54587: bad The first bad revision is: changeset: 54587 user: Brendan Eich <removed> date: Thu Sep 16 11:56:54 2010 -0700 summary: Fix shape vs. slot management under putProperty, plus related layering and error reporting fixes (596805, r=jorendorff).
Keywords: regression, testcase
Severity: normal → critical
blocking2.0: --- → ?
Keywords: assertion
blocking2.0: ? → final+
Whiteboard: softblocker
Assignee: general → jwalden+bmo
Status: NEW → ASSIGNED
Reduced: var toSource = []; Object.preventExtensions(this); eval("const x"); The proximate failure is pretty obvious now, suspect the fix isn't far behind.
Ideally we shouldn't be invoking user-specified decompilation behavior at all here -- see bug 633623 -- but for now just make this case behave correctly and not assert.
Attachment #511849 - Flags: review?(jorendorff)
Comment on attachment 511849 [details] [diff] [review] Handle errors thrown in the script prolog Well... OK. But I am tempted to minus this and insist on fixing the caller. The release-mode behavior is OK, right?
Attachment #511849 - Flags: review?(jorendorff) → review+
(I am not really tempted. Push it and let's fix the follow-up bug after ship.)
Comment on attachment 511849 [details] [diff] [review] Handle errors thrown in the script prolog Helping to ask for approval2.0, this helps to fix fuzzbugs like this one and potentially bug 631776 as well.
Attachment #511849 - Flags: approval2.0?
Comment on attachment 511849 [details] [diff] [review] Handle errors thrown in the script prolog a=beltzner
Attachment #511849 - Flags: approval2.0? → approval2.0+
Whiteboard: softblocker → [softblocker][fixed-in-tracemonkey]
Target Milestone: --- → mozilla2.0b12
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: