Re: memory manager panic
| From: | Michael Wallner | Date: | Mon, 13 Nov 2006 09:20:11 +0000 |
| Subject: | Re: memory manager panic | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26531@lists.php.net to get a copy of this message | ||
Hi Tony,
>
> Mike, please make sure you didn't forget to do
cvs up Zend
> and
> ./cvsclean to get a clean build.
> I can't reproduce it with your test case, though.
It is generated from a clean build.
I'd appreciate if you could try to replicate it with the following shell script:
---
#!/bin/bash
# adjust these values
BYTES=210000
INTVL=50
LIMIT=500000
#
RTVAL=0
START=$BYTES
while test $RTVAL == "0"
do
sapi/cli/php -dmemory_limit=$LIMIT -r"leak($BYTES);" >/dev/null 2>&1;
RTVAL=$?;
if test $RTVAL == "255";
then
if test $START == $BYTES;
then
echo "Initial BYTES ($START) too big";
else
echo "Intervall ($INTVL) too big";
fi;
exit;
fi;
BYTES=expr $BYTES + $INTVL;
if test $BYTES == $LIMIT;
then
echo "Huh? Reached LIMIT ($LIMIT)";
exit;
fi;
done;
echo "SEGV at $BYTES bytes alloc";
---
--
Michael