Closed Bug 875113 Opened 11 years ago Closed 11 years ago

OdinMonkey: in asm.js mode, spewing crashes the shell

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 871242

People

(Reporter: bbouvier, Unassigned)

Details

Using the shell, when log informations are asked and a asm.js script is launched, the shell will segfault. This is unfortunate as we can't use the log information and therefore run IonGraph on them.

$ IONFLAGS=regalloc ./js ~/AsmJSscript.js
> Segmentation fault (core dumped)

$ IONFLAGS=logs ./js ~/AsmJSscript.js
> Segmentation fault (core dumped)

The reason is that there is no JSContext when creating an IonContext, in AsmJS.cpp:CheckFunctionBodiesSequential. The JSContext is getting used for a memory allocation when initializing the Sprinter.

Any quick ideas about this:
- Make Sprinter use the LifoAlloc instead of the JSContext to allocate memory.
- Create the IonContext with m.cx() instead of m.cx()->compartment (side effects expected).
This looks like a duplicate of Bug 871242 and there is a patch there that may allow you to continue work.
You are right, I didn't see Bug 871242 when I looked for eventual duplicates. Thanks!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.