Skip to content

Segmentation fault in Zend/zend_execute.h:164 in JIT #16633

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
namespace Foo;
preg_replace('/foo/', '', '');
$b = 3;
$a = new SplFixedArray($b);
foreach ($a as $x) {}
$x1=1;
$x2=$x;
var_dump('xml_parser_get_option');
$callret=xml_parser_get_option($x1,$x2);
?>

Resulted in this output (JIT 1211):

Zend/zend_execute.h:164:7: runtime error: member access within misaligned address 0x7fbc8440501f for type 'zval' (aka 'struct _zval_struct'), which requires 8 byte alignment
0x7fbc8440501f: note: pointer points here
 00 00 00 00 00  f0 88 6d ab 06 56 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  40 01 47

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