Ask a Question related to PHP Bugs, Design and Development.
-
nikolas dot hagelstein at gmail dot com #1
#39438 [NEW]: Memory leak PHP Fatal error: Out of memory
From: nikolas dot hagelstein at gmail dot com
Operating system: NETBSD 3.0.1 AMD64
PHP version: 5.2.0
PHP Bug Type: Unknown/Other Function
Bug description: Memory leak PHP Fatal error: Out of memory
Description:
------------
After upgrading to php 5.2.0 im constantly receiving "PHP Fatal error:
Out of memory error" where i did not received one using 5.1.6. I adjusted
the memory limit from 64M to 256M but without any success.
PHP Fatal error: Out of memory (allocated 250871808) at
/usr/pkgsrc/www/ap-php/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 2215827 bytes) in
/var/www/shared/typo3_src-4.0.1/typo3/mod/tools/em/class.em_xmlhandler.php
on line 141, referer:
[url]http://www.chaosbutze.de/typo3/mod/tools/em/index.php?[/url]
i am not sure about how to dig into this but i can say that it seems to
be somehow xml/serialize related.
--
Edit bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39438&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39438&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39438&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39438&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=39438&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=39438&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39438&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=39438&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=39438&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=39438&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=39438&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=39438&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=39438&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39438&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=39438&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=39438&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39438&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=39438&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39438&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39438&r=mysqlcfg[/url]
nikolas dot hagelstein at gmail dot com Guest
-
memory problem/memory leak
Hi I have a problem with shockwave player running in Internet Explorer. My program consists of a controller movie which loads in content files in... -
Fatal Error-Completely out of memory
My director project won't let me put anything else in it. Its giving me a a fatal error message saying that director is totally out of memory. Is... -
Memory consumption of Ruby/mod_ruby combo on Apache [memory leak]
> I don't think so - I think all the modules are loaded when Apache is It didn't have anything to do with IfModules or even Apache. I had a... -
#25335 [NEW]: Memory Leak with error handler and exceptions
From: cunha17 at uol dot com dot br Operating system: RedHat Linux 9.0 PHP version: 5CVS-2003-08-31 (dev) PHP Bug Type: Zend... -
oninit: Fatal error in shared memory creation
Hi, did you recieved an answer for your question ? I have now exactly the same problem. Can you help ? regards alex -
tony2001@php.net #2
#39438 [Opn->Fbk]: Memory leak PHP Fatal error: Out of memory
ID: 39438
Updated by: [email]tony2001@php.net[/email]
Reported By: nikolas dot hagelstein at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2006-11-08 20:33:53] nikolas dot hagelstein at gmail dot com
Description:
------------
After upgrading to php 5.2.0 im constantly receiving "PHP Fatal error:
Out of memory error" where i did not received one using 5.1.6. I
adjusted the memory limit from 64M to 256M but without any success.
PHP Fatal error: Out of memory (allocated 250871808) at
/usr/pkgsrc/www/ap-php/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 2215827 bytes) in
/var/www/shared/typo3_src-4.0.1/typo3/mod/tools/em/class.em_xmlhandler.php
on line 141, referer:
[url]http://www.chaosbutze.de/typo3/mod/tools/em/index.php?[/url]
i am not sure about how to dig into this but i can say that it seems
to be somehow xml/serialize related.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
tony2001@php.net Guest
-
nikolas dot hagelstein at gmail dot com #3
#39438 [Fbk->Opn]: Memory leak PHP Fatal error: Out of memory
ID: 39438
User updated by: nikolas dot hagelstein at gmail dot com
Reported By: nikolas dot hagelstein at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
New Comment:
<?php
$i=0;
$test2=array(
'a1_teasermenu' => array(
'downloadcounter' => 2777,
'versions' => array(
'0.1.0' => array (
'title' => 'A1 Teasermenu',
'description' => 'Displays a teaser for advanced subpages
or a selection of advanced pages',
'state' => 'stable',
'reviewstate' => 0,
'category' => 'plugin',
'downloadcounter' => 2787,
'lastuploaddate' => 1088427240,
'dependencies' => array (
'depends' => array(
'typo3' =>'',
'php' =>'',
'cms' => ''
),
'conflicts' => array('' =>'')
),
'authorname' => 'Mirko Balluff',
'authoremail' => 'balluff@amt1.de',
'ownerusername' => 'amt1',
't3xfilemd5' => '3a4ec198b6ea8d0bc2d69d9b7400398f',
)
)
)
);
$test=array();
while($i<1600) {
$test[]=$test2;
$i++;
}
$out=gzcompress(serialize($test));
?>
results in :
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted at
/usr/pkgsrc/lang/php5/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 1041720 bytes) in /var/www/www.chaosbutze.de/htdocs/test2.php
on line 37
while it works on php 5.1.6 and 4.
Having mem limit set to 64MB.
Setting mem limit to 128MB and increasing interations to 2260 also
causes the above mentioned error.
Previous Comments:
------------------------------------------------------------------------
[2006-11-08 20:46:33] [email]tony2001@php.net[/email]
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.
------------------------------------------------------------------------
[2006-11-08 20:33:53] nikolas dot hagelstein at gmail dot com
Description:
------------
After upgrading to php 5.2.0 im constantly receiving "PHP Fatal error:
Out of memory error" where i did not received one using 5.1.6. I
adjusted the memory limit from 64M to 256M but without any success.
PHP Fatal error: Out of memory (allocated 250871808) at
/usr/pkgsrc/www/ap-php/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 2215827 bytes) in
/var/www/shared/typo3_src-4.0.1/typo3/mod/tools/em/class.em_xmlhandler.php
on line 141, referer:
[url]http://www.chaosbutze.de/typo3/mod/tools/em/index.php?[/url]
i am not sure about how to dig into this but i can say that it seems
to be somehow xml/serialize related.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
nikolas dot hagelstein at gmail dot com Guest
-
nikolas dot hagelstein at gmail dot com #4
#39438 [Opn]: Memory leak PHP Fatal error: Out of memory
ID: 39438
User updated by: nikolas dot hagelstein at gmail dot com
Reported By: nikolas dot hagelstein at gmail dot com
Status: Open
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
New Comment:
Did some further testing:
the script worked on:
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:8mb
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:64MB
Previous Comments:
------------------------------------------------------------------------
[2006-11-08 21:40:32] nikolas dot hagelstein at gmail dot com
<?php
$i=0;
$test2=array(
'a1_teasermenu' => array(
'downloadcounter' => 2777,
'versions' => array(
'0.1.0' => array (
'title' => 'A1 Teasermenu',
'description' => 'Displays a teaser for advanced subpages
or a selection of advanced pages',
'state' => 'stable',
'reviewstate' => 0,
'category' => 'plugin',
'downloadcounter' => 2787,
'lastuploaddate' => 1088427240,
'dependencies' => array (
'depends' => array(
'typo3' =>'',
'php' =>'',
'cms' => ''
),
'conflicts' => array('' =>'')
),
'authorname' => 'Mirko Balluff',
'authoremail' => 'balluff@amt1.de',
'ownerusername' => 'amt1',
't3xfilemd5' => '3a4ec198b6ea8d0bc2d69d9b7400398f',
)
)
)
);
$test=array();
while($i<1600) {
$test[]=$test2;
$i++;
}
$out=gzcompress(serialize($test));
?>
results in :
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted at
/usr/pkgsrc/lang/php5/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 1041720 bytes) in /var/www/www.chaosbutze.de/htdocs/test2.php
on line 37
while it works on php 5.1.6 and 4.
Having mem limit set to 64MB.
Setting mem limit to 128MB and increasing interations to 2260 also
causes the above mentioned error.
------------------------------------------------------------------------
[2006-11-08 20:46:33] [email]tony2001@php.net[/email]
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.
------------------------------------------------------------------------
[2006-11-08 20:33:53] nikolas dot hagelstein at gmail dot com
Description:
------------
After upgrading to php 5.2.0 im constantly receiving "PHP Fatal error:
Out of memory error" where i did not received one using 5.1.6. I
adjusted the memory limit from 64M to 256M but without any success.
PHP Fatal error: Out of memory (allocated 250871808) at
/usr/pkgsrc/www/ap-php/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 2215827 bytes) in
/var/www/shared/typo3_src-4.0.1/typo3/mod/tools/em/class.em_xmlhandler.php
on line 141, referer:
[url]http://www.chaosbutze.de/typo3/mod/tools/em/index.php?[/url]
i am not sure about how to dig into this but i can say that it seems
to be somehow xml/serialize related.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
nikolas dot hagelstein at gmail dot com Guest
-
dmitry@php.net #5
#39438 [Opn->Asn]: Memory leak PHP Fatal error: Out of memory
ID: 39438
Updated by: [email]dmitry@php.net[/email]
Reported By: nikolas dot hagelstein at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2006-11-08 21:56:24] nikolas dot hagelstein at gmail dot com
Did some further testing:
the script worked on:
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:8mb
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:64MB
------------------------------------------------------------------------
[2006-11-08 21:40:32] nikolas dot hagelstein at gmail dot com
<?php
$i=0;
$test2=array(
'a1_teasermenu' => array(
'downloadcounter' => 2777,
'versions' => array(
'0.1.0' => array (
'title' => 'A1 Teasermenu',
'description' => 'Displays a teaser for advanced subpages
or a selection of advanced pages',
'state' => 'stable',
'reviewstate' => 0,
'category' => 'plugin',
'downloadcounter' => 2787,
'lastuploaddate' => 1088427240,
'dependencies' => array (
'depends' => array(
'typo3' =>'',
'php' =>'',
'cms' => ''
),
'conflicts' => array('' =>'')
),
'authorname' => 'Mirko Balluff',
'authoremail' => 'balluff@amt1.de',
'ownerusername' => 'amt1',
't3xfilemd5' => '3a4ec198b6ea8d0bc2d69d9b7400398f',
)
)
)
);
$test=array();
while($i<1600) {
$test[]=$test2;
$i++;
}
$out=gzcompress(serialize($test));
?>
results in :
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted at
/usr/pkgsrc/lang/php5/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 1041720 bytes) in /var/www/www.chaosbutze.de/htdocs/test2.php
on line 37
while it works on php 5.1.6 and 4.
Having mem limit set to 64MB.
Setting mem limit to 128MB and increasing interations to 2260 also
causes the above mentioned error.
------------------------------------------------------------------------
[2006-11-08 20:46:33] [email]tony2001@php.net[/email]
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.
------------------------------------------------------------------------
[2006-11-08 20:33:53] nikolas dot hagelstein at gmail dot com
Description:
------------
After upgrading to php 5.2.0 im constantly receiving "PHP Fatal error:
Out of memory error" where i did not received one using 5.1.6. I
adjusted the memory limit from 64M to 256M but without any success.
PHP Fatal error: Out of memory (allocated 250871808) at
/usr/pkgsrc/www/ap-php/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 2215827 bytes) in
/var/www/shared/typo3_src-4.0.1/typo3/mod/tools/em/class.em_xmlhandler.php
on line 141, referer:
[url]http://www.chaosbutze.de/typo3/mod/tools/em/index.php?[/url]
i am not sure about how to dig into this but i can say that it seems
to be somehow xml/serialize related.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
dmitry@php.net Guest
-
stig at 8620 dot dk #6
#39438 [Com]: Memory leak PHP Fatal error: Out of memory
ID: 39438
Comment by: stig at 8620 dot dk
Reported By: nikolas dot hagelstein at gmail dot com
Status: Assigned
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
Assigned To: dmitry
New Comment:
Are there current any work arounds for this problem?
My host has upgraded to 5.2.0, so I'm stuck with this problem.
Previous Comments:
------------------------------------------------------------------------
[2006-11-08 21:56:24] nikolas dot hagelstein at gmail dot com
Did some further testing:
the script worked on:
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:8mb
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:64MB
------------------------------------------------------------------------
[2006-11-08 21:40:32] nikolas dot hagelstein at gmail dot com
<?php
$i=0;
$test2=array(
'a1_teasermenu' => array(
'downloadcounter' => 2777,
'versions' => array(
'0.1.0' => array (
'title' => 'A1 Teasermenu',
'description' => 'Displays a teaser for advanced subpages
or a selection of advanced pages',
'state' => 'stable',
'reviewstate' => 0,
'category' => 'plugin',
'downloadcounter' => 2787,
'lastuploaddate' => 1088427240,
'dependencies' => array (
'depends' => array(
'typo3' =>'',
'php' =>'',
'cms' => ''
),
'conflicts' => array('' =>'')
),
'authorname' => 'Mirko Balluff',
'authoremail' => 'balluff@amt1.de',
'ownerusername' => 'amt1',
't3xfilemd5' => '3a4ec198b6ea8d0bc2d69d9b7400398f',
)
)
)
);
$test=array();
while($i<1600) {
$test[]=$test2;
$i++;
}
$out=gzcompress(serialize($test));
?>
results in :
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted at
/usr/pkgsrc/lang/php5/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 1041720 bytes) in /var/www/www.chaosbutze.de/htdocs/test2.php
on line 37
while it works on php 5.1.6 and 4.
Having mem limit set to 64MB.
Setting mem limit to 128MB and increasing interations to 2260 also
causes the above mentioned error.
------------------------------------------------------------------------
[2006-11-08 20:46:33] [email]tony2001@php.net[/email]
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.
------------------------------------------------------------------------
[2006-11-08 20:33:53] nikolas dot hagelstein at gmail dot com
Description:
------------
After upgrading to php 5.2.0 im constantly receiving "PHP Fatal error:
Out of memory error" where i did not received one using 5.1.6. I
adjusted the memory limit from 64M to 256M but without any success.
PHP Fatal error: Out of memory (allocated 250871808) at
/usr/pkgsrc/www/ap-php/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 2215827 bytes) in
/var/www/shared/typo3_src-4.0.1/typo3/mod/tools/em/class.em_xmlhandler.php
on line 141, referer:
[url]http://www.chaosbutze.de/typo3/mod/tools/em/index.php?[/url]
i am not sure about how to dig into this but i can say that it seems
to be somehow xml/serialize related.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
stig at 8620 dot dk Guest
-
nikolas dot hagelstein at gmail dot com #7
#39438 [Asn]: Memory leak PHP Fatal error: Out of memory
ID: 39438
User updated by: nikolas dot hagelstein at gmail dot com
Reported By: nikolas dot hagelstein at gmail dot com
Status: Assigned
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
Assigned To: dmitry
New Comment:
No workarounds atm i had to downgrade :|
Previous Comments:
------------------------------------------------------------------------
[2006-11-27 10:45:39] stig at 8620 dot dk
Are there current any work arounds for this problem?
My host has upgraded to 5.2.0, so I'm stuck with this problem.
------------------------------------------------------------------------
[2006-11-08 21:56:24] nikolas dot hagelstein at gmail dot com
Did some further testing:
the script worked on:
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:8mb
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:64MB
------------------------------------------------------------------------
[2006-11-08 21:40:32] nikolas dot hagelstein at gmail dot com
<?php
$i=0;
$test2=array(
'a1_teasermenu' => array(
'downloadcounter' => 2777,
'versions' => array(
'0.1.0' => array (
'title' => 'A1 Teasermenu',
'description' => 'Displays a teaser for advanced subpages
or a selection of advanced pages',
'state' => 'stable',
'reviewstate' => 0,
'category' => 'plugin',
'downloadcounter' => 2787,
'lastuploaddate' => 1088427240,
'dependencies' => array (
'depends' => array(
'typo3' =>'',
'php' =>'',
'cms' => ''
),
'conflicts' => array('' =>'')
),
'authorname' => 'Mirko Balluff',
'authoremail' => 'balluff@amt1.de',
'ownerusername' => 'amt1',
't3xfilemd5' => '3a4ec198b6ea8d0bc2d69d9b7400398f',
)
)
)
);
$test=array();
while($i<1600) {
$test[]=$test2;
$i++;
}
$out=gzcompress(serialize($test));
?>
results in :
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted at
/usr/pkgsrc/lang/php5/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 1041720 bytes) in /var/www/www.chaosbutze.de/htdocs/test2.php
on line 37
while it works on php 5.1.6 and 4.
Having mem limit set to 64MB.
Setting mem limit to 128MB and increasing interations to 2260 also
causes the above mentioned error.
------------------------------------------------------------------------
[2006-11-08 20:46:33] [email]tony2001@php.net[/email]
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.
------------------------------------------------------------------------
[2006-11-08 20:33:53] nikolas dot hagelstein at gmail dot com
Description:
------------
After upgrading to php 5.2.0 im constantly receiving "PHP Fatal error:
Out of memory error" where i did not received one using 5.1.6. I
adjusted the memory limit from 64M to 256M but without any success.
PHP Fatal error: Out of memory (allocated 250871808) at
/usr/pkgsrc/www/ap-php/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 2215827 bytes) in
/var/www/shared/typo3_src-4.0.1/typo3/mod/tools/em/class.em_xmlhandler.php
on line 141, referer:
[url]http://www.chaosbutze.de/typo3/mod/tools/em/index.php?[/url]
i am not sure about how to dig into this but i can say that it seems
to be somehow xml/serialize related.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
nikolas dot hagelstein at gmail dot com Guest
-
lmiranda at lumigo dot net #8
#39438 [Com]: Memory leak PHP Fatal error: Out of memory
ID: 39438
Comment by: lmiranda at lumigo dot net
Reported By: nikolas dot hagelstein at gmail dot com
Status: Assigned
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
Assigned To: dmitry
New Comment:
I had this problem with my forum, after some time it showed:
Fatal error: Out of memory (allocated 786432) (tried to allocate
1572864 bytes)
I tried to set memory_limit from 16M to 64M, and it didn't work.
I've downgraded to 5.1.6
Previous Comments:
------------------------------------------------------------------------
[2006-11-27 12:40:24] nikolas dot hagelstein at gmail dot com
No workarounds atm i had to downgrade :|
------------------------------------------------------------------------
[2006-11-27 10:45:39] stig at 8620 dot dk
Are there current any work arounds for this problem?
My host has upgraded to 5.2.0, so I'm stuck with this problem.
------------------------------------------------------------------------
[2006-11-08 21:56:24] nikolas dot hagelstein at gmail dot com
Did some further testing:
the script worked on:
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:8mb
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:64MB
------------------------------------------------------------------------
[2006-11-08 21:40:32] nikolas dot hagelstein at gmail dot com
<?php
$i=0;
$test2=array(
'a1_teasermenu' => array(
'downloadcounter' => 2777,
'versions' => array(
'0.1.0' => array (
'title' => 'A1 Teasermenu',
'description' => 'Displays a teaser for advanced subpages
or a selection of advanced pages',
'state' => 'stable',
'reviewstate' => 0,
'category' => 'plugin',
'downloadcounter' => 2787,
'lastuploaddate' => 1088427240,
'dependencies' => array (
'depends' => array(
'typo3' =>'',
'php' =>'',
'cms' => ''
),
'conflicts' => array('' =>'')
),
'authorname' => 'Mirko Balluff',
'authoremail' => 'balluff@amt1.de',
'ownerusername' => 'amt1',
't3xfilemd5' => '3a4ec198b6ea8d0bc2d69d9b7400398f',
)
)
)
);
$test=array();
while($i<1600) {
$test[]=$test2;
$i++;
}
$out=gzcompress(serialize($test));
?>
results in :
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted at
/usr/pkgsrc/lang/php5/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 1041720 bytes) in /var/www/www.chaosbutze.de/htdocs/test2.php
on line 37
while it works on php 5.1.6 and 4.
Having mem limit set to 64MB.
Setting mem limit to 128MB and increasing interations to 2260 also
causes the above mentioned error.
------------------------------------------------------------------------
[2006-11-08 20:46:33] [email]tony2001@php.net[/email]
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.
------------------------------------------------------------------------
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/39438[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
lmiranda at lumigo dot net Guest
-
phpbugs at thequod dot de #9
#39438 [Com]: Memory leak PHP Fatal error: Out of memory
ID: 39438
Comment by: phpbugs at thequod dot de
Reported By: nikolas dot hagelstein at gmail dot com
Status: Assigned
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
Assigned To: dmitry
New Comment:
Just for info: I've experienced memory usage bumping since
somewhere after 5.2.0RC2 and current CVS.
(phpDocumentor needs more than 256M with 5.2.1-dev, but
not with 5.2.0RC3-dev)
Previous Comments:
------------------------------------------------------------------------
[2006-11-27 19:28:08] lmiranda at lumigo dot net
I had this problem with my forum, after some time it showed:
Fatal error: Out of memory (allocated 786432) (tried to allocate
1572864 bytes)
I tried to set memory_limit from 16M to 64M, and it didn't work.
I've downgraded to 5.1.6
------------------------------------------------------------------------
[2006-11-27 12:40:24] nikolas dot hagelstein at gmail dot com
No workarounds atm i had to downgrade :|
------------------------------------------------------------------------
[2006-11-27 10:45:39] stig at 8620 dot dk
Are there current any work arounds for this problem?
My host has upgraded to 5.2.0, so I'm stuck with this problem.
------------------------------------------------------------------------
[2006-11-08 21:56:24] nikolas dot hagelstein at gmail dot com
Did some further testing:
the script worked on:
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:8mb
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:64MB
------------------------------------------------------------------------
[2006-11-08 21:40:32] nikolas dot hagelstein at gmail dot com
<?php
$i=0;
$test2=array(
'a1_teasermenu' => array(
'downloadcounter' => 2777,
'versions' => array(
'0.1.0' => array (
'title' => 'A1 Teasermenu',
'description' => 'Displays a teaser for advanced subpages
or a selection of advanced pages',
'state' => 'stable',
'reviewstate' => 0,
'category' => 'plugin',
'downloadcounter' => 2787,
'lastuploaddate' => 1088427240,
'dependencies' => array (
'depends' => array(
'typo3' =>'',
'php' =>'',
'cms' => ''
),
'conflicts' => array('' =>'')
),
'authorname' => 'Mirko Balluff',
'authoremail' => 'balluff@amt1.de',
'ownerusername' => 'amt1',
't3xfilemd5' => '3a4ec198b6ea8d0bc2d69d9b7400398f',
)
)
)
);
$test=array();
while($i<1600) {
$test[]=$test2;
$i++;
}
$out=gzcompress(serialize($test));
?>
results in :
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted at
/usr/pkgsrc/lang/php5/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 1041720 bytes) in /var/www/www.chaosbutze.de/htdocs/test2.php
on line 37
while it works on php 5.1.6 and 4.
Having mem limit set to 64MB.
Setting mem limit to 128MB and increasing interations to 2260 also
causes the above mentioned error.
------------------------------------------------------------------------
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/39438[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
phpbugs at thequod dot de Guest
-
samuel at dragonboricua dot net #10
#39438 [Com]: Memory leak PHP Fatal error: Out of memory
ID: 39438
Comment by: samuel at dragonboricua dot net
Reported By: nikolas dot hagelstein at gmail dot com
Status: Assigned
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
Assigned To: dmitry
New Comment:
I started receiving this error on my WordPress blog since I upgraded to
php 5.2.0 from 5.1.6, but seems that after a refresh it goes away
(running on FastCGI on Apache). Sometimes it requires a few refreshes
for it to go away, but it is never too constant.
Previous Comments:
------------------------------------------------------------------------
[2006-11-27 20:11:36] phpbugs at thequod dot de
Just for info: I've experienced memory usage bumping since
somewhere after 5.2.0RC2 and current CVS.
(phpDocumentor needs more than 256M with 5.2.1-dev, but
not with 5.2.0RC3-dev)
------------------------------------------------------------------------
[2006-11-27 19:28:08] lmiranda at lumigo dot net
I had this problem with my forum, after some time it showed:
Fatal error: Out of memory (allocated 786432) (tried to allocate
1572864 bytes)
I tried to set memory_limit from 16M to 64M, and it didn't work.
I've downgraded to 5.1.6
------------------------------------------------------------------------
[2006-11-27 12:40:24] nikolas dot hagelstein at gmail dot com
No workarounds atm i had to downgrade :|
------------------------------------------------------------------------
[2006-11-27 10:45:39] stig at 8620 dot dk
Are there current any work arounds for this problem?
My host has upgraded to 5.2.0, so I'm stuck with this problem.
------------------------------------------------------------------------
[2006-11-08 21:56:24] nikolas dot hagelstein at gmail dot com
Did some further testing:
the script worked on:
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:8mb
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:64MB
------------------------------------------------------------------------
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/39438[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
samuel at dragonboricua dot net Guest
-
phpbugs at thequod dot de #11
#39438 [Com]: Memory leak PHP Fatal error: Out of memory
ID: 39438
Comment by: phpbugs at thequod dot de
Reported By: nikolas dot hagelstein at gmail dot com
Status: Assigned
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
Assigned To: dmitry
New Comment:
I withdraw my previous comment, the RC3-build was
without "--enable-memory-limit". Sorry.
I've found that
---------------------------------------
<?php
$i = 0;
$a = array();
while( $i++ < 100000 )
{
$a[] = 'a';
}
echo memory_get_usage();
?>
---------------------------------------
uses a lot more memory. I cannot say, if this is because
of the more accurate memory manager reporting.
I'm surprised how much memory is needed for 100.000 "a"'s
in an array..
$ php -f test2.php
9494860
daniel@base [stp:2] { ~/bugs/php/memoryusage }
$ php5 -f test2.php
6967216
--------
$ php -v
PHP 5.2.1-dev (cli) (built: Nov 27 2006 03:16:44)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend
Technologies
$ php5 -v
PHP 5.1.6 (cli) (built: Nov 2 2006 12:49:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend
Technologies
Previous Comments:
------------------------------------------------------------------------
[2006-11-29 15:35:50] samuel at dragonboricua dot net
I started receiving this error on my WordPress blog since I upgraded to
php 5.2.0 from 5.1.6, but seems that after a refresh it goes away
(running on FastCGI on Apache). Sometimes it requires a few refreshes
for it to go away, but it is never too constant.
------------------------------------------------------------------------
[2006-11-27 20:11:36] phpbugs at thequod dot de
Just for info: I've experienced memory usage bumping since
somewhere after 5.2.0RC2 and current CVS.
(phpDocumentor needs more than 256M with 5.2.1-dev, but
not with 5.2.0RC3-dev)
------------------------------------------------------------------------
[2006-11-27 19:28:08] lmiranda at lumigo dot net
I had this problem with my forum, after some time it showed:
Fatal error: Out of memory (allocated 786432) (tried to allocate
1572864 bytes)
I tried to set memory_limit from 16M to 64M, and it didn't work.
I've downgraded to 5.1.6
------------------------------------------------------------------------
[2006-11-27 12:40:24] nikolas dot hagelstein at gmail dot com
No workarounds atm i had to downgrade :|
------------------------------------------------------------------------
[2006-11-27 10:45:39] stig at 8620 dot dk
Are there current any work arounds for this problem?
My host has upgraded to 5.2.0, so I'm stuck with this problem.
------------------------------------------------------------------------
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/39438[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
phpbugs at thequod dot de Guest
-
dmitry@php.net #12
#39438 [Asn->Csd]: Memory leak PHP Fatal error: Out of memory
ID: 39438
Updated by: [email]dmitry@php.net[/email]
Reported By: nikolas dot hagelstein at gmail dot com
-Status: Assigned
+Status: Closed
Bug Type: Unknown/Other Function
Operating System: NETBSD 3.0.1 AMD64
PHP Version: 5.2.0
Assigned To: dmitry
New Comment:
Fixed in CVS HEAD and PHP_5_2.
Previous Comments:
------------------------------------------------------------------------
[2006-11-29 19:55:49] phpbugs at thequod dot de
I withdraw my previous comment, the RC3-build was
without "--enable-memory-limit". Sorry.
I've found that
---------------------------------------
<?php
$i = 0;
$a = array();
while( $i++ < 100000 )
{
$a[] = 'a';
}
echo memory_get_usage();
?>
---------------------------------------
uses a lot more memory. I cannot say, if this is because
of the more accurate memory manager reporting.
I'm surprised how much memory is needed for 100.000 "a"'s
in an array..
$ php -f test2.php
9494860
daniel@base [stp:2] { ~/bugs/php/memoryusage }
$ php5 -f test2.php
6967216
--------
$ php -v
PHP 5.2.1-dev (cli) (built: Nov 27 2006 03:16:44)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend
Technologies
$ php5 -v
PHP 5.1.6 (cli) (built: Nov 2 2006 12:49:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend
Technologies
------------------------------------------------------------------------
[2006-11-29 15:35:50] samuel at dragonboricua dot net
I started receiving this error on my WordPress blog since I upgraded to
php 5.2.0 from 5.1.6, but seems that after a refresh it goes away
(running on FastCGI on Apache). Sometimes it requires a few refreshes
for it to go away, but it is never too constant.
------------------------------------------------------------------------
[2006-11-27 20:11:36] phpbugs at thequod dot de
Just for info: I've experienced memory usage bumping since
somewhere after 5.2.0RC2 and current CVS.
(phpDocumentor needs more than 256M with 5.2.1-dev, but
not with 5.2.0RC3-dev)
------------------------------------------------------------------------
[2006-11-27 19:28:08] lmiranda at lumigo dot net
I had this problem with my forum, after some time it showed:
Fatal error: Out of memory (allocated 786432) (tried to allocate
1572864 bytes)
I tried to set memory_limit from 16M to 64M, and it didn't work.
I've downgraded to 5.1.6
------------------------------------------------------------------------
[2006-11-27 12:40:24] nikolas dot hagelstein at gmail dot com
No workarounds atm i had to downgrade :|
------------------------------------------------------------------------
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/39438[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=39438&edit=1[/url]
dmitry@php.net Guest



Reply With Quote

