php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69397 Segfault on call function/method at this function/method
Submitted: 2015-04-08 04:37 UTC Modified: 2015-04-08 04:49 UTC
From: iliavlad at mail dot ru Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.6.7 OS: Debian
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: iliavlad at mail dot ru
New email:
PHP Version: OS:

 

 [2015-04-08 04:37 UTC] iliavlad at mail dot ru
Description:
------------
Segfault on call function/method at this function/method

Test script:
---------------
1.
<?php
function foo() {
    foo();
}

echo 'start ';
foo();
echo 'finish';
?>

2.
<?php 
class Foo {
    public function getFoo() {
        return $this->getFoo();
    }
}

echo 'start ';

$foo = new Foo();
$foo->getFoo();

echo 'finish';


Expected result:
----------------
may be Fatal Error
(something other than Segmentation fault)

Actual result:
--------------
1.
start Segmentation fault

/var/log/messages
Apr  8 14:31:46 debian kernel: [1220547.392275] php[30999]: segfault at 7ffe7699dfe7 ip 000000000077d57b sp 00007ffe7699dfa0 error 6 in php5[400000+80d000]

2.
start Segmentation fault

/var/log/messages
Apr  8 14:34:37 debian77 kernel: [1220718.650950] php[31008]: segfault at 7ffe14edfff8 ip 000000000072177d sp 00007ffe14ee0028 error 6 in php5[400000+80d000]

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-08 04:49 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2015-04-08 04:49 UTC] requinix@php.net
PHP does not protect you from infinite recursion. If you want fatal errors in your development environment, install Xdebug and configure the max_nesting_level as desired.
http://xdebug.org/docs/all_settings#max_nesting_level
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 07:01:32 2024 UTC