Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #32874 : Circular call leeds to segmentation fault
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 25th March 20:08
php-bugs
External User
 
Posts: 1
Default #32874 : Circular call leeds to segmentation fault



From: mbm at interflow dot dk
Operating system: Multiple OS
PHP version: 5.0.4
PHP Bug Type: Reproducible crash
Bug description: Circular call leeds to segmentation fault

Description:
------------
Recursively calling two functions in a class leads to a segmentation
fault.

Reproduce code:
---------------
class SegFault {

public function call(){
$this->back();
}

public function back(){
$this->call();
}
}
$seg = new SegFault();
$seg->Call();


Expected result:
----------------
I'd expect some kind of error when php runs out of buffer for the
callstack - this function clearly is an example of bad code in the script
- however php shouldnt die by segmentation fault.


Actual result:
--------------
Segmentation fault

--
Edit bug report at http://bugs.php.net/?id=32874&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32874&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32874&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32874&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32874&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32874&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32874&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32874&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32874&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32874&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32874&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32874&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32874&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32874&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32874&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32874&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32874&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32874&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32874&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32874&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32874&r=mysqlcfg
  Reply With Quote


  sponsored links


2 25th March 23:35
External User
 
Posts: 1
Default #32874 : Circular call leeds to segmentation fault



ID: 32874
Updated by: derick@php.net
Reported By: mbm at interflow dot dk
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Multiple OS
PHP Version: 5.0.4
New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the do***entation 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

..


Previous Comments:
------------------------------------------------------------------------

[2005-04-28 20:28:23] mbm at interflow dot dk

Description:
------------
Recursively calling two functions in a class leads to a segmentation
fault.

Reproduce code:
---------------
class SegFault {

public function call(){
$this->back();
}

public function back(){
$this->call();
}
}
$seg = new SegFault();
$seg->Call();


Expected result:
----------------
I'd expect some kind of error when php runs out of buffer for the
callstack - this function clearly is an example of bad code in the
script - however php shouldnt die by segmentation fault.


Actual result:
--------------
Segmentation fault


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=32874&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666