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: kelunik@php.net Assigned:
Status: Closed Package: Reproducible crash
PHP Version: master-Git-2019-08-13 (Git) OS: Ubuntu 19.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kelunik@php.net
New email:
PHP Version: OS:

 

 [2019-08-13 22:06 UTC] kelunik@php.net
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] nikic@php.net
-Status: Open +Status: Verified
 [2019-08-14 15:01 UTC] nikic@php.net
Also affects 7.2 (the assertion was added recently).
 [2019-08-14 15:48 UTC] nikic@php.net
-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] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=fcabe7e5e44067319f9c4123d71a7cea6a823af4
Log: Fixed bug #78412
 [2019-08-14 15:54 UTC] nikic@php.net
-Status: Verified +Status: Closed
 [2019-08-15 13:25 UTC] cmb@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c4cfab8f8425d01cb8beba604d8a3c9f0ec611b7
Log: Fixed bug #78412
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC