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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: changochen1 at gmail dot com
New email:
PHP Version: OS:

 

 [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
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Oct 30 17:01:24 2020 UTC