php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21062 Recursive calls may SEGV
Submitted: 2002-12-17 03:36 UTC Modified: 2002-12-17 03:43 UTC
From: phpbug at vmlinuz dot nl Assigned:
Status: Wont fix Package: *Programming Data Structures
PHP Version: 4.3.0RC3 OS: Slackware 8.1, Linux 2.4.18 krnl
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phpbug at vmlinuz dot nl
New email:
PHP Version: OS:

 

 [2002-12-17 03:36 UTC] phpbug at vmlinuz dot nl
compiled:
./configure && make && make install

script:
<?
function x(){
  x();
}
x();
?>

This little piece of code produces a SEGV. At some point the stack is full, and the program crashes. Why not die() before crashing?

OK, this code is so wrong... But still it should not SEGV.   
Discovered it on PHP 4.2.2 (apache mod) and especially built PHP 4.3.0RC3 (cmdline) to find that 4.3.0RC3 still does this.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-17 03:43 UTC] cynic@php.net
this is a bazillionth report of this behavior, which won't be fixed for (IIRC) efficiency reasons.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 08:01:33 2024 UTC