From: Dmitry Stogov Date: Wed, 19 Aug 2020 11:51:39 +0000 (+0300) Subject: Fixed tracing JIT crash in case SSA for op_array is not provided X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6c1682d7acb842b493e8bd6d54c9e32af470fb8;p=php Fixed tracing JIT crash in case SSA for op_array is not provided --- diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 25cd3143fd..e36292c1bb 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -11856,7 +11856,7 @@ static int zend_jit_switch(dasm_State **Dst, const zend_op *opline, const zend_o zend_jit_addr op1_addr = OP1_ADDR(); const zend_op *default_opline = ZEND_OFFSET_TO_OPLINE(opline, opline->extended_value); const zend_op *target; - int default_b = ssa->cfg.map[default_opline - op_array->opcodes]; + int default_b = next_opline ? -1 : ssa->cfg.map[default_opline - op_array->opcodes]; int b; zval *val; int32_t exit_point;