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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to