php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78412 Generator incorrectly reports non-releasable $this as GC child
Submitted: 2019-08-13 22:06 UTC Modified: 2019-08-14 15:48 UTC
From: [email protected] Assigned:
Status: Closed Package: Reproducible crash
PHP Version: master-Git-2019-08-13 (Git) OS: Ubuntu 19.04
Private report: No CVE-ID: None
 [2019-08-13 22:06 UTC] [email protected]
Description:
------------
Assertion failure happens with latest master, doesn't happen with 7.3.7 or my system's 7.2 binary.

Test script:
---------------
https://github.com/amphp/http-client/commit/780c0d894556c4ecbfa33233cbccd918a9d4c2a2

php examples/6-concurrent-requests.php

php: /home/kelunik/.php-build/release/Zend/zend_types.h:1035: zend_gc_delref: Assertion `p->refcount > 0' failed.


Expected result:
----------------
No assertion error.

Actual result:
--------------
php: /home/kelunik/.php-build/release/Zend/zend_types.h:1035: zend_gc_delref: Assertion `p->refcount > 0' failed.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-14 15:01 UTC] [email protected]
-Status: Open +Status: Verified
 [2019-08-14 15:01 UTC] [email protected]
Also affects 7.2 (the assertion was added recently).
 [2019-08-14 15:48 UTC] [email protected]
-Summary: Assertion `p->refcount > 0' in zend_gc_delref +Summary: Generator incorrectly reports non-releasable $this as GC child
 [2019-08-14 15:54 UTC] [email protected]
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 10 10:01:26 2025 UTC