[php-src] Issue #15658: Segmentation fault in Zend/zend_vm_execute.h
| From: | YuanchengJiang | Date: | Fri, 30 Aug 2024 07:08:07 +0000 |
| Subject: | [php-src] Issue #15658: Segmentation fault in Zend/zend_vm_execute.h | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247641@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15658
Author: YuanchengJiang
### Description
The following code:
```php
<?php
$linkname = __DIR__."/symlink_link_linkinfo_is_link_link_error2.tmp";
var_dump(match ($undefinedVariable) {
1, 2, 3, 4, 5 => 'foo',
default => 'bar',
});
?>
```
Resulted in this output:
```
Zend/zend_vm_execute.h:6015:2: runtime error: member access within misaligned address 0x7ff9c500501f
for type 'zval' (aka 'struct _zval_struct'), which requires 8 byte alignment
0x7ff9c500501f: note: pointer points here
00 01 00 00 00 00 a8 07 7c f9 7f 00 00 a0 50 00 c5 f9 7f 00 00 00 00 00 00 00 00 00 00 c0 93 06
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Zend/zend_vm_execute.h:6015:2
```
But I expected this output instead:
```
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=1024M
opcache.jit=0101
```
### PHP Version
PHP 8.4.0-dev
### Operating System
ubuntu 22.04