php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44408 make works, 'make test' core dumps
Submitted: 2008-03-11 17:25 UTC Modified: 2008-03-14 12:08 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: charlesg at unixrealm dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.2.5 OS: Solaris 10
Private report: No CVE-ID: None
 [2008-03-11 17:25 UTC] charlesg at unixrealm dot com
Description:
------------
Ran config like this:

./configure  --with-mysql=/usr/local/mysql --with-oci8=/usr/pkgs/oracle/product/10.2.0/Db_1 --with-openssl=/usr/local/ssl --with-apxs2=/usr/pkgs/apache/2.2.8/mendel/bin/apxs

Same synthax was used on a Solaris 10 SPARC. This is a Solaris 10 x86 platform:

  SunOS mendel 5.10 Generic_127112-07 i86pc i386 i86pc

<cgagnon@mendel> isainfo
amd64 i386

Here is the output of 'make test':

<cgagnon@mendel> make test

Build complete.
Don't forget to run 'make test'.

Segmentation Fault - core dumped
*** Error code 139 (ignored)
The following command caused the error:
if test ! -z "" && test -x ""; then \
        TEST_PHP_EXECUTABLE= \
        TEST_PHP_SRCDIR=/usr/local/src/apache/php-5.2.5 \
        CC="gcc" \
                 -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /usr/local/src/apache/php-5.2.5/run-tests.php -U -d extension_dir=modules/ `  if test "x" != "x"; then  for i in ""; do  . $i; /usr/local/src/apache/php-5.2.5/build/shtool echo -n -- " -d extension=$dlname";  done;  fi` tests/; \
elif test ! -z "sapi/cli/php" && test -x "sapi/cli/php"; then \
        INI_FILE=`/usr/local/src/apache/php-5.2.5/sapi/cli/php -r 'echo php_ini_loaded_file();'`; \
        if test "$INI_FILE"; then \
                egrep -v '^extension[\t\ ]*=' "$INI_FILE" > /usr/local/src/apache/php-5.2.5/tmp-php.ini; \
        else \
                echo > /usr/local/src/apache/php-5.2.5/tmp-php.ini; \
        fi; \
        TEST_PHP_EXECUTABLE=/usr/local/src/apache/php-5.2.5/sapi/cli/php \
        TEST_PHP_SRCDIR=/usr/local/src/apache/php-5.2.5 \
        CC="gcc" \
                /usr/local/src/apache/php-5.2.5/sapi/cli/php -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /usr/local/src/apache/php-5.2.5/run-tests.php -c /usr/local/src/apache/php-5.2.5/tmp-php.ini -U -d extension_dir=/usr/local/src/apache/php-5.2.5/modules/ `  if test "x" != "x"; then  for i in ""; do  . $i; /usr/local/src/apache/php-5.2.5/build/shtool echo -n -- " -d extension=$dlname";  done;  fi` ; \
else \
        echo "ERROR: Cannot run tests without CLI sapi."; \
fi

I tried to troubleshoot using dbx:

<cgagnon@mendel> dbx sapi/cli/php core
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.5' in your .dbxrc
Reading php
core file header read successfully
Reading ld.so.1
Reading librt.so.1
Reading libmysqlclient.so.15.0.0
Reading libsocket.so.1
Reading libnsl.so.1
Reading libm.so.2
Reading libintl.so.8.0.2
Reading libsec.so.1
Reading libc.so.1
Reading libz.so
Reading libssl.so.0.9.8
Reading libcrypto.so.0.9.8
Reading libresolv.so.2
Reading libkstat.so.1
Reading libgen.so.1
Reading libdl.so.1
Reading libsched.so.1
Reading libclntsh.so.10.1
dbx: internal warning: "(null)"::srcname(InfoOrigin_CMDLINE): value "ntcontab.c" being set to "nt.c"
Reading libxml2.so.2
Reading libpthread.so.1
Reading libiconv.so.2.4.0
Reading libaio.so.1
Reading libmd.so.1
Reading libgcc_s.so.1
Reading libavl.so.1
Reading libnnz10.so
Reading libz.so.1
Reading iso_8859_1.so.3
t@null (l@1) program terminated by signal SEGV (no mapping at the fault address)
0xfecd515f: _memcpy+0x012f:     movups   0x00000020(%esi),%xmm2
Current function is php_date_parse_tzfile
  550           tzi = timelib_parse_tzfile(formal_tzname, tzdb);
(dbx) where
  [1] _memcpy(0x8047cc1, 0x8400fe0, 0xb, 0x8043368), at 0xfecd515f
=>[2] php_date_parse_tzfile(formal_tzname = (nil), tzdb = 0x8400fe0), line 550 in "php_date.c"
  [3] get_timezone_info(), line 650 in "php_date.c"
  [4] php_format_date(format = 0x8430cf4 "Ymd_Hi", format_len = 6, ts = 0, localtime = 1), line 879 in "php_date.c"
  [5] php_date(ht = 0, return_value = (nil), return_value_ptr = (nil), this_ptr = (nil), return_value_used = 1, localtime = 1), line 864 in "php_date.c"
  [6] zend_do_fcall_common_helper_SPEC(execute_data = 0x80463a0), line 200 in "zend_vm_execute.h"
  [7] execute(op_array = (nil)), line 92 in "zend_vm_execute.h"
  [8] zend_execute_scripts(type = 8, retval = (nil), file_count = 3, ...), line 1134 in "zend.c"
  [9] php_execute_script(primary_file = 0x8046b54), line 2004 in "main.c"
  [10] main(argc = 13, argv = 0x8046bc4), line 1140 in "php_cli.c"
(dbx)



Reproduce code:
---------------
Run:

./configure  --with-mysql=/usr/local/mysql --with-oci8=/usr/pkgs/oracle/product/10.2.0/Db_1 --with-openssl=/usr/local/ssl --with-apxs2=/usr/pkgs/apache/2.2.8/mendel/bin/apxs

make

make test

on a Solaris 10 i386 machine.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-12 01:42 UTC] charlesg at unixrealm dot com
I ran the CVS snapshot and it produced a report. I will email to qa-reports@lists.php.net. Is there a way to attach it to the ticket?
 [2008-03-13 11:58 UTC] jani@php.net
Yes, it can be mailed to qa and you should then be able to find the mail at http://news.php.net/php.qa.reports or http://news.php.net/php.qa (just provide the url to it here)

But did it crash? What tests failed?
 [2008-03-13 18:31 UTC] charlesg at unixrealm dot com
I can't seem to upload the results. Yesterday I email but it got bounce back. today I let 'make test' do the upload but I don't see the report show up anywhere.

There were several tests failed:
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :   54
Exts tested     :   25
---------------------------------------------------------------------

Number of tests : 5392              3938
Tests skipped   : 1454 ( 27.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :  252 (  4.7%) (  6.4%)
Tests passed    : 3686 ( 68.4%) ( 93.6%)
---------------------------------------------------------------------
Time taken      :  646 seconds
=====================================================================

I am not sure how to pin point the ones that are relevant you and/or this ticker. The test result file is huge, probably the cause of the failured to upload (in the email it was gzipped).

I probably have another problem causing massive failures with the CSV but I don't know what that could be.

What's my best shot at getting some kind of PHP going on this system? Should I try an older version?
 [2008-03-14 12:08 UTC] jani@php.net
You could ask on some of the support channels how to install. 
Most likely you just have the usual broken Solaris tools around and should upgrade to the working GNU equivalents. Since there is no core dump anymore, this case is closed.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 14:01:35 2025 UTC