From:             operator at infomaniak dot ch
Operating system: linux glibc 2.2
PHP version:      4.3.6
PHP Bug Type:     Reproducible crash
Bug description:  crash when memory limit reached

Description:
------------
When memory limit is reached, this irremdiably cause a 
segfault. 
-- 
php with no extensions at all compiled with: 
    --disable-all \ 
    --with-apxs=/usr/sbin/apxs \ 
    --enable-sigchild \ 
    --disable-ipv6 \ 
    --enable-memory-limit \ 
    --with-config-file-path=/etc/httpd \ 
    --disable-static \ 
    --enable-shared \ 
    --enable-debug 
 
reproductible with any memory_limit value (tried from 512 
bytes to 8M) 

Reproduce code:
---------------
<?
$i=1;
while($i++) {
        $a .= ".";
        if (($i % 1024) == 0) {
                echo memory_get_usage() . "<br/>\n";
                flush();
        }
}
?>


Expected result:
----------------
some kind of "memory exhausted" message 

Actual result:
--------------
apache thread segfault 

-- 
Edit bug report at http://bugs.php.net/?id=28396&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28396&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28396&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28396&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28396&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28396&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28396&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28396&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28396&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28396&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28396&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28396&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28396&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28396&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28396&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28396&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28396&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28396&r=float

Reply via email to