php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31226 Segmentation Fault on endless loop creating large amount of objects
Submitted: 2004-12-21 10:56 UTC Modified: 2004-12-21 10:59 UTC
From: the_deppchef at hotmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.0.3 OS: Linux 2.4.27 (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: the_deppchef at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-12-21 10:56 UTC] the_deppchef at hotmail dot com
Description:
------------
When having an endless loop (it's a selfcall of a member function of an object, but I guess it's a general problem) and creating objects with that loop, i get a segmentation fault.

Reproduce code:
---------------
http://paste.phpfi.com/42611

Expected result:
----------------
Anything but a segmentation fault
probably "Fatal Error: out of memory"

Actual result:
--------------
[Tue Dec 21 10:37:28 2004] [notice] child pid 4249 exit signal Segmentation fault (11)
(Output of my reproduce code ends with "Big 3390 :Medium : 1 Medium : 2" = after ~34k created objects)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-21 10:59 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

PHP doesn\'t have stack protection. No bug here, this is just how it works.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC