php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7720 Return address in stack overwritten?
Submitted: 2000-11-09 07:05 UTC Modified: 2000-11-09 07:28 UTC
From: sven at devcon dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.3pl1 OS: freebsd
Private report: No CVE-ID: None
 [2000-11-09 07:05 UTC] sven at devcon dot net
When doing a recursion like this:

function foo ()
{
  foo ();
}

php crashes after a few thousand recursions. The number of recursions
possible depends on the function size. I recompiled the webserver without optimization and debugging symbols accordingly.

Program received signal SIGSEGV, Segmentation fault.
0x2822f7bb in object.11 () at ./zend_execute.c:877
877     }
(gdb) bt
#0  0x2822f7bb in object.11 () at ./zend_execute.c:877
Error accessing memory address 0xbbbffc3c: Bad address.

Oh btw, I'd appreciate to see a password field for passwords in the bug form...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-09 07:28 UTC] derick@php.net
This is not a bug. PHP currently does not handle infinite recursions.

Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 00:01:33 2024 UTC