Ask a Question related to PHP Bugs, Design and Development.
-
michaeldaly at magma dot ca #1
#40701 [NEW]: Memory allocation error
From: michaeldaly at magma dot ca
Operating system: Win XP Pro
PHP version: 5.2.1
PHP Bug Type: Reproducible crash
Bug description: Memory allocation error
Description:
------------
PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
5.0.27. XP Pro SP2+all current updates.
After editing about 15-20 pages in my Wiki, PHP eventually generates an
error:
PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
393216 bytes)
The error occurs in several php programs, though MessagesEn.php is the
most common. The amount of memory allocated or attempted to allocate
varies.
PHP.ini currently has:
max_execution_time = 30
max_input_time = 60
memory_limit = 512M
Computer has 2GB RAM and is not near its limit in paging etc.
It sounds similar to a bug that was reported as fixed in 5.2.0.
--
Edit bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40701&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40701&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40701&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40701&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40701&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40701&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40701&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40701&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40701&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40701&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40701&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40701&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40701&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40701&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40701&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40701&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40701&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40701&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40701&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40701&r=mysqlcfg[/url]
michaeldaly at magma dot ca Guest
-
How do i adjust memory allocation on mac osx for Freehand MX ??
How do i adjust memory allocation on mac osx for Freehand MX ?? Thanks James --- -
memory allocation problems in PHP and how to optimize?
PHP keeps throwing out-of-memory errors on me. By default PHP only allows a script 8 megs of memory. I want to know why my script has gotten so... -
Mapping a session to an allocation of virtual memory
Thank You Michael. That is what I needed. I didn't gather the output last time but now I know what to do. BTW would you know the system table(s)... -
Help me understand Buffer Pools and Memory Allocation
I am running DB2 6.1 in Windows 2000 server. I have 3872 meg of RAM and 8 databases. I keep getting the following two errors: "The memory for... -
Private Sort Memory Allocation Problem
Hi folks, The following is an error that is logged to the db2diag.log file whenever I run a db2look command. "Not enough memory available for... -
iliaa@php.net #2
#40701 [Opn->Bgs]: Memory allocation error
ID: 40701
Updated by: [email]iliaa@php.net[/email]
Reported By: michaeldaly at magma dot ca
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Win XP Pro
PHP Version: 5.2.1
New Comment:
Based on the error it would seem that the limit is 8 megs not 512 as
your config suggests. I suspect your configuration file is being
ignored.
Previous Comments:
------------------------------------------------------------------------
[2007-03-03 02:37:12] michaeldaly at magma dot ca
Description:
------------
PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
5.0.27. XP Pro SP2+all current updates.
After editing about 15-20 pages in my Wiki, PHP eventually generates an
error:
PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
393216 bytes)
The error occurs in several php programs, though MessagesEn.php is the
most common. The amount of memory allocated or attempted to allocate
varies.
PHP.ini currently has:
max_execution_time = 30
max_input_time = 60
memory_limit = 512M
Computer has 2GB RAM and is not near its limit in paging etc.
It sounds similar to a bug that was reported as fixed in 5.2.0.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
iliaa@php.net Guest
-
michaeldaly at magma dot ca #3
#40701 [Bgs->Opn]: Memory allocation error
ID: 40701
User updated by: michaeldaly at magma dot ca
Reported By: michaeldaly at magma dot ca
-Status: Bogus
+Status: Open
Bug Type: Reproducible crash
Operating System: Win XP Pro
PHP Version: 5.2.1
New Comment:
PHP responds to other parameters in the PHP.ini file (e.g.
display_errors = Off/On) so it is being found and used.
As I stated in my report "The amount of memory allocated or attempted
to allocate varies.". I wasn't clear - I have seen this bug occur with
allocated reported at just over 1MB to just over 8MB and more often at
lower levels - the specific, most recent, error message I showed is one
of the larger values I've seen.
Please reconsider this bug.
Previous Comments:
------------------------------------------------------------------------
[2007-03-03 15:50:08] [email]iliaa@php.net[/email]
Based on the error it would seem that the limit is 8 megs not 512 as
your config suggests. I suspect your configuration file is being
ignored.
------------------------------------------------------------------------
[2007-03-03 02:37:12] michaeldaly at magma dot ca
Description:
------------
PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
5.0.27. XP Pro SP2+all current updates.
After editing about 15-20 pages in my Wiki, PHP eventually generates an
error:
PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
393216 bytes)
The error occurs in several php programs, though MessagesEn.php is the
most common. The amount of memory allocated or attempted to allocate
varies.
PHP.ini currently has:
max_execution_time = 30
max_input_time = 60
memory_limit = 512M
Computer has 2GB RAM and is not near its limit in paging etc.
It sounds similar to a bug that was reported as fixed in 5.2.0.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
michaeldaly at magma dot ca Guest
-
michaeldaly at magma dot ca #4
#40701 [Opn]: Memory allocation error
ID: 40701
User updated by: michaeldaly at magma dot ca
Reported By: michaeldaly at magma dot ca
Status: Open
Bug Type: Reproducible crash
Operating System: Win XP Pro
PHP Version: 5.2.1
New Comment:
Further note on memory allocations: here are the three latest failures
and the programs in which they occured; the top one being the most
recent and the bottom the oldest.
(allocated 1835008) (tried to allocate 98304 bytes) Parser.php
(allocated 2883584) (tried to allocate 24576 bytes) Language.php
(allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php
Previous Comments:
------------------------------------------------------------------------
[2007-03-03 17:18:56] michaeldaly at magma dot ca
PHP responds to other parameters in the PHP.ini file (e.g.
display_errors = Off/On) so it is being found and used.
As I stated in my report "The amount of memory allocated or attempted
to allocate varies.". I wasn't clear - I have seen this bug occur with
allocated reported at just over 1MB to just over 8MB and more often at
lower levels - the specific, most recent, error message I showed is one
of the larger values I've seen.
Please reconsider this bug.
------------------------------------------------------------------------
[2007-03-03 15:50:08] [email]iliaa@php.net[/email]
Based on the error it would seem that the limit is 8 megs not 512 as
your config suggests. I suspect your configuration file is being
ignored.
------------------------------------------------------------------------
[2007-03-03 02:37:12] michaeldaly at magma dot ca
Description:
------------
PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
5.0.27. XP Pro SP2+all current updates.
After editing about 15-20 pages in my Wiki, PHP eventually generates an
error:
PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
393216 bytes)
The error occurs in several php programs, though MessagesEn.php is the
most common. The amount of memory allocated or attempted to allocate
varies.
PHP.ini currently has:
max_execution_time = 30
max_input_time = 60
memory_limit = 512M
Computer has 2GB RAM and is not near its limit in paging etc.
It sounds similar to a bug that was reported as fixed in 5.2.0.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
michaeldaly at magma dot ca Guest
-
iliaa@php.net #5
#40701 [Opn->Fbk]: Memory allocation error
ID: 40701
Updated by: [email]iliaa@php.net[/email]
Reported By: michaeldaly at magma dot ca
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Win XP Pro
PHP Version: 5.2.1
New Comment:
What memory limit value phpinfo() show?
Previous Comments:
------------------------------------------------------------------------
[2007-03-04 01:31:59] michaeldaly at magma dot ca
Further note on memory allocations: here are the three latest failures
and the programs in which they occured; the top one being the most
recent and the bottom the oldest.
(allocated 1835008) (tried to allocate 98304 bytes) Parser.php
(allocated 2883584) (tried to allocate 24576 bytes) Language.php
(allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php
------------------------------------------------------------------------
[2007-03-03 17:18:56] michaeldaly at magma dot ca
PHP responds to other parameters in the PHP.ini file (e.g.
display_errors = Off/On) so it is being found and used.
As I stated in my report "The amount of memory allocated or attempted
to allocate varies.". I wasn't clear - I have seen this bug occur with
allocated reported at just over 1MB to just over 8MB and more often at
lower levels - the specific, most recent, error message I showed is one
of the larger values I've seen.
Please reconsider this bug.
------------------------------------------------------------------------
[2007-03-03 15:50:08] [email]iliaa@php.net[/email]
Based on the error it would seem that the limit is 8 megs not 512 as
your config suggests. I suspect your configuration file is being
ignored.
------------------------------------------------------------------------
[2007-03-03 02:37:12] michaeldaly at magma dot ca
Description:
------------
PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
5.0.27. XP Pro SP2+all current updates.
After editing about 15-20 pages in my Wiki, PHP eventually generates an
error:
PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
393216 bytes)
The error occurs in several php programs, though MessagesEn.php is the
most common. The amount of memory allocated or attempted to allocate
varies.
PHP.ini currently has:
max_execution_time = 30
max_input_time = 60
memory_limit = 512M
Computer has 2GB RAM and is not near its limit in paging etc.
It sounds similar to a bug that was reported as fixed in 5.2.0.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
iliaa@php.net Guest
-
michaeldaly at magma dot ca #6
#40701 [Fbk->Opn]: Memory allocation error
ID: 40701
User updated by: michaeldaly at magma dot ca
Reported By: michaeldaly at magma dot ca
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: Win XP Pro
PHP Version: 5.2.1
New Comment:
phpinfo shows memory_limit 512M.
BTW this coincides with an Apache error of:
Parent: child process exited with status 3221225477 -- Restarting.
And -access violation (hex of 3221225477 is 0xC0000005) according to a
post on a web site I found.
This error with php apparently has a long history and comes and goes by
mixing and matching different versions of Apache and PHP. I don't know
if this adds any useful information, but it sounds like one of those
nasty problems that is hard to debug and fix.
Previous Comments:
------------------------------------------------------------------------
[2007-03-04 17:23:43] [email]iliaa@php.net[/email]
What memory limit value phpinfo() show?
------------------------------------------------------------------------
[2007-03-04 01:31:59] michaeldaly at magma dot ca
Further note on memory allocations: here are the three latest failures
and the programs in which they occured; the top one being the most
recent and the bottom the oldest.
(allocated 1835008) (tried to allocate 98304 bytes) Parser.php
(allocated 2883584) (tried to allocate 24576 bytes) Language.php
(allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php
------------------------------------------------------------------------
[2007-03-03 17:18:56] michaeldaly at magma dot ca
PHP responds to other parameters in the PHP.ini file (e.g.
display_errors = Off/On) so it is being found and used.
As I stated in my report "The amount of memory allocated or attempted
to allocate varies.". I wasn't clear - I have seen this bug occur with
allocated reported at just over 1MB to just over 8MB and more often at
lower levels - the specific, most recent, error message I showed is one
of the larger values I've seen.
Please reconsider this bug.
------------------------------------------------------------------------
[2007-03-03 15:50:08] [email]iliaa@php.net[/email]
Based on the error it would seem that the limit is 8 megs not 512 as
your config suggests. I suspect your configuration file is being
ignored.
------------------------------------------------------------------------
[2007-03-03 02:37:12] michaeldaly at magma dot ca
Description:
------------
PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
5.0.27. XP Pro SP2+all current updates.
After editing about 15-20 pages in my Wiki, PHP eventually generates an
error:
PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
393216 bytes)
The error occurs in several php programs, though MessagesEn.php is the
most common. The amount of memory allocated or attempted to allocate
varies.
PHP.ini currently has:
max_execution_time = 30
max_input_time = 60
memory_limit = 512M
Computer has 2GB RAM and is not near its limit in paging etc.
It sounds similar to a bug that was reported as fixed in 5.2.0.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
michaeldaly at magma dot ca Guest
-
michaeldaly at magma dot ca #7
#40701 [Opn]: Memory allocation error
ID: 40701
User updated by: michaeldaly at magma dot ca
Reported By: michaeldaly at magma dot ca
Status: Open
Bug Type: Reproducible crash
Operating System: Win XP Pro
PHP Version: 5.2.1
New Comment:
Additional thought - may be unrelated.
On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
had another, possibly related.
There was a frequent bug that I fixed with Win32DisableAcceptEx in
httpd.conf. This then introduced a memory allocation bug in Apache.
Apparently, that situation was relatively common on Windows machines
with not a lot of RAM - mine was 512MB.
With current server, I have 2GB Ram and the Apache allocation bug
hasn't shown up. However, now PHP has allocation errors. Is it
possible one was "hiding" the other? Is it possible the two situations
are related?
I only mention this in the hope it might twig one of you PHP wizards.
Previous Comments:
------------------------------------------------------------------------
[2007-03-04 17:40:36] michaeldaly at magma dot ca
phpinfo shows memory_limit 512M.
BTW this coincides with an Apache error of:
Parent: child process exited with status 3221225477 -- Restarting.
And -access violation (hex of 3221225477 is 0xC0000005) according to a
post on a web site I found.
This error with php apparently has a long history and comes and goes by
mixing and matching different versions of Apache and PHP. I don't know
if this adds any useful information, but it sounds like one of those
nasty problems that is hard to debug and fix.
------------------------------------------------------------------------
[2007-03-04 17:23:43] [email]iliaa@php.net[/email]
What memory limit value phpinfo() show?
------------------------------------------------------------------------
[2007-03-04 01:31:59] michaeldaly at magma dot ca
Further note on memory allocations: here are the three latest failures
and the programs in which they occured; the top one being the most
recent and the bottom the oldest.
(allocated 1835008) (tried to allocate 98304 bytes) Parser.php
(allocated 2883584) (tried to allocate 24576 bytes) Language.php
(allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php
------------------------------------------------------------------------
[2007-03-03 17:18:56] michaeldaly at magma dot ca
PHP responds to other parameters in the PHP.ini file (e.g.
display_errors = Off/On) so it is being found and used.
As I stated in my report "The amount of memory allocated or attempted
to allocate varies.". I wasn't clear - I have seen this bug occur with
allocated reported at just over 1MB to just over 8MB and more often at
lower levels - the specific, most recent, error message I showed is one
of the larger values I've seen.
Please reconsider this bug.
------------------------------------------------------------------------
[2007-03-03 15:50:08] [email]iliaa@php.net[/email]
Based on the error it would seem that the limit is 8 megs not 512 as
your config suggests. I suspect your configuration file is being
ignored.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40701[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
michaeldaly at magma dot ca Guest
-
tony2001@php.net #8
#40701 [Opn->Fbk]: Memory allocation error
ID: 40701
Updated by: [email]tony2001@php.net[/email]
Reported By: michaeldaly at magma dot ca
-Status: Open
+Status: Feedback
-Bug Type: Reproducible crash
+Bug Type: Unknown/Other Function
Operating System: Win XP Pro
PHP Version: 5.2.1
New Comment:
Make sure you didn't set the memory limit in any other way (windows
registry, httpd.conf, htaccess etc.).
If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
trust PHP.
Previous Comments:
------------------------------------------------------------------------
[2007-03-04 20:21:23] michaeldaly at magma dot ca
Additional thought - may be unrelated.
On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
had another, possibly related.
There was a frequent bug that I fixed with Win32DisableAcceptEx in
httpd.conf. This then introduced a memory allocation bug in Apache.
Apparently, that situation was relatively common on Windows machines
with not a lot of RAM - mine was 512MB.
With current server, I have 2GB Ram and the Apache allocation bug
hasn't shown up. However, now PHP has allocation errors. Is it
possible one was "hiding" the other? Is it possible the two situations
are related?
I only mention this in the hope it might twig one of you PHP wizards.
------------------------------------------------------------------------
[2007-03-04 17:40:36] michaeldaly at magma dot ca
phpinfo shows memory_limit 512M.
BTW this coincides with an Apache error of:
Parent: child process exited with status 3221225477 -- Restarting.
And -access violation (hex of 3221225477 is 0xC0000005) according to a
post on a web site I found.
This error with php apparently has a long history and comes and goes by
mixing and matching different versions of Apache and PHP. I don't know
if this adds any useful information, but it sounds like one of those
nasty problems that is hard to debug and fix.
------------------------------------------------------------------------
[2007-03-04 17:23:43] [email]iliaa@php.net[/email]
What memory limit value phpinfo() show?
------------------------------------------------------------------------
[2007-03-04 01:31:59] michaeldaly at magma dot ca
Further note on memory allocations: here are the three latest failures
and the programs in which they occured; the top one being the most
recent and the bottom the oldest.
(allocated 1835008) (tried to allocate 98304 bytes) Parser.php
(allocated 2883584) (tried to allocate 24576 bytes) Language.php
(allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php
------------------------------------------------------------------------
[2007-03-03 17:18:56] michaeldaly at magma dot ca
PHP responds to other parameters in the PHP.ini file (e.g.
display_errors = Off/On) so it is being found and used.
As I stated in my report "The amount of memory allocated or attempted
to allocate varies.". I wasn't clear - I have seen this bug occur with
allocated reported at just over 1MB to just over 8MB and more often at
lower levels - the specific, most recent, error message I showed is one
of the larger values I've seen.
Please reconsider this bug.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40701[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
tony2001@php.net Guest
-
michaeldaly at magma dot ca #9
#40701 [Fbk->Opn]: Memory allocation error
ID: 40701
User updated by: michaeldaly at magma dot ca
Reported By: michaeldaly at magma dot ca
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: Win XP Pro
PHP Version: 5.2.1
New Comment:
I can find no other mechanism for setting a memory limit.
PHP does _not_ report 8MB - it reports 512MB as per the php.ini
setting. This is reported in phpinfo.php.
This allocation error is occurring at many different allocation levels.
For example, the following occurred yesterday. The first column is the
allocated amount, the second is the amount attempted and the third is
the number of times it occurred.
Allocated Add Freq
1048576 6144 1
1835008 98304 2
2359296 98304 2
2883584 24576 3
3407872 24576 2
3670016 24576 2
4456448 6144 1
5242880 393216 1
5505024 98304 1
5767168 1572864 3
5767168 98304 1
6029312 393216 1
6291456 1572864 2
6291456 98304 1
6553600 1572864 1
6553600 24576 1
6553600 393216 8
6815744 393216 4
7077888 1572864 11
7340032 1572864 5
7602176 1572864 1
7602176 393216 1
786432 24576 4
786432 6144 3
9175040 1572864 2
All these values are well below the 512MB limit.
Previous Comments:
------------------------------------------------------------------------
[2007-03-05 10:02:55] [email]tony2001@php.net[/email]
Make sure you didn't set the memory limit in any other way (windows
registry, httpd.conf, htaccess etc.).
If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
trust PHP.
------------------------------------------------------------------------
[2007-03-04 20:21:23] michaeldaly at magma dot ca
Additional thought - may be unrelated.
On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
had another, possibly related.
There was a frequent bug that I fixed with Win32DisableAcceptEx in
httpd.conf. This then introduced a memory allocation bug in Apache.
Apparently, that situation was relatively common on Windows machines
with not a lot of RAM - mine was 512MB.
With current server, I have 2GB Ram and the Apache allocation bug
hasn't shown up. However, now PHP has allocation errors. Is it
possible one was "hiding" the other? Is it possible the two situations
are related?
I only mention this in the hope it might twig one of you PHP wizards.
------------------------------------------------------------------------
[2007-03-04 17:40:36] michaeldaly at magma dot ca
phpinfo shows memory_limit 512M.
BTW this coincides with an Apache error of:
Parent: child process exited with status 3221225477 -- Restarting.
And -access violation (hex of 3221225477 is 0xC0000005) according to a
post on a web site I found.
This error with php apparently has a long history and comes and goes by
mixing and matching different versions of Apache and PHP. I don't know
if this adds any useful information, but it sounds like one of those
nasty problems that is hard to debug and fix.
------------------------------------------------------------------------
[2007-03-04 17:23:43] [email]iliaa@php.net[/email]
What memory limit value phpinfo() show?
------------------------------------------------------------------------
[2007-03-04 01:31:59] michaeldaly at magma dot ca
Further note on memory allocations: here are the three latest failures
and the programs in which they occured; the top one being the most
recent and the bottom the oldest.
(allocated 1835008) (tried to allocate 98304 bytes) Parser.php
(allocated 2883584) (tried to allocate 24576 bytes) Language.php
(allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40701[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
michaeldaly at magma dot ca Guest
-
tony2001@php.net #10
#40701 [Opn->Fbk]: Memory allocation error
ID: 40701
Updated by: [email]tony2001@php.net[/email]
Reported By: michaeldaly at magma dot ca
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Win XP Pro
PHP Version: 5.2.1
New Comment:
Cannot reproduce anything like that.
Previous Comments:
------------------------------------------------------------------------
[2007-03-06 18:02:56] michaeldaly at magma dot ca
I can find no other mechanism for setting a memory limit.
PHP does _not_ report 8MB - it reports 512MB as per the php.ini
setting. This is reported in phpinfo.php.
This allocation error is occurring at many different allocation levels.
For example, the following occurred yesterday. The first column is the
allocated amount, the second is the amount attempted and the third is
the number of times it occurred.
Allocated Add Freq
1048576 6144 1
1835008 98304 2
2359296 98304 2
2883584 24576 3
3407872 24576 2
3670016 24576 2
4456448 6144 1
5242880 393216 1
5505024 98304 1
5767168 1572864 3
5767168 98304 1
6029312 393216 1
6291456 1572864 2
6291456 98304 1
6553600 1572864 1
6553600 24576 1
6553600 393216 8
6815744 393216 4
7077888 1572864 11
7340032 1572864 5
7602176 1572864 1
7602176 393216 1
786432 24576 4
786432 6144 3
9175040 1572864 2
All these values are well below the 512MB limit.
------------------------------------------------------------------------
[2007-03-05 10:02:55] [email]tony2001@php.net[/email]
Make sure you didn't set the memory limit in any other way (windows
registry, httpd.conf, htaccess etc.).
If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
trust PHP.
------------------------------------------------------------------------
[2007-03-04 20:21:23] michaeldaly at magma dot ca
Additional thought - may be unrelated.
On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
had another, possibly related.
There was a frequent bug that I fixed with Win32DisableAcceptEx in
httpd.conf. This then introduced a memory allocation bug in Apache.
Apparently, that situation was relatively common on Windows machines
with not a lot of RAM - mine was 512MB.
With current server, I have 2GB Ram and the Apache allocation bug
hasn't shown up. However, now PHP has allocation errors. Is it
possible one was "hiding" the other? Is it possible the two situations
are related?
I only mention this in the hope it might twig one of you PHP wizards.
------------------------------------------------------------------------
[2007-03-04 17:40:36] michaeldaly at magma dot ca
phpinfo shows memory_limit 512M.
BTW this coincides with an Apache error of:
Parent: child process exited with status 3221225477 -- Restarting.
And -access violation (hex of 3221225477 is 0xC0000005) according to a
post on a web site I found.
This error with php apparently has a long history and comes and goes by
mixing and matching different versions of Apache and PHP. I don't know
if this adds any useful information, but it sounds like one of those
nasty problems that is hard to debug and fix.
------------------------------------------------------------------------
[2007-03-04 17:23:43] [email]iliaa@php.net[/email]
What memory limit value phpinfo() show?
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40701[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
tony2001@php.net Guest
-
michaeldaly at magma dot ca #11
#40701 [Fbk->Opn]: Memory allocation error
ID: 40701
User updated by: michaeldaly at magma dot ca
Reported By: michaeldaly at magma dot ca
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: Win XP Pro
-PHP Version: 5.2.1
+PHP Version: 5.2.2
New Comment:
Is there a way for me to capture some kind of debug information that
can help you? I downloaded the debug files along with the latest snap
and they were just PDB files and I don't know what to do with them.
Previous Comments:
------------------------------------------------------------------------
[2007-03-06 18:10:37] [email]tony2001@php.net[/email]
Cannot reproduce anything like that.
------------------------------------------------------------------------
[2007-03-06 18:02:56] michaeldaly at magma dot ca
I can find no other mechanism for setting a memory limit.
PHP does _not_ report 8MB - it reports 512MB as per the php.ini
setting. This is reported in phpinfo.php.
This allocation error is occurring at many different allocation levels.
For example, the following occurred yesterday. The first column is the
allocated amount, the second is the amount attempted and the third is
the number of times it occurred.
Allocated Add Freq
1048576 6144 1
1835008 98304 2
2359296 98304 2
2883584 24576 3
3407872 24576 2
3670016 24576 2
4456448 6144 1
5242880 393216 1
5505024 98304 1
5767168 1572864 3
5767168 98304 1
6029312 393216 1
6291456 1572864 2
6291456 98304 1
6553600 1572864 1
6553600 24576 1
6553600 393216 8
6815744 393216 4
7077888 1572864 11
7340032 1572864 5
7602176 1572864 1
7602176 393216 1
786432 24576 4
786432 6144 3
9175040 1572864 2
All these values are well below the 512MB limit.
------------------------------------------------------------------------
[2007-03-05 10:02:55] [email]tony2001@php.net[/email]
Make sure you didn't set the memory limit in any other way (windows
registry, httpd.conf, htaccess etc.).
If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
trust PHP.
------------------------------------------------------------------------
[2007-03-04 20:21:23] michaeldaly at magma dot ca
Additional thought - may be unrelated.
On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
had another, possibly related.
There was a frequent bug that I fixed with Win32DisableAcceptEx in
httpd.conf. This then introduced a memory allocation bug in Apache.
Apparently, that situation was relatively common on Windows machines
with not a lot of RAM - mine was 512MB.
With current server, I have 2GB Ram and the Apache allocation bug
hasn't shown up. However, now PHP has allocation errors. Is it
possible one was "hiding" the other? Is it possible the two situations
are related?
I only mention this in the hope it might twig one of you PHP wizards.
------------------------------------------------------------------------
[2007-03-04 17:40:36] michaeldaly at magma dot ca
phpinfo shows memory_limit 512M.
BTW this coincides with an Apache error of:
Parent: child process exited with status 3221225477 -- Restarting.
And -access violation (hex of 3221225477 is 0xC0000005) according to a
post on a web site I found.
This error with php apparently has a long history and comes and goes by
mixing and matching different versions of Apache and PHP. I don't know
if this adds any useful information, but it sounds like one of those
nasty problems that is hard to debug and fix.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40701[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
michaeldaly at magma dot ca Guest
-
tony2001@php.net #12
#40701 [Opn->Fbk]: Memory allocation error
ID: 40701
Updated by: [email]tony2001@php.net[/email]
Reported By: michaeldaly at magma dot ca
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Win XP Pro
PHP Version: 5.2.2
New Comment:
setting.>PHP does _not_ report 8MB - it reports 512MB as per the php.ini
It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
8388608) (tried to allocate 393216 bytes)".
memory_limit can be changed per-virtualhost, per-directory and>This is reported in phpinfo.php.
per-script.
Therefore phpinfo() might show you 512Mb, but the real script might use
different value.
Yes, please search for "memory_limit" in your scripts,.htacess and>Is there a way for me to capture some kind of debug information
>that can help you?
httpd.conf.
Previous Comments:
------------------------------------------------------------------------
[2007-03-06 20:54:33] michaeldaly at magma dot ca
Is there a way for me to capture some kind of debug information that
can help you? I downloaded the debug files along with the latest snap
and they were just PDB files and I don't know what to do with them.
------------------------------------------------------------------------
[2007-03-06 18:10:37] [email]tony2001@php.net[/email]
Cannot reproduce anything like that.
------------------------------------------------------------------------
[2007-03-06 18:02:56] michaeldaly at magma dot ca
I can find no other mechanism for setting a memory limit.
PHP does _not_ report 8MB - it reports 512MB as per the php.ini
setting. This is reported in phpinfo.php.
This allocation error is occurring at many different allocation levels.
For example, the following occurred yesterday. The first column is the
allocated amount, the second is the amount attempted and the third is
the number of times it occurred.
Allocated Add Freq
1048576 6144 1
1835008 98304 2
2359296 98304 2
2883584 24576 3
3407872 24576 2
3670016 24576 2
4456448 6144 1
5242880 393216 1
5505024 98304 1
5767168 1572864 3
5767168 98304 1
6029312 393216 1
6291456 1572864 2
6291456 98304 1
6553600 1572864 1
6553600 24576 1
6553600 393216 8
6815744 393216 4
7077888 1572864 11
7340032 1572864 5
7602176 1572864 1
7602176 393216 1
786432 24576 4
786432 6144 3
9175040 1572864 2
All these values are well below the 512MB limit.
------------------------------------------------------------------------
[2007-03-05 10:02:55] [email]tony2001@php.net[/email]
Make sure you didn't set the memory limit in any other way (windows
registry, httpd.conf, htaccess etc.).
If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
trust PHP.
------------------------------------------------------------------------
[2007-03-04 20:21:23] michaeldaly at magma dot ca
Additional thought - may be unrelated.
On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
had another, possibly related.
There was a frequent bug that I fixed with Win32DisableAcceptEx in
httpd.conf. This then introduced a memory allocation bug in Apache.
Apparently, that situation was relatively common on Windows machines
with not a lot of RAM - mine was 512MB.
With current server, I have 2GB Ram and the Apache allocation bug
hasn't shown up. However, now PHP has allocation errors. Is it
possible one was "hiding" the other? Is it possible the two situations
are related?
I only mention this in the hope it might twig one of you PHP wizards.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40701[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
tony2001@php.net Guest
-
michaeldaly at magma dot ca #13
#40701 [Fbk->Opn]: Memory allocation error
ID: 40701
User updated by: michaeldaly at magma dot ca
Reported By: michaeldaly at magma dot ca
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: Win XP Pro
PHP Version: 5.2.2
New Comment:
It also reports from 786KB to 9.2MB, so it appears that if the problem> It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
> 8388608) (tried to allocate 393216 bytes)".
is a limit set externally, that limit is floating dynamically.
I searched for "memory" in the entire Apache directory tree and found> Yes, please search for "memory_limit" in your scripts,.htacess
> and httpd.conf.
nothing that resembles a limit. I looked through httpd.conf and
httpd_vhosts.conf visually and can find nothing else that looks like a
memory restriction. The only limit I can find is in PHP.ini.
Previous Comments:
------------------------------------------------------------------------
[2007-03-07 09:13:06] [email]tony2001@php.net[/email]
setting.>PHP does _not_ report 8MB - it reports 512MB as per the php.ini
It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
8388608) (tried to allocate 393216 bytes)".
memory_limit can be changed per-virtualhost, per-directory and>This is reported in phpinfo.php.
per-script.
Therefore phpinfo() might show you 512Mb, but the real script might use
different value.
Yes, please search for "memory_limit" in your scripts,.htacess and>Is there a way for me to capture some kind of debug information
>that can help you?
httpd.conf.
------------------------------------------------------------------------
[2007-03-06 20:54:33] michaeldaly at magma dot ca
Is there a way for me to capture some kind of debug information that
can help you? I downloaded the debug files along with the latest snap
and they were just PDB files and I don't know what to do with them.
------------------------------------------------------------------------
[2007-03-06 18:10:37] [email]tony2001@php.net[/email]
Cannot reproduce anything like that.
------------------------------------------------------------------------
[2007-03-06 18:02:56] michaeldaly at magma dot ca
I can find no other mechanism for setting a memory limit.
PHP does _not_ report 8MB - it reports 512MB as per the php.ini
setting. This is reported in phpinfo.php.
This allocation error is occurring at many different allocation levels.
For example, the following occurred yesterday. The first column is the
allocated amount, the second is the amount attempted and the third is
the number of times it occurred.
Allocated Add Freq
1048576 6144 1
1835008 98304 2
2359296 98304 2
2883584 24576 3
3407872 24576 2
3670016 24576 2
4456448 6144 1
5242880 393216 1
5505024 98304 1
5767168 1572864 3
5767168 98304 1
6029312 393216 1
6291456 1572864 2
6291456 98304 1
6553600 1572864 1
6553600 24576 1
6553600 393216 8
6815744 393216 4
7077888 1572864 11
7340032 1572864 5
7602176 1572864 1
7602176 393216 1
786432 24576 4
786432 6144 3
9175040 1572864 2
All these values are well below the 512MB limit.
------------------------------------------------------------------------
[2007-03-05 10:02:55] [email]tony2001@php.net[/email]
Make sure you didn't set the memory limit in any other way (windows
registry, httpd.conf, htaccess etc.).
If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
trust PHP.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40701[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
michaeldaly at magma dot ca Guest
-
edink@php.net #14
#40701 [Opn]: Memory allocation error
ID: 40701
Updated by: [email]edink@php.net[/email]
Reported By: michaeldaly at magma dot ca
Status: Open
Bug Type: Unknown/Other Function
Operating System: Win XP Pro
PHP Version: 5.2.2
New Comment:
Just out of the curiousity: what happens when you disable memory limit
altogether?
memory_limit=-1
Previous Comments:
------------------------------------------------------------------------
[2007-03-07 16:04:57] michaeldaly at magma dot ca
It also reports from 786KB to 9.2MB, so it appears that if the problem> It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
> 8388608) (tried to allocate 393216 bytes)".
is a limit set externally, that limit is floating dynamically.
I searched for "memory" in the entire Apache directory tree and found> Yes, please search for "memory_limit" in your scripts,.htacess
> and httpd.conf.
nothing that resembles a limit. I looked through httpd.conf and
httpd_vhosts.conf visually and can find nothing else that looks like a
memory restriction. The only limit I can find is in PHP.ini.
------------------------------------------------------------------------
[2007-03-07 09:13:06] [email]tony2001@php.net[/email]
setting.>PHP does _not_ report 8MB - it reports 512MB as per the php.ini
It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
8388608) (tried to allocate 393216 bytes)".
memory_limit can be changed per-virtualhost, per-directory and>This is reported in phpinfo.php.
per-script.
Therefore phpinfo() might show you 512Mb, but the real script might use
different value.
Yes, please search for "memory_limit" in your scripts,.htacess and>Is there a way for me to capture some kind of debug information
>that can help you?
httpd.conf.
------------------------------------------------------------------------
[2007-03-06 20:54:33] michaeldaly at magma dot ca
Is there a way for me to capture some kind of debug information that
can help you? I downloaded the debug files along with the latest snap
and they were just PDB files and I don't know what to do with them.
------------------------------------------------------------------------
[2007-03-06 18:10:37] [email]tony2001@php.net[/email]
Cannot reproduce anything like that.
------------------------------------------------------------------------
[2007-03-06 18:02:56] michaeldaly at magma dot ca
I can find no other mechanism for setting a memory limit.
PHP does _not_ report 8MB - it reports 512MB as per the php.ini
setting. This is reported in phpinfo.php.
This allocation error is occurring at many different allocation levels.
For example, the following occurred yesterday. The first column is the
allocated amount, the second is the amount attempted and the third is
the number of times it occurred.
Allocated Add Freq
1048576 6144 1
1835008 98304 2
2359296 98304 2
2883584 24576 3
3407872 24576 2
3670016 24576 2
4456448 6144 1
5242880 393216 1
5505024 98304 1
5767168 1572864 3
5767168 98304 1
6029312 393216 1
6291456 1572864 2
6291456 98304 1
6553600 1572864 1
6553600 24576 1
6553600 393216 8
6815744 393216 4
7077888 1572864 11
7340032 1572864 5
7602176 1572864 1
7602176 393216 1
786432 24576 4
786432 6144 3
9175040 1572864 2
All these values are well below the 512MB 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
[url]http://bugs.php.net/40701[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
edink@php.net Guest



Reply With Quote

