Bug #72568 [NEW]: segmentation fault of self-recursive call
From: rana dot ram at gmail dot com
Operating system: CentOS 6.4
PHP version: 7.0.8
Package: Reproducible crash
Bug Type: Bug
Bug description:segmentation fault of self-recursive call
Description:
------------
Segmentation fault on self recursive call by a class instance method to
itself.
Test script:
---------------
<?php
class ABC {
public function self_recursive() {
$this->self_recursive();
}
}
$obj = new ABC();
$obj->self_recursive();
Expected result:
----------------
- Memory exhausted error
- or, Max execution limit reached
- or, a infinite recursion exception
Actual result:
--------------
Starting program: /usr/local/bin/php test.php
Program received signal SIGSEGV, Segmentation fault.
0x00000000008d51b3 in ZEND_DO_FCALL_SPEC_HANDLER
(execute_data=0x7fffe3c710d0) at
/usr/local/src/php-7.0.8/Zend/zend_vm_execute.h:800
800 zend_execute_ex(call);
--
Edit bug report at https://bugs.php.net/bug.php?id=72568&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72568&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72568&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72568&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72568&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72568&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72568&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72568&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72568&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72568&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72568&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72568&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72568&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72568&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72568&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72568&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72568&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72568&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72568&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72568&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72568&r=mysqlcfg
Thread (3 messages)
- rana dot ram at gmail dot com