#23308 [Opn]: PHP Interpreter dies with Bus Error (Signal 10)

From: Date: Tue, 22 Apr 2003 21:40:04 +0000
Subject: #23308 [Opn]: PHP Interpreter dies with Bus Error (Signal 10)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38092@lists.php.net to get a copy of this message
ID: 23308 User updated by: pavel dot may at csun dot edu Reported By: pavel dot may at csun dot edu Status: Open Bug Type: Reproducible crash Operating System: HP-UX 11i (11.11) PHP Version: 4.3.1 New Comment: Grabbed the latest 4.3.x-dev: [250]$ gmake test ===================================================================== CWD : /home/users0/ccs/ulairi/sources/PHP/php4-STABLE-200304221930 PHP : /home/users0/ccs/ulairi/sources/PHP/php4-STABLE-200304221930/sapi/cli/php PHP_SAPI : cli PHP_VERSION : 4.3.2-RC ZEND_VERSION: 1.3.0 PHP_OS : HP-UX INI actual : More .INIs : Extra dirs : ===================================================================== TIME START 2003-04-22 14:38:44 ===================================================================== Fatal error: Call to undefined function: uniqid() in /home/users0/ccs/ulairi/sources/PHP/php4-STABLE-200304221930/run-tests.php on line 568 gmake: *** [test] Error 255 Previous Comments: ------------------------------------------------------------------------ [2003-04-22 15:57:53] rasmus@php.net I assume this is a 64-bit box? You are probably going to have to use the CVS version. A lot of 64-bit issues were fixed since 4.3.1. See http://snaps.php.net and grab the latest 4.3 snapshot tarball. ------------------------------------------------------------------------ [2003-04-22 15:45:56] pavel dot may at csun dot edu Using: /configure --prefix=/opt/php-4.3.1 --disable-cgi --without-mysql the CLI PHP no longer dies right off the bat. However, some tests fail and some cores are still produced. Results of 'gmake test': (skipping the stuff that is not out of the oridinary) [176]$ gmake test ===================================================================== CWD : /home/users0/ccs/ulairi/sources/PHP/php-4.3.1 PHP : /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/sapi/cli/php PHP_SAPI : cli PHP_VERSION : 4.3.1 ZEND_VERSION: 1.3.0 PHP_OS : HP-UX INI actual : More .INIs : Extra dirs : ===================================================================== TIME START 2003-04-22 13:31:24 ===================================================================== FAIL Regression test [tests/lang/023.phpt] FAIL Looped regression test (may take a while) [tests/lang/024.phpt] FAIL a script should not be able to modify session.use_trans_sid [ext/session/tests/014.phpt] FAIL use_trans_sid should not affect SID [ext/session/tests/015.phpt] FAIL rewriter correctly handles attribute names which contain dashes [ext/session/tests/018.phpt] FAIL rewriter uses arg_seperator.output for modifying URLs [ext/session/tests/020.phpt] FAIL rewriter handles form and fieldset tags correctly [ext/session/tests/021.phpt] FAIL Bug #21131: fopen($filename, "a+") has broken position [ext/standard/tests/file/bug21131.phpt] FAIL Simple math tests [ext/standard/tests/math/abs.phpt] FAIL log() tests [ext/standard/tests/math/log.phpt] FAIL Various pow() tests [ext/standard/tests/math/pow.phpt] FAIL Simple math tests [ext/standard/tests/math/round.phpt] PASS Segfault on wordwrap statement bug #20927 [ext/standard/tests/strings/bug20927.phpt] sh: 20554 Bus error(coredump) FAIL Bug #20934 (htmlspecialchars returns latin1 from UTF-8) [ext/standard/tests/strings/bug20934.phpt] PASS HTML entities [ext/standard/tests/strings/htmlentities.phpt] sh: 20580 Bus error(coredump) FAIL htmlentities() test 1 (cp1252) [ext/standard/tests/strings/htmlentities01.phpt] SKIP htmlentities() test 9 (mbstring / Shift_JIS) [ext/standard/tests/strings/htmlentities09.phpt] (reason: mbstring not available) sh: 20623 Bus error(coredump) FAIL htmlentities() test 10 (default_charset / cp1252) [ext/standard/tests/strings/htmlentities10.phpt] sh: 20625 Bus error(coredump) FAIL htmlentities() test 11 (default_charset / ISO-8859-15) [ext/standard/tests/strings/htmlentities11.phpt] sh: 20627 Bus error(coredump) FAIL htmlentities() test 12 (default_charset / ISO-8859-1) [ext/standard/tests/strings/htmlentities12.phpt] sh: 20629 Bus error(coredump) FAIL htmlentities() test 13 (default_charset / EUC-JP) [ext/standard/tests/strings/htmlentities13.phpt] sh: 20631 Bus error(coredump) FAIL htmlentities() test 14 (default_charset / Shift_JIS) [ext/standard/tests/strings/htmlentities14.phpt] FAIL Test strcspn() behavior [ext/standard/tests/strings/strcspn.phpt] PASS strrev() function [ext/standard/tests/strings/strrev.phpt] sh: 20651 Memory fault(coredump) FAIL Test strspn() behavior [ext/standard/tests/strings/strspn.phpt] FAIL Test strtoupper on non-ASCII characters [ext/standard/tests/strings/strtoupper.phpt] FAIL strtotime() function [ext/standard/tests/time/002.phpt] FAIL Check for mktime with out-of-range parameters [ext/standard/tests/time/003.phpt] ===================================================================== TIME END 2003-04-22 13:34:27 ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 80 Exts tested : 8 --------------------------------------------------------------------- Number of tests : 443 Tests skipped : 229 (51.7%) Tests failed : 25 ( 5.6%) Tests passed : 189 (42.7%) --------------------------------------------------------------------- Time taken : 183 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Regression test [tests/lang/023.phpt] Looped regression test (may take a while) [tests/lang/024.phpt] a script should not be able to modify session.use_trans_sid [ext/session/tests/014.phpt] use_trans_sid should not affect SID [ext/session/tests/015.phpt] rewriter correctly handles attribute names which contain dashes [ext/session/tests/018.phpt] rewriter uses arg_seperator.output for modifying URLs [ext/session/tests/020.phpt] rewriter handles form and fieldset tags correctly [ext/session/tests/021.phpt] Bug #21131: fopen($filename, "a+") has broken position [ext/standard/tests/file/bug21131.phpt] Simple math tests [ext/standard/tests/math/abs.phpt] log() tests [ext/standard/tests/math/log.phpt] Various pow() tests [ext/standard/tests/math/pow.phpt] Simple math tests [ext/standard/tests/math/round.phpt] Bug #20934 (htmlspecialchars returns latin1 from UTF-8) [ext/standard/tests/strings/bug20934.phpt] htmlentities() test 1 (cp1252) [ext/standard/tests/strings/htmlentities01.phpt] htmlentities() test 4 (setlocale / ja_JP.EUC-JP) [ext/standard/tests/strings/htmlentities04.phpt] htmlentities() test 10 (default_charset / cp1252) [ext/standard/tests/strings/htmlentities10.phpt] htmlentities() test 11 (default_charset / ISO-8859-15) [ext/standard/tests/strings/htmlentities11.phpt] htmlentities() test 12 (default_charset / ISO-8859-1) [ext/standard/tests/strings/htmlentities12.phpt] htmlentities() test 13 (default_charset / EUC-JP) [ext/standard/tests/strings/htmlentities13.phpt] htmlentities() test 14 (default_charset / Shift_JIS) [ext/standard/tests/strings/htmlentities14.phpt] Test strcspn() behavior [ext/standard/tests/strings/strcspn.phpt] Test strspn() behavior [ext/standard/tests/strings/strspn.phpt] Test strtoupper on non-ASCII characters [ext/standard/tests/strings/strtoupper.phpt] strtotime() function [ext/standard/tests/time/002.phpt] Check for mktime with out-of-range parameters [ext/standard/tests/time/003.phpt] ===================================================================== Please allow this report to be send to the PHP QA team. This will give us a better understanding in how PHP's test cases are doing. (choose "s" to just save the results to a file)? [Yns]: y Please enter your email address. (You address will be mangled so that it will not go out on any mailinglist in plain text): pavel.may@csun.edu sh: automake: not found. sh: autoconf: not found. sh: bison: not found. /bin/sh: 19886 Bus error(coredump) gmake: *** [test] Error 138 ------------------------------------------------------------------------ [2003-04-22 15:03:34] pavel dot may at csun dot edu Environment first: OS - HP-UX 11.11 (11i) C compiler: HP-UX ANSI C v B.11.11.06 with PHSS_28706 patch PHP: 4.3.1 ./configure arguments: --prefix=/opt/php-4.3.1 --enable-sigchild --with-openssl=/opt/openssl-0.9.7b --with-zlib --with-flatfile --with-mysql=/usr/MySQL-3.23.55 --disable-cgi CFLAGS: +DD64 +z -I/usr/local/include -I/usr/include -I/usr/ccs/include -I/opt/include -g LDFLAGS: +s +z +DD64 -L/lib/pa20_64 -L/opt/lib/pa20_64 -L/usr/local/lib -L/usr/ccs/lib -L/usr/lib ZLib version: 1.1.4 OpenSSL version: 0.9.7b MySQL version: 3.23.55 (binary install) GDB backtrace: [149]$ /opt/langtools/bin/gdb php core Detected 64-bit executable. Invoking /opt/langtools/bin/gdb64. HP gdb 3.1 for PA-RISC 2.0 (wide), HP-UX 11.00. Copyright 1986 - 2001 Free Software Foundation, Inc. Hewlett-Packard Wildebeest 3.1 (based on GDB) is covered by the GNU General Public License. Type "show copying" to see the conditions to change it and/or distribute copies. Type "show warranty" for warranty/support. .. Core was generated by `php'. Program terminated with signal 10, Bus error. warning: The shared libraries were not privately mapped; setting a breakpoint in a shared library will not work until you rerun the program. #0 0x400000000027b138 in OnUpdateInt (entry=0x80000001000d81c8, new_value=0x8000000100000478 "-1", new_value_length=2, mh_arg1=0x8c <Address 0x8c out of bounds>, mh_arg2=0x8000000100060580 "", mh_arg3=0x0, stage=1) at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/Zend/zend_ini.c:444 444 *p = zend_atoi(new_value, new_value_length); (gdb) bt #0 0x400000000027b138 in OnUpdateInt (entry=0x80000001000d81c8, new_value=0x8000000100000478 "-1", new_value_length=2, mh_arg1=0x8c <Address 0x8c out of bounds>, mh_arg2=0x8000000100060580 "", mh_arg3=0x0, stage=1) at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/Zend/zend_ini.c:444 #1 0x40000000000c9d90 in OnUpdate_zlib_output_compression_level (entry=0x80000001000d81c8, new_value=0x8000000100000478 "-1", new_value_length=2, mh_arg1=0x8c <Address 0x8c out of bounds>, mh_arg2=0x8000000100060580 "", mh_arg3=0x0, stage=1) at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/ext/zlib/zlib.c:170 #2 0x400000000027a290 in zend_register_ini_entries (ini_entry=0x8000000100000698, module_number=12) at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/Zend/zend_ini.c:157 #3 0x40000000000c9f68 in zm_startup_zlib (type=1, module_number=12) at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/ext/zlib/zlib.c:218 #4 0x400000000026a4e4 in zend_startup_module (module=0x8000000100000298) at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/Zend/zend_API.c:1008 #5 0x4000000000206ba4 in php_startup_extensions (ptr=0x800000010001dfa8, count=12) at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/main/main.c:986 #6 0x400000000028c354 in php_startup_internal_extensions () at main/internal_functions_cli.c:73 #7 0x40000000002073b4 in php_module_startup (sf=0x800000010001de88, additional_modules=0x0, num_additional_modules=0) at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/main/main.c:1151 #8 0x4000000000289b7c in main (argc=1, argv=0x800003ffff7f0ac8) at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/sapi/cli/php_cli.c:481 (gdb) quit ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23308&edit=1

« previous php.bugs (#38092) next »