[php-src] Issue #20539: Segmentation fault in PHP 8.4.14
| From: | liayn | Date: | Thu, 20 Nov 2025 14:17:02 +0000 |
| Subject: | [php-src] Issue #20539: Segmentation fault in PHP 8.4.14 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-251255@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/20539
Author: liayn
### Description
Running a small phpunit test-suite results in a segfault.
Building latest 8.4.14 with debug symbols reveals:
```
..../usr/src/php/Zend/zend_hash.c(2715) : ht=0x7f24328c6600 is being destroyed
php: /usr/src/php/Zend/zend_hash.c:74: _zend_is_inconsistent: Assertion `0' failed.
```
Some gdb insights revealed this happend during some destruction of serialize
php_var_serialize_destroy.
### PHP Version
```plain
PHP 8.4.14 (cli) (built: Nov 20 2025 13:49:55) (NTS DEBUG)
Copyright (c) The PHP Group
Built by https://github.com/docker-library/php
Zend Engine v4.4.14, Copyright (c) Zend Technologies
with Zend OPcache v8.4.14, Copyright (c), by Zend Technologies
```
### Operating System
_No response_