Closed Bug 1444339 Opened 8 years ago Closed 8 years ago

Crash [@ js::jit::ICStubCompiler::getStubCode] with baselineCompile function

Categories

(Core :: JavaScript Engine, defect, P1)

x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox-esr52 --- wontfix
firefox59 --- wontfix
firefox60 --- wontfix
firefox61 --- fixed

People

(Reporter: decoder, Assigned: jorendorff)

References

(Regression)

Details

(Keywords: bugmon, crash, testcase, Whiteboard: [jsbugmon:update])

Crash Data

Attachments

(1 file)

The following testcase crashes on mozilla-central revision a6a32fb286fa+ (build with --enable-posix-nspr-emulation --enable-valgrind --enable-gczeal --disable-tests --disable-profiling --enable-debug --enable-optimize, run with --fuzzing-safe --ion-offthread-compile=off): newGlobal().baselineCompile("var r = /x/;"); Backtrace: received signal SIGSEGV, Segmentation fault. 0x00000000008dc444 in js::jit::ICStubCompiler::getStubCode (this=this@entry=0x7fffffffa7d0) at js/src/jit/SharedIC.cpp:499 #0 0x00000000008dc444 in js::jit::ICStubCompiler::getStubCode (this=this@entry=0x7fffffffa7d0) at js/src/jit/SharedIC.cpp:499 #1 0x000000000102be59 in js::jit::ICBindName_Fallback::Compiler::getStub (space=0x7fffffffba88, this=0x7fffffffa7d0) at js/src/jit/BaselineIC.h:470 #2 js::jit::BaselineCompiler::emit_JSOP_BINDNAME (this=this@entry=0x7fffffffae40) at js/src/jit/BaselineCompiler.cpp:2830 #3 0x000000000102c0ba in js::jit::BaselineCompiler::emit_JSOP_BINDGNAME (this=this@entry=0x7fffffffae40) at js/src/jit/BaselineCompiler.cpp:2505 #4 0x000000000104949b in js::jit::BaselineCompiler::emitBody (this=this@entry=0x7fffffffae40) at js/src/jit/BaselineCompiler.cpp:1038 #5 0x000000000104b2c8 in js::jit::BaselineCompiler::compile (this=this@entry=0x7fffffffae40) at js/src/jit/BaselineCompiler.cpp:120 #6 0x0000000000641805 in js::jit::BaselineCompile (cx=0x7ffff5f16000, script=0x7ffff4cba0d0, forceDebugInstrumentation=<optimized out>) at js/src/jit/BaselineJIT.cpp:255 #7 0x000000000088d412 in BaselineCompile (cx=0x7ffff5f16000, argc=<optimized out>, vp=<optimized out>) at js/src/builtin/TestingFunctions.cpp:5095 #8 0x000000000057b32d in js::CallJSNative (cx=0x7ffff5f16000, native=0x88d0f0 <BaselineCompile(JSContext*, unsigned int, JS::Value*)>, args=...) at js/src/vm/JSContext-inl.h:290 [...] #30 0x0000000000443ef4 in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at js/src/shell/js.cpp:9405 rax 0x40 64 rbx 0x7fffffff9b20 140737488329504 rcx 0x20 32 rdx 0x40 64 rsi 0x7ffff5f16000 140737319624704 rdi 0x7fffffffa7d0 140737488332752 rbp 0x7fffffffa7b0 140737488332720 rsp 0x7fffffff9a70 140737488329328 r8 0x7fffffffa700 140737488332544 r9 0x7fffffffa758 140737488332632 r10 0x7fffffffa758 140737488332632 r11 0xca8 3240 r12 0x0 0 r13 0x7fffffffba60 140737488337504 r14 0x7ffff5f16000 140737319624704 r15 0x7fffffffa7d0 140737488332752 rip 0x8dc444 <js::jit::ICStubCompiler::getStubCode()+68> => 0x8dc444 <js::jit::ICStubCompiler::getStubCode()+68>: mov (%r12),%rsi 0x8dc448 <js::jit::ICStubCompiler::getStubCode()+72>: lea -0xce8(%rbp),%rdx I assume this is a shell-only problem with the baselineCompile function.
Whiteboard: [jsbugmon:update,bisect] → [jsbugmon:update]
JSBugMon: Bisection requested, result: autoBisect shows this is probably related to the following changeset: The first bad revision is: changeset: https://hg.mozilla.org/mozilla-central/rev/51d604ea785b user: Jason Orendorff date: Thu Feb 22 13:04:46 2018 -0600 summary: Bug 1440431 - Part 3: Add baselineCompile() testing function. r=nbp. This iteration took 283.481 seconds to run.
> I assume this is a shell-only problem with the baselineCompile function. Yep. cx->compartment()->jitCompartment_ is null. Looks like an easy fix.
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
Severity: critical → minor
Priority: -- → P1
Attachment #8957560 - Flags: review?(nicolas.b.pierron) → review+
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Regressed by: 1440431
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: