From: lordsabre at hotmail dot com Operating system: Freebsd 4.9 & freebsd 6.3 AMD64 PHP version: 5.2.8 PHP Bug Type: Reproducible crash Bug description: SPL and apache module crash in SSL
Description: ------------ Freebsd 4.9 Apache 2.0.59 php 5.2.8 Upgrading for new install of php 5.2.8 causes a general fault in the SSL apache engine, resulting in a core dump. It is noted that when the server is started in non SSL mode the server starts and no core dump. However, $_post causes a php error of out of memory. Tracing back it comes from the array table SPL. The same exact configuration was used for 5.2.6 which is not experiencing this problem. Recompiled and install 5.2.6 as a work around. The config is as follows: ./configure --prefix=/usr/local/php --mandir=/usr/share/man --enable-force-cgi-redirect --with-openssl=/usr/local/ssl --with-mysql=/usr/local/mysql --with-mysql-sock=/var/mysqlsocket/mysql.sock --with-apxs2=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local/libjpeg --with-png-dir=/usr/local/libpng --with-zlib-dir=/usr/local/zlib --with-gd --with-freetype-dir=/usr/local/freetype --with-config-file-path=/usr/local/php/etc --with-iconv=/usr/local/libiconv -with-mcrypt=/usr/local/libmcrypt --with-libxml-dir=/usr/local/libxml --with-imap=/usr/local/imapclient --with-imap-ssl --disable-ipv6 --with-curl=/usr/local/curl --enable-bcmath --enable-ftp Tried the same on a newer machine: Freebsd 6.3 AMD64 apache 2.2.9 Compiled 5.2.8 and same exact results as 4.9. Core dump. Interesting aspect there is absolutely no information other than using gdb to step through apache. Slight different config. Because of package locations. ./configure --prefix=/usr/local/php --mandir=/usr/share/man --enable-force-cgi-redirect --with-openssl=/usr --with-mysql=/usr/local/mysql --with-mysql-sock=/var/socket/mysqlsocket --with-apxs2=/usr/local/apache/sbin/apxs --with-jpeg-dir=/usr/local/libjpeg --with-png-dir=/usr/local/libpng --with-zlib-dir=/usr/local/zlib --with-gd --with-freetype-dir=/usr/local/freetype --with-config-file-path=/usr/local/php/etc --with-libxml-dir=/usr/local/libxml --with-iconv=/usr/local/libiconv --with-curl=/usr/local/curl --with-mcrypt=/usr/local/mcrypt --with-imap=/usr/local/imapclient --with-imap-ssl --disable-ipv6 --with-ftp During the tests this failure of 5.2.8 during make test was observed. SPL: ArrayObject::__construct basic usage with ArrayObject::ARRAY_AS_PROPS. [ext/spl/tests/arrayObject___construct_basic4.phpt] SPL: ArrayObject::__construct basic usage with ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS. [ext/spl/tests/arrayObject___construct_basic5.phpt] SPL: ArrayObject::exchangeArray() basic usage with object as underlying data store. [ext/spl/tests/arrayObject_exchangeArray_basic3.phpt] SPL: ArrayObject::setFlags basic usage with ArrayObject::ARRAY_AS_PROPS. [ext/spl/tests/arrayObject_setFlags_basic1.phpt] Reproduce code: --------------- None required. See above Expected result: ---------------- See description core dump Actual result: -------------- See description. not overly long. No field for this part: Also note http://www.freebsd.org/cgi/ports.cgi?query=php+&stype=all&sektion=lang, there a number of files/patches for 5.2.8 that is not included or shown in php. I have not retested with the patches, since php should compile and operate out of the box. Not everyone agrees with the changes of directory structure in Freebsd. -- Edit bug report at http://bugs.php.net/?id=47505&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47505&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47505&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47505&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47505&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47505&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47505&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47505&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47505&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47505&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47505&r=support Expected behavior: http://bugs.php.net/fix.php?id=47505&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47505&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47505&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47505&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47505&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47505&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47505&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47505&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47505&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47505&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47505&r=mysqlcfg