Skip to content

Segmentation fault at Zend/zend_vm_execute.h:4057 #16774

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
class C {
public $a {
get { return $this->a; }
}
}
function test(string $fusion, object $obj) {
var_dump($obj->a);
var_dump($obj);
}
$reflector = new ReflectionClass(C::class);
$obj = $reflector->newLazyGhost(function ($obj) {
});
test('Ghost', $obj);

Resulted in this output:

Zend/zend_vm_execute.h:4057:8: runtime error: load of misaligned address 0x7f18e886918f for type 'void *', which requires 8 byte alignment
0x7f18e886918f: note: pointer points here

To reproduce: JIT 1011

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