From: stolen dot data dot net at gmail dot com Operating system: openbsd PHP version: 5.3.1 PHP Bug Type: Compile Failure Bug description: abnormal memory consumption during build of 5.3.1 (and 5.3.0)
Description: ------------ tried to migrate from 5.2.10 to 5.3.1 today on my server running openbsd 4.6. building php 5.3.1 (as well as 5.3.0) eats an abnormal amount of memory - far more than 750mb - actually leading to my machine being exhausted and crashing beyond recovery. it's equipped with 512mb of RAM and has 256mb of swap available, but even this was not enough. at a certain stage in compiling, all of it is consumed in less than 2-3 seconds, even when running in single-user mode to have as much of the memory as possible free and available. this does not happen with the 5.2.x branch (i even tried the latest 5.2.13). it does not even come close to using 300mb of RAM during building, using the exact same configuration parameters. Reproduce code: --------------- ./configure --prefix=/usr/opt/php --with-apxs=/usr/opt/apache/bin/apxs --enable-sqlite-utf8 --with-zlib --with-mcrypt --enable-mbstring --disable-xmlreader --disable-xmlwriter --without-pear --disable-libxml --disable-dom --disable-simplexml --disable-xml --disable-phar make Expected result: ---------------- well... Actual result: -------------- beyond 750mb of ram required; machine crashes when swap memory is exhausted -- Edit bug report at http://bugs.php.net/?id=51158&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51158&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51158&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51158&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51158&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51158&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51158&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51158&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51158&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51158&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51158&r=support Expected behavior: http://bugs.php.net/fix.php?id=51158&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51158&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51158&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51158&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51158&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51158&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51158&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51158&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51158&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51158&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51158&r=mysqlcfg
