Bug #79094 [Ver->Csd]: Crashing when running recursion function

From: Date: Fri, 31 Jan 2020 07:35:40 +0000
Subject: Bug #79094 [Ver->Csd]: Crashing when running recursion function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225267@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79094&edit=1 ID: 79094 Updated by: dmitry@php.net Reported by: vinayrachapalli7 at gmail dot com Summary: Crashing when running recursion function -Status: Verified +Status: Closed Type: Bug Package: Scripting Engine problem Operating System: centos 7 PHP Version: 7.4Git-2020-01-10 (Git) Assigned To: dmitry Block user comment: N Private report: N New Comment: Automatic comment on behalf of dmitry@zend.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=db7193f31ea9d176214fc36cde0503864a75ab0d Log: Fixed bug #79094 (Crashing when running recursion function) Previous Comments: ------------------------------------------------------------------------ [2020-01-10 14:22:58] nikic@php.net The problem here is that we don't SAVE_OPLINE in all places where an OOM condition might occur -- and I doubt we want to. However, in 7.4 EX(opline) is no longer initialized at all (until a SAVE_OPLINE in a throwing opcode), which means that we may crash when trying to fetch the current line number on OOM. I think that we should bring back EX(opline) initialization in init_func_execute_data. @dmitry: Do you see any other way? ------------------------------------------------------------------------ [2020-01-10 11:56:38] vinayrachapalli7 at gmail dot com Description: ------------ It crashes when we run the following script on PHP 7.4, but in 7.3, it'll through error like Fatal error: Allowed memory size of 134217728 bytes exhausted at ... Test script: --------------- <?php function A(){ A(); } A(); ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79094&edit=1

« previous php.bugs (#225267) next »