[php-src] Issue #15943: Assertion failure in Zend/zend_gc.c

From: Date: Wed, 18 Sep 2024 03:03:57 +0000
Subject: [php-src] Issue #15943: Assertion failure in Zend/zend_gc.c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247820@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15943 Author: YuanchengJiang ### Description The following code: ```php <?php $wm = new WeakMap(); for ($i = 0; $i < 30_000; $i++) { $fusion[] = $obj = new stdClass; $wm[$obj] = $obj; } $tmp = $wm; $tmp = null; gc_collect_cycles(); ``` Resulted in this output: ``` /php-src/Zend/zend_gc.c:791: gc_remove_from_buffer: Assertion `idx' failed. Aborted (core dumped) ``` To reproduce: ``` -d "memory_limit=8M" ``` ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04

« previous php.bugs (#247820) next »