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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
20 + 8 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC