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

From: Date: Fri, 10 Jan 2020 14:22:58 +0000
Subject: Bug #79094 [Ver]: Crashing when running recursion function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224829@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: nikic@php.net Reported by: vinayrachapalli7 at gmail dot com Summary: Crashing when running recursion function Status: Verified Type: Bug Package: Scripting Engine problem Operating System: centos 7 PHP Version: 7.4Git-2020-01-10 (Git) -Assigned To: +Assigned To: dmitry Block user comment: N Private report: N New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [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 (#224829) next »