[php-src] Issue #15903: Core dumped in ext/opcache/jit/ir/ir_ra.c
| From: | YuanchengJiang | Date: | Mon, 16 Sep 2024 08:15:01 +0000 |
| Subject: | [php-src] Issue #15903: Core dumped in ext/opcache/jit/ir/ir_ra.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247788@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15903
Author: YuanchengJiang
### Description
The following code:
```php
<?php
for ($i = 0; $i < 2; ++$i) { //This must run >=2 (increasing the number of elements in the
array *2 will not do)
foreach (array_fill(0, 389, 'x') as &$params) { //Will not trigger <389
$x[] = new foo;
}
}
```
Resulted in this output:
```
/php-src/ext/opcache/jit/ir/ir_ra.c:1139: ir_add_osr_entry_loads: Assertion `0' failed.
Aborted (core dumped)
```
To reproduce:
```
-d "zend_extension=/php-src/modules/opcache.so" -d "opcache.enable_cli=1" -d
"opcache.jit=1002"
```
### PHP Version
PHP 8.4.0-dev
### Operating System
ubuntu 22.04