[php-src] Issue #15981: Segmentation fault in Zend/zend_vm_execute.h

From: Date: Sun, 22 Sep 2024 09:23:56 +0000
Subject: [php-src] Issue #15981: Segmentation fault in Zend/zend_vm_execute.h
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247851@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15981 Author: YuanchengJiang ### Description The following code: ```php <?php require('tester.inc'); $cfg = <<<EOT EOT; $code = <<<EOT EOT; $tester = new FPM\Tester($cfg, $code); $tester->start(); ``` Resulted in this output: ``` Zend/zend_vm_execute.h:6025:2: runtime error: member access within misaligned address 0x7fd6e5c0520f for type 'zval' (aka 'struct _zval_struct'), which requires 8 byte alignment 0x7fd6e5c0520f: note: pointer points here 00 00 00 00 00 f8 12 0c 41 00 00 00 00 00 00 00 00 00 00 00 00 f0 51 c0 e5 d6 7f 00 00 58 09 0c ^ SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Zend/zend_vm_execute.h:6025:2 ``` To reproduce: ``` -d "opcache.jit_hot_loop=1" -d "zend_extension=/php-src/modules/opcache.so" -d "opcache.enable_cli=1" -d "opcache.jit=1131" ``` tester.inc: ``` sapi/fpm/tests/tester.inc ``` ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04

« previous php.bugs (#247851) next »