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
 [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

Pull Requests

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: Sun Nov 24 04:01:32 2024 UTC