php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79777 Assertion `!(executor_globals.exception)' failed, which cause memory leak
Submitted: 2020-07-03 19:26 UTC Modified: 2020-07-03 19:32 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: changochen1 at gmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 8.0Git-2020-07-03 (Git) OS:
Private report: No CVE-ID: None
 [2020-07-03 19:26 UTC] changochen1 at gmail dot com
Description:
------------
We found an assertion failed in the php script engine.

Test case:
---
<?php
    die ( function() {}) ;
?>
---

CMDline: php -f poc




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-03 19:31 UTC] changochen1 at gmail dot com
-Summary: void zend_throw_unwind_exit(): Assertion `!(executor_globals.exception)' failed +Summary: Assertion `!(executor_globals.exception)' failed, which cause memory leak
 [2020-07-03 19:31 UTC] changochen1 at gmail dot com
Without the assertion, it causes memory leak
 [2020-07-03 19:32 UTC] changochen1 at gmail dot com
/home/yongheng/php-src/Zend/zend_objects.c(174) :  Freeing 0x00007ff5356710c0 (152 bytes), script=/home/yongheng/poc
=== Total 1 memory leaks detected ===
 [2020-07-04 08:00 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=49396f817a07c791f3bdfa4d301072425e0e9363
Log: Fixed bug #79777
 [2020-07-04 08:00 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Oct 21 16:01:24 2020 UTC