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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 13:01:34 2025 UTC