#38124 [Com]: FATAL: erealloc(): Unable to allocate xxx bytes
| From: | mryaggi at hotmail dot com | Date: | Mon, 21 Jan 2008 11:34:45 +0000 |
| Subject: | #38124 [Com]: FATAL: erealloc(): Unable to allocate xxx bytes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121427@lists.php.net to get a copy of this message | ||
ID: 38124
Comment by: mryaggi at hotmail dot com
Reported By: boing at boing dot com
Status: No Feedback
Bug Type: DOM XML related
Operating System: openbsd 3.8
PHP Version: 5.1.4
New Comment:
I have FATAL: erealloc(): Unable to allocate 2 bytes
when doing :
imagecreatetruecolor and then imagefill
on an image I use as a brush.
if i switch imagefill for an imagefilledrectangle (with the image
dimensions) it works fine.
Config : PHP4.4.1 on IIS7
Previous Comments:
------------------------------------------------------------------------
[2006-07-26 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-07-18 13:01:49] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2006-07-18 10:51:44] boing at boing dot com
Honestly, I trimmed it down as much as possible. Most of the file is
the data it operates on. Some big, ugly (yes, that's redundant :) ) xml
file. You should see the original code. Lot's more trash in there.
Honest. :) I think the realloc() failure has something to do with the
length of the file and building the sufficiently complex nested
associative array uglyness.
Geff
------------------------------------------------------------------------
[2006-07-18 10:23:46] tony2001@php.net
>I put the reproduce code in the original bug report
Yes, I saw it. Please try to make is as smaller as you can. Currently
it's just HUGE, that's why asked for a short and complete script which
is max 20 lines long.
Please also try the latest 5.2 snapshot which you can grab at
http://snaps.php.net (wait for the next one, there was a major
change in
the memory manager recently).
------------------------------------------------------------------------
[2006-07-18 09:55:01] boing at boing dot com
tony2001@php.net,
I put the reproduce code in the original bug report. THe files are
still on my website. In addition, I don't think it's DOM XML related.
My money WAS on xml_parse in the beginning, but no longer. I think it's
on the associative arrays. :)
reproduce code again... download: http://www.boing.com/phptest.tgz
inside there is a phptest.php and a datafile. php phptest.php on
openbsd 3.8 will yield the failture to realloc. I tried it on gentoo
with successful results.
Geff
------------------------------------------------------------------------
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/38124
--
Edit this bug report at http://bugs.php.net/?id=38124&edit=1