php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79788 Assertion `idx' failed in gc_remove_from_buffer
Submitted: 2020-07-04 15:56 UTC Modified: 2020-07-07 14:46 UTC
From: changochen1 at gmail dot com Assigned:
Status: Verified Package: Scripting Engine problem
PHP Version: 8.0Git-2020-07-04 (Git) OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2020-07-04 15:56 UTC] changochen1 at gmail dot com
Description:
------------
LOG:
---
php: /home/yongheng/php_clean/Zend/zend_gc.c:686: void gc_remove_from_buffer(zend_refcounted *): Assertion `idx' failed.
---

Test script:
---------------
<?
define ( "THE_CONST" , 3 ) ;
function b ( $a = array ( E_ALL => THE_CONST ) ) {
    print_r ( new ArrayIterator  !=b () , c ) ;
    foreach ( bar as $$d )
        $e = days * 4 * 0 ;
}
b () ;


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-07 14:43 UTC] nikic@php.net
The test case causes a memory limit bailout during GC. I suspect that this is the same issue as #79760. I don't have any immediate ideas on how to fix it.
 [2020-07-07 14:46 UTC] nikic@php.net
-Status: Open +Status: Verified
 [2022-11-24 04:39 UTC] andrewitchell48 at gmail dot com
The test case causes a memory limit bailout during GC. (https://www.ltdcommodities.me/)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC