Bug #72568 [Opn->Fbk]: segmentation fault of self-recursive call

From: Date: Sat, 09 Jul 2016 18:14:36 +0000
Subject: Bug #72568 [Opn->Fbk]: segmentation fault of self-recursive call
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202148@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72568&edit=1

 ID:                 72568
 Updated by:         nikic@php.net
 Reported by:        rana dot ram at gmail dot com
 Summary:            segmentation fault of self-recursive call
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   CentOS 6.4
 PHP Version:        7.0.8
 Block user comment: N
 Private report:     N

 New Comment:

Please make sure that you're using no third-party extensions, in particular debuggers or
profilers. This happens only if an extension overwrites zend_execute_ex.


Previous Comments:
------------------------------------------------------------------------
[2016-07-09 18:02:29] rana dot ram at gmail dot com

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 this bug report at https://bugs.php.net/bug.php?id=72568&edit=1


Thread (3 messages)

« previous php.bugs (#202148) next »