From: fly-away at user dot i dot zabor dot com Operating system: Freebsd 6.1-7.0 PHP version: 5.2CVS-2008-02-12 (snap) PHP Bug Type: Reproducible crash Bug description: php-5.2.5 and 5.2-dev crashes with zend on freebsd
Description: ------------ Try it on Freebsd 6.1, 6.2 i386, Freebsd-7.0-amd64 >From ports with freebsd related patches and without. I try php-5.2.5 and php5.2-dev snap 11Feb2008. ZendOptimizer-3.3.0a-freebsd6.0-i386 (amd64). php-cgi crashes and write core Program terminated with signal 11, Segmentation fault. Reproduce code: --------------- $ ./configure --with-layout=GNU --with-config-file-scan-dir=/usr/local/etc/php --disable-all --enable-libxml --with-libxml-dir=/usr/local --enable-reflectio n --program-prefix= --enable-fastcgi --with-regex=php --with-zend-vm=CALL --enable-zend-multibyte --disable-ipv6 --prefix=/usr/local --mandir=/ usr/local/man --infodir=/usr/local/info/ i386-portbld-freebsd6.2 $ cat php.ini [Zend] zend_optimizer.optimization_level=15 zend_extension_manager.optimizer="/usr/local/lib/php/20060613/Optimizer" zend_extension_manager.optimizer_ts="/usr/local/lib/php/20060613/Optimizer_TS" zend_extension="/usr/local/lib/php/20060613/ZendExtensionManager.so" zend_extension_ts="/usr/local/lib/php/20060613/ZendExtensionManager_TS.so" $ php-cgi -m Actual result: -------------- # work/php5.2-200802111130/sapi/cgi/php-cgi -m [PHP Modules] cgi-fcgi date libxml Reflection standard Zend Optimizer [Zend Modules] Zend Extension Manager Zend Optimizer Segmentation fault (core dumped) At now php5.2.5+zend can't work on all my freebsd servers. # gdb work/php5.2-200802111130/sapi/cgi/php-cgi php-cgi.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)... Core was generated by `php-cgi'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libcrypt.so.3...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypt.so.3 Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done. Loaded symbols for /lib/libm.so.4 Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libxml2.so.5 Reading symbols from /lib/libz.so.3...(no debugging symbols found)...done. Loaded symbols for /lib/libz.so.3 Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libiconv.so.3 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x08163247 in module_destructor () (gdb) bt #0 0x08163247 in module_destructor () #1 0x08169614 in zend_hash_apply_deleter () #2 0x081696a3 in zend_hash_graceful_reverse_destroy () #3 0x0815e0d2 in zend_shutdown () #4 0x08115e34 in php_module_shutdown () #5 0x081eb486 in main () I cant run php compiled with debug with zendoptimizer for more informational backtrace. -- Edit bug report at http://bugs.php.net/?id=44104&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44104&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44104&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44104&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44104&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44104&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44104&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44104&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44104&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44104&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44104&r=support Expected behavior: http://bugs.php.net/fix.php?id=44104&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44104&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44104&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44104&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44104&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44104&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44104&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44104&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44104&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44104&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44104&r=mysqlcfg
