Closed
Bug 877378
Opened 11 years ago
Closed 11 years ago
Compartment mismatch crash involving saveFrameChain
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: gkw, Assigned: jandem)
References
Details
(Keywords: crash, regression, testcase, Whiteboard: [jsbugmon:update])
Crash Data
Attachments
(2 files)
7.86 KB,
text/plain
|
Details | |
1.68 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
evalcx("\ let z = 0;\ z += 'x';\ for (var v of z) {\ y = evaluate(\"Object.defineProperty(this,\\\"y\\\",{ \ get: function() {} \ } );\", { \ catchTermination: true,\ saveFrameChain: true\ }\ );\ }", newGlobal('') ) crashes js debug shell on m-c changeset 8d85de779506 without any CLI arguments at js::CompartmentChecker::fail (*** Compartment mismatch 0x101850400 vs. 0x101843c00 shown) This testcase was previously filed as bug 876226 comment 8. Can all the testcases in that bug please be added to the testsuite? (assuming also related to bug 875473)
Flags: needinfo?(jdemooij)
Assignee | ||
Comment 2•11 years ago
|
||
Saving/restoring the frame chain can switch compartments, so we have to restore it before calling JS_WrapValue.
Assignee: general → jdemooij
Status: NEW → ASSIGNED
Attachment #756474 -
Flags: review?(luke)
Flags: needinfo?(jdemooij)
Updated•11 years ago
|
Attachment #756474 -
Flags: review?(luke) → review+
Assignee | ||
Comment 3•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/1c4403cbda57
Comment 4•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1c4403cbda57
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/71f2968c7359
Comment 6•11 years ago
|
||
(In reply to Ed Morley [:edmorley UTC+1] from comment #5) > https://hg.mozilla.org/mozilla-central/rev/71f2968c7359 It seems that I made a mistake when writing the bug number in the commit message. This last push was actually for bug 877338. Sorry for the inconvenience.
You need to log in
before you can comment on or make changes to this bug.
Description
•