Closed
Bug 1120934
Opened 11 years ago
Closed 11 years ago
js24: JIT trampoline is garbage collected on context destruction but never re-generated, leading to an invalid jump
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 905926
People
(Reporter: smspillaz, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/33.0.1750.152 Chrome/33.0.1750.152 Safari/537.36
Steps to reproduce:
Testcase for js24 and jstrunk attached. The crash only occurs on js24 (so far as I've tested) but I didn't see an associated bug for it, so the testcase may be of some interest.
Actual results:
Crashes in EnterBaseline
Above attachment is for trunk mozjs. The crash does not occur on trunk, but the testcase may be of some interest.
Updated•11 years ago
|
Component: General → JavaScript Engine
Comment 3•11 years ago
|
||
In version 24 we had the following code in js/src/gc/RootMarking.cpp:
if (rt->hasContexts())
jit::IonRuntime::Mark(trc);
So if you have no contexts we don't trace the IonRuntime.
bholley fixed this in bug 905926 when he removed hasContexts(), we now use rt->isBeingDestroyed(). The fix should be in 27 (so the SM31 release should include it).
Comment 4•11 years ago
|
||
See also bug 890243, the workaround mentioned there (create a dummy JSContext) should work until you upgrade.
Please let us know if you run into other problems.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•