php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52863 PHP Crash - RAM consuming
Submitted: 2010-09-16 18:16 UTC Modified: 2013-02-18 00:34 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: g dot delaportas at gmail dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: Irrelevant OS: Windows 7
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: g dot delaportas at gmail dot com
New email:
PHP Version: OS:

 

 [2010-09-16 18:16 UTC] g dot delaportas at gmail dot com
Description:
------------
I use only native PHP code with no extra plugins loaded.
The PHP 5.3.1 crashes and consumes all the RAM when I use the script below.
This also happens to all the versions after 5.3.1.


Test script:
---------------
    class Test_Crash
    {
        private $virtual_func;   
        public function __construct()
        {
            $this->virtual_func = new Test_Crash;
        }
    }



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-16 18:53 UTC] cataphract@php.net
Did actually crash? Can you provide a backtrace? It's normal it consumes all the RAM (if you have no memory limit), since you are allocating memory recursively and indefinitely.
 [2010-09-16 18:54 UTC] cataphract@php.net
-Status: Open +Status: Feedback
 [2010-09-16 23:44 UTC] srinatar@php.net
please find instructions on how to use gdb backtrace function to report the stacktrace
http://bugs.php.net/bugs-generating-backtrace.php
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon May 23 07:03:48 2022 UTC