php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39230 Deep Recusion to Segmentation Fault (Stack Overflow)
Submitted: 2006-10-23 00:28 UTC Modified: 2006-10-23 06:58 UTC
From: seth at pricepages dot org Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5CVS-2006-10-23 (snap) OS: Mac 10.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: seth at pricepages dot org
New email:
PHP Version: OS:

 

 [2006-10-23 00:28 UTC] seth at pricepages dot org
Description:
------------
Steps to kill PHP dead:
- Load test page.
- Enter "Seth Price" as your name
- Click the submit button

eAccelerator 0.9.5 is installed, but not enabled. I'm running 
Apache 1.3.33

I'm not sure what would cause this crash, I've run all these 
bits of code already in similar scripts, but for some reason 
this kills PHP.

Reproduce code:
---------------
Script:
http://pricepages.org/temp/test.php.zip

Include File:
http://pricepages.org/temp/SForm.zip

Actual result:
--------------
(gdb) bt
[whole lotta stack]
...
#60434 0x0244af60 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(execute_data=0xbfffdfa8) at /usr/local/php/
php5.2-200610222230/Zend/zend_vm_execute.h:322
#60435 0x02449730 in execute (op_array=0x6d5670) at /usr/
local/php/php5.2-200610222230/Zend/zend_vm_execute.h:92
#60436 0x0244a020 in zend_do_fcall_common_helper_SPEC 
(execute_data=0xbfffe148) at /usr/local/php/
php5.2-200610222230/Zend/zend_vm_execute.h:234
#60437 0x0244af60 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(execute_data=0xbfffe148) at /usr/local/php/
php5.2-200610222230/Zend/zend_vm_execute.h:322
#60438 0x02449730 in execute (op_array=0x6d5f70) at /usr/
local/php/php5.2-200610222230/Zend/zend_vm_execute.h:92
#60439 0x0244a020 in zend_do_fcall_common_helper_SPEC 
(execute_data=0xbfffe2e8) at /usr/local/php/
php5.2-200610222230/Zend/zend_vm_execute.h:234
#60440 0x0244af60 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(execute_data=0xbfffe2e8) at /usr/local/php/
php5.2-200610222230/Zend/zend_vm_execute.h:322
#60441 0x02449730 in execute (op_array=0x2bc970) at /usr/
local/php/php5.2-200610222230/Zend/zend_vm_execute.h:92
#60442 0x024192fc in zend_execute_scripts (type=8, 
retval=0x0, file_count=3) at /usr/local/php/
php5.2-200610222230/Zend/zend.c:1097
#60443 0x023a7c48 in php_execute_script 
(primary_file=0xbfffec70) at /usr/local/php/
php5.2-200610222230/main/main.c:1758
#60444 0x024be590 in apache_php_module_main (r=0x183e038, 
display_source_mode=0) at /usr/local/php/
php5.2-200610222230/sapi/apache/sapi_apache.c:53
#60445 0x024bfb58 in send_php (r=0x183e038, 
display_source_mode=0, filename=0x183fe68 "/Library/
WebServer/Documents/test.php") at /usr/local/php/
php5.2-200610222230/sapi/apache/mod_php5.c:660
#60446 0x024bfbc0 in send_parsed_php (r=0x183e038) at /usr/
local/php/php5.2-200610222230/sapi/apache/mod_php5.c:675
#60447 0x0000dd04 in ap_invoke_handler ()
#60448 0x00017dc0 in process_request_internal ()
#60449 0x00017e40 in ap_process_request ()
#60450 0x00006b4c in child_main ()
#60451 0x00006d04 in make_child ()
#60452 0x00006e68 in startup_children ()
#60453 0x000074d8 in standalone_main ()
#60454 0x00007d60 in main ()
(gdb) q

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-23 03:56 UTC] seth at pricepages dot org
I figured out that my script was causing the recursion. 
Inserting "$this->freeze(false);" on line 70 of SForm/Elm/
Header.php eliminates it.
 [2006-10-23 06:58 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

PHP is allowed to segfault with infinite recursion. Don\'t do this :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC