#23308 [Opn]: PHP Interpreter dies with Bus Error (Signal 10)
| From: | pavel dot may at csun dot edu | Date: | Wed, 23 Apr 2003 02:26:28 +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-38110@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:
Re: UniqID() and HAVE_GETTIMEOFDAY in main/php_config.h:
I'll try to recompile with a 64-bit C/LDFLAGS and see. First, 32-bit
compile with all the funky configure options :) (I want to give
something to the users and move on from there).
Previous Comments:
------------------------------------------------------------------------
[2003-04-22 21:22:02] pavel dot may at csun dot edu
I've forced the compiler to compile to the HPPA 1.1 spec (32-bit) with
bare -- directives for configure and all seems well. I'll try the full
ugly thing I was trying originally in a bit.
From the gmake test:
=====================================================================
TIME END 2003-04-22 16:29:40
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 80
Exts tested : 8
---------------------------------------------------------------------
Number of tests : 443
Tests skipped : 229 (51.7%)
Tests failed : 5 ( 1.1%)
Tests passed : 209 (47.2%)
---------------------------------------------------------------------
Time taken : 154 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #21131: fopen($filename, "a+") has broken position
[ext/standard/tests/file/bug21131.phpt]
Various pow() tests [ext/standard/tests/math/pow.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]
=====================================================================
(Posted to qa.php.net)
I was uncomfortable seeing so many tests fail for stuff that should
have worked.
If I may be so bold as to suggest a strategy here, I'd say have
configure check the CFLAGS/LDFLAGS environment variables and either
override them or complain bitterly (later is what I like to see, but
that is a separate issue).
For reference, here's my environment:
[277]$ set | grep "FLAGS"
CFLAGS=+DA1.1 +z -I/usr/local/include -I/usr/include
-I/usr/ccs/include
CPPFLAGS=+DA1.1 +z -I/usr/local/include -I/usr/include
-I/usr/ccs/include
LDFLAGS=+s -L/usr/local/lib -L/usr/ccs/lib -L/usr/lib
With HP's ANSI C compiler, the architechture target is defined by the
+DA1.1 or +DA2.0 or +DD64.
Unfortunately, I am still learning about Makefile, ./configure and
their bretheren, so I do not have an exact patch available.
------------------------------------------------------------------------
[2003-04-22 20:17:36] rasmus@php.net
uniqid() is only available if HAVE_GETTIMEOFDAY is defined. Did the
configure check for gettimeofday() fail on you? Check your
main/php_config.h file to see if it is defined and also your config.log
file to see if you can figure out why the configure check failed.
But, apart from the make test stuff, does it work?
------------------------------------------------------------------------
[2003-04-22 16:40:02] pavel dot may at csun dot edu
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
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/23308
--
Edit this bug report at http://bugs.php.net/?id=23308&edit=1