[php-src] Issue #19306: Segmentation fault in `zend_unfinished_execution_gc_ex` found by `php-execute-fuzz`
| From: | gal1ium | Date: | Wed, 30 Jul 2025 09:44:14 +0000 |
| Subject: | [php-src] Issue #19306: Segmentation fault in `zend_unfinished_execution_gc_ex` found by `php-execute-fuzz` | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250527@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19306
Author: gal1ium
### Description
The following code:
```php
<?php
class It implements IteratorAggregate
{
public function getIterator(): Generator
{
yield "";
Fiber::suspend();
}
}
function g()
{
yield from new It();
}
function gen($gen)
{
yield from $gen;
}
$a = g();
$b = gen($a);
$fiber = new Fiber(function () use ($b) {
$b->next();
});
$fiber->start();
while ($a->valid()) {
$a->next();
}
```
Resulted in this output:
```
Segmentation fault (core dumped)
```
### PHP Version
```plain
https://github.com/php/php-src/commit/16b2fc41a3cf3871d5481c1efc2e16ac99a2890e
```
### Operating System
_No response_