ID: 47230 Updated by: j...@php.net Reported By: lneve at mail dot nih dot gov -Status: Critical +Status: Feedback Bug Type: Reproducible crash Operating System: Solaris 10 (completely patched) PHP Version: 5.3.0-beta2-dev New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-01-28 17:16:25] scott...@php.net This is a gcc optimizer bug, if you do CFLAGS="-O0" prior to compiling it you don't get a problem. I've been told SunCC works fine. ------------------------------------------------------------------------ [2009-01-28 13:40:16] lneve at mail dot nih dot gov If I build with --disable-phar it builds successfully but "make test" fails with: -bash-3.00# make test Build complete. Don't forget to run 'make test'. Bus Error - core dumped *** Error code 138 (ignored) The following command caused the error: if test ! -z "" && test -x ""; then \ TEST_PHP_EXECUTABLE= \ TEST_PHP_SRCDIR=/opt/php-5.3.0alpha3 \ CC="gcc" \ -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /opt/php-5.3.0alpha3/run-tests.php -d extension_dir=modules/ ` if test "x" != "x"; then for i in ""; do . $i; /opt/php-5.3.0alpha3/build/shtool echo -n -- " -d extension=$dlname"; done; fi; if test "x" != "x"; then for i in ""; do . $i; /opt/php-5.3.0alpha3/build/shtool echo -n -- " -d zend_extension=/opt/php-5.3.0alpha3/modules/$dlname"; done; fi` tests/; \ elif test ! -z "sapi/cli/php" && test -x "sapi/cli/php"; then \ INI_FILE=`/opt/php-5.3.0alpha3/sapi/cli/php -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \ if test "$INI_FILE"; then \ egrep -v '^(zend_)?extension(_debug)?(_ts)?[\t\ ]*=' "$INI_FILE" > /opt/php-5.3.0alpha3/tmp-php.ini; \ else \ echo > /opt/php-5.3.0alpha3/tmp-php.ini; \ fi; \ INI_SCANNED_PATH=`/opt/php-5.3.0alpha3/sapi/cli/php -d 'display_errors=stderr' -r '$a = explode(",\n", trim(php_ini_scanned_files())); echo $a[0];' 2> /dev/null`; \ if test "$INI_SCANNED_PATH"; then \ INI_SCANNED_PATH=`/opt/php-5.3.0alpha3/build/shtool path -d $INI_SCANNED_PATH`; \ egrep -h -v '^(zend_)?extension(_debug)?(_ts)?[\t\ ]*=' "$INI_SCANNED_PATH"/*.ini >> /opt/php-5.3.0alpha3/tmp-php.ini; \ fi; \ TEST_PHP_EXECUTABLE=/opt/php-5.3.0alpha3/sapi/cli/php \ TEST_PHP_SRCDIR=/opt/php-5.3.0alpha3 \ CC="gcc" \ /opt/php-5.3.0alpha3/sapi/cli/php -n -c /opt/php-5.3.0alpha3/tmp-php.ini -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /opt/php-5.3.0alpha3/run-tests.php -n -c /opt/php-5.3.0alpha3/tmp-php.ini -d extension_dir=/opt/php-5.3.0alpha3/modules/ ` if test "x" != "x"; then for i in ""; do . $i; /opt/php-5.3.0alpha3/build/shtool echo -n -- " -d extension=$dlname"; done; fi; if test "x" != "x"; then for i in ""; do . $i; /opt/php-5.3.0alpha3/build/shtool echo -n -- " -d zend_extension=/opt/php-5.3.0alpha3/modules/$dlname"; done; fi` ; \ else \ echo "ERROR: Cannot run tests without CLI sapi."; \ fi ------------------------------------------------------------------------ [2009-01-28 13:32:49] lneve at mail dot nih dot gov It's a sparc system. Is there a workaround since I don't need phar? If I add --disable-phar it builds successfully, but experiences a bus error during "make test". ------------------------------------------------------------------------ [2009-01-28 13:28:08] scott...@php.net What sort of processor do you have? There is a problem with sparc and ppc processors and phar. ------------------------------------------------------------------------ [2009-01-28 13:17:46] lneve at mail dot nih dot gov Description: ------------ Here is the relevant part of the make output: -bash-3.00# gmake Generating phar.php Bus Error - core dumped gmake: *** [ext/phar/phar.php] Error 138 Someone reported a similar bug in the previous release on the Irix OS (bug #46074). I use the vanilla Solaris gcc compiler (version 3.4.3). Here are my configure options: ./configure --with-pgsql=/opt/postgres/8.3-community --with-mysql=/opt/mysql --with-mysqli=/opt/mysql/bin/mysql_config --with-apxs2=/opt/httpd/bin/apxs --with-config-file-path=/etc --with-libxml-dir=/usr/lib --with-zlib-dir=/usr/lib --enable-zip --enable-mbstring --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-xpm-dir=/usr/lib --with-freetype-dir=/usr/sfw --with-pdo-mysql=/opt/mysql --with-pdo-pgsql=/opt/pgsql --with-gettext=/usr/local/lib --with-imap=/usr/local/imap-2007d --with-imap-ssl=/usr/local/ssl I would be happy to provide you additional debugging information. -Leif Neve ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47230&edit=1