#41615 [Com]: "Out of memory" errors

From: Date: Fri, 08 Jun 2007 21:47:22 +0000
Subject: #41615 [Com]: "Out of memory" errors
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113594@lists.php.net to get a copy of this message
ID: 41615 Comment by: pepegsay at hotmail dot com Reported By: sms at inbox dot ru Status: Feedback Bug Type: Unknown/Other Function Operating System: Windows 2000 SP4 PHP Version: 5.2.3 New Comment: I think that this is a bug which requires more than a simple script to reproduce. I am receiving similar results on our, primarily, phpBB site after upgrading to 5.2.2 today. The sits is running on Windows 2003 and Apache. Out of memory (allocated 1048576) (tried to allocate 393216 bytes) Out of memory (allocated 1048576) (tried to allocate 393216 bytes) Out of memory (allocated 1048576) (tried to allocate 393216 bytes) Out of memory (allocated 1048576) (tried to allocate 393216 bytes) Out of memory (allocated 786432) (tried to allocate 393216 bytes) Out of memory (allocated 1310720) (tried to allocate 393216 bytes) Obviously, I do not have a random amount allocated to memory_limit, and a ini_get returns the real value which is 32M. We received similar errors in php 5.1.4 but they were only logged in the Apache logs. Previous Comments: ------------------------------------------------------------------------ [2007-06-07 08:12:31] tony2001@php.net Sorry, we can't fix something we can't reproduce. ------------------------------------------------------------------------ [2007-06-07 08:07:00] sms at inbox dot ru I don't see a way to do it. I can't cut a part of a _huge_ board script. If it was a specific code construction I could do some tests and represent it here... I had PHP 5.2.2 running for ~32 hours and it generated more than 800 memory errors. My stats show ~40,000 hits for that period. So it doesn't fall over on every run. I also found a few errors like this: [26-May-2007 15:11:17] PHP Fatal error: Out of memory (allocated 7340032) (tried to allocate 160209 bytes) in Unknown on line 0 When I upgraded to PHP 5.2.3 I thought the problem is gone - it worked fine for the first 4 hours. And then it started all the same. As I remember PHP 5.2.1 fixed "Out of memory" bug that some people have in 5.2.0. So it's quite the contrary for me... ------------------------------------------------------------------------ [2007-06-06 22:41:32] tony2001@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Cannot reproduce. ------------------------------------------------------------------------ [2007-06-06 22:25:13] sms at inbox dot ru memory_limit is now set to 128M. PHP 5.2.0 works even with 16M though. ------------------------------------------------------------------------ [2007-06-06 22:13:54] tony2001@php.net What's the value of memory_limit? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41615 -- Edit this bug report at http://bugs.php.net/?id=41615&edit=1

« previous php.bugs (#113594) next »