[php-src] Issue #23089: Stack overflow no location
| From: | djarfluka | Date: | Thu, 06 Aug 2026 13:04:45 +0000 |
| Subject: | [php-src] Issue #23089: Stack overflow no location | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-252550@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/23089
Author: djarfluka
### Description
The following code:
```php
<?php
$a=[]; for($i=0;$i<1000000;$i++){ $a=['k'=>$a]; }
$b=array_merge_recursive($a,$a);
echo "ok\n";
```
Resulted in this output:
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==56==ERROR: AddressSanitizer: stack-overflow on address 0x7ffffca8dff8 (pc 0x7f0bfc038c33 bp
0x7ffffca8e000 sp 0x7ffffca8e000 T0)
<empty stack>
SUMMARY: AddressSanitizer: stack-overflow
==56==ABORTING
```
```
USE_ZEND_ALLOC=0 php -d "opcache.enable=1" -d "opcache.enable_cli=1" -d
"opcache.jit=tracing" -d "opcache.jit_hot_loop=1" -d
"opcache.jit_hot_func=1" poc.php
```
### PHP Version
```plain
8.6.0
```
### Operating System
_No response_