#47980 [Com]: date Fatal error: Balloc() allocation exceeds list boundary
ID: 47980
Comment by: s dot aditya at teles dot com
Reported By: crquan at gmail dot com
Status: No Feedback
Bug Type: Date/time related
Operating System: PowerPC Linux Embedded
PHP Version: 5.2.9
Assigned To: fb-req-jani
New Comment:
Reproduced on NBSD PPC embedded with PHP 5.3.1. Any suggestions on how
to fix?
Previous Comments:
------------------------------------------------------------------------
[2009-07-17 01:00:01] 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".
------------------------------------------------------------------------
[2009-07-09 20:51:59] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2009-06-24 08:05:30] crquan at gmail dot com
I have checked compiled php-5.2.10 for powerpc-linux cross compilation,
the result is the bug still exists,
date() function is still broken through php-5.2.9 to 5.2.10, OS is
powerpc-linux embedded system.
------------------------------------------------------------------------
[2009-04-28 05:43:30] crquan at gmail dot com
Today I noticed something maybe important:
if I delete /etc/localtime, or use a UTC timezone in /etc/localtime,
the phpinfo() function would display the default timezone is UTC,
Default timezone UTC
and no errors,
my previous timezone in using is copied from
/usr/share/zoneinfo/Asia/Hong_Kong, maybe this cause the bug?
------------------------------------------------------------------------
[2009-04-16 04:59:07] crquan at gmail dot com
that's really a fatal error on powerpc linux, please help to fix it, if
you don't have that hardware, I can also help to fix it, I have greped
the problem source is in Zend/zend_strtod.c, please give some hints on
how to resolve,
Zend/zend_strtod.c:
$ grep -RsInw Balloc Zend/
Zend/zend_strtod.c:470:static Bigint * Balloc(int k)
Zend/zend_strtod.c:476: zend_error(E_ERROR, "Balloc() allocation
exceeds list boundary");
Zend/zend_strtod.c:487: zend_error(E_ERROR, "Balloc() failed to
allocate memory");
Zend/zend_strtod.c:522: r = (int*)Balloc(k);
Zend/zend_strtod.c:570: b1 = Balloc(b->k+1);
Zend/zend_strtod.c:658: b = Balloc(1);
Zend/zend_strtod.c:686: c = Balloc(k);
Zend/zend_strtod.c:757: b = Balloc(k);
Zend/zend_strtod.c:761: b = Balloc(k+1);
Zend/zend_strtod.c:839: b1 = Balloc(k1);
Zend/zend_strtod.c:922: c = Balloc(0);
Zend/zend_strtod.c:935: c = Balloc(a->k);
Zend/zend_strtod.c:1110: b = Balloc(1);
Zend/zend_strtod.c:1112: b = Balloc(2);
Zend/zend_strtod.c:1917: mhi = Balloc(mhi->k);
Zend/zend_strtod.c:2310: bd = Balloc(bd0->k);
------------------------------------------------------------------------
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/47980
--
Edit this bug report at http://bugs.php.net/?id=47980&edit=1
Thread (8 messages)