Skip to content

Segmentation fault in zend_vm_execute.h:41830 when JIT #16877

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
require_once "tester.inc";
$php = \FPM\Tester::findExecutable();

https://github.com/php/php-src/blob/91f0b3bc0416539f64c44d453100274ccae942b3/sapi/fpm/tests/tester.inc

Resulted in this output:

Zend/zend_vm_execute.h:6053:2: runtime error: member access within misaligned address 0x7f86a660508f for type 'zval' (aka 'struct _zval_struct'), which requires 8 byte alignment
0x7f86a660508f: note: pointer points here
 ff ff ff ff ff  b8 81 c3 40 00 00 00 00  00 00 00 00 00 00 00 00  80 50 60 a6 86 7f 00 00  18 78 c3

To reproduce:

-d "opcache.jit_hot_func=1" -d "zend_extension=/php-src/modules/opcache.so" -d "opcache.enable_cli=1" -d "opcache.jit=1231"

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions