php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35991 Win32 - crash Apache.exe, *nix - segfault
Submitted: 2006-01-13 11:27 UTC Modified: 2006-01-13 11:31 UTC
From: itsmegawtf at gmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.1.2 OS: WinXP SP2, FreeBSD, Linux
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: itsmegawtf at gmail dot com
New email:
PHP Version: OS:

 

 [2006-01-13 11:27 UTC] itsmegawtf at gmail dot com
Description:
------------
PHP4 and PHP5 affected, recursion level limit.
Tested on Latest stable versions and latest snapshots.

php compiled without debug flag, so I can't post full bt here.

Similar bug you can find here: http://bugs.php.net/bug.php?id=29370



Reproduce code:
---------------
<?
function POC($var1) {
	while($var2 = POC($var1)) {}
POC("test");
?>

Actual result:
--------------
Core was generated by `php bug.php'.
Program terminated with signal 11, Segmentation fault.
#0  0x403769d9 in ?? ()
(gdb) bt
#0  0x403769d9 in ?? ()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-13 11:31 UTC] tony2001@php.net
This is called "stack overflow" and it's expected to crash.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 10:01:38 2025 UTC