php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50514 failure while running make test
Submitted: 2009-12-18 09:53 UTC Modified: 2010-01-05 05:18 UTC
From: pushpender007 at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2SVN-2009-12-18 (snap) OS: SUSE Enterprise Server s390x
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pushpender007 at gmail dot com
New email:
PHP Version: OS:

 

 [2009-12-18 09:53 UTC] pushpender007 at gmail dot com
Description:
------------
php make test fails with below error.
/bin/sh: line 1:  9257 Segmentation fault      TEST_PHP_EXECUTABLE=/usr/src/php5.2-200912180730/sapi/cli/php TEST_PHP_SRCDIR=/usr/src/php5.2-200912180730 CC="gcc" /usr/src/php5.2-200912180730/sapi/cli/php -n -c /usr/src/php5.2-200912180730/tmp-php.ini -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /usr/src/php5.2-200912180730/run-tests.php -n -c /usr/src/php5.2-200912180730/tmp-php.ini -d extension_dir=/usr/src/php5.2-200912180730/modules/ ` if test "x/usr/src/php5.2-200912180730/modules/wddx.la" != "x"; then for i in /usr/src/php5.2-200912180730/modules/wddx.la""; do . $i; /usr/src/php5.2-200912180730/build/shtool echo -n -- " -d extension=$dlname"; done; fi; if test "x" != "x"; then for i in ""; do . $i; /usr/src/php5.2-200912180730/build/shtool echo -n -- " -d zend_extension=/usr/src/php5.2-200912180730/modules/$dlname"; done; fi`
make: [test] Error 139 (ignored)

Reproduce code:
---------------
complied with following options
./configure \
--with-apxs2=/usr/local/apache/bin/apxs \
--disable-debug \
--enable-ftp \
--libdir=lib64 \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstring \
--enable-wddx=shared \
--enable-xml \
--with-gd \
--with-gettext \
--with-mysql=/usr/local/mysql \
--with-regex=system \
--with-zlib-dir=/usr/local/lib \
--with-jpeg-dir=/usr/local/lib

Expected result:
----------------
make install should not give any error.

Actual result:
--------------
make test failing with following output.
/bin/sh: line 1:  9257 Segmentation fault      TEST_PHP_EXECUTABLE=/usr/src/php5.2-200912180730/sapi/cli/php TEST_PHP_SRCDIR=/usr/src/php5.2-200912180730 CC="gcc" /usr/src/php5.2-200912180730/sapi/cli/php -n -c /usr/src/php5.2-200912180730/tmp-php.ini -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' /usr/src/php5.2-200912180730/run-tests.php -n -c /usr/src/php5.2-200912180730/tmp-php.ini -d extension_dir=/usr/src/php5.2-200912180730/modules/ ` if test "x/usr/src/php5.2-200912180730/modules/wddx.la" != "x"; then for i in /usr/src/php5.2-200912180730/modules/wddx.la""; do . $i; /usr/src/php5.2-200912180730/build/shtool echo -n -- " -d extension=$dlname"; done; fi; if test "x" != "x"; then for i in ""; do . $i; /usr/src/php5.2-200912180730/build/shtool echo -n -- " -d zend_extension=/usr/src/php5.2-200912180730/modules/$dlname"; done; fi`
make: [test] Error 139 (ignored)

Though php -version comes fines.

adeonline:/usr/src/php5.2-200912180730 # /usr/src/php5.2-200912180730/sapi/cli/php -version
PHP 5.2.13-dev (cli) (built: Dec 18 2009 04:34:06)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies


my gcc version to compile php is 
adeonline:/usr/src/php5.2-200912180730 # gcc -v
Using built-in specs.
Target: s390x-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --program-suffix= --enable-version-specific-runtime-libs --without-system-libunwind --with-tune=z9-109 --with-arch=z900 --with-long-double-128 --host=s390x-suse-linux
Thread model: posix
gcc version 4.1.2 20070115 (SUSE Linux)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-18 10:10 UTC] jani@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2009-12-18 10:53 UTC] pushpender007 at gmail dot com
I found this after enabling debug.

Test imagecolorallocate() function : usage variations  - passing different data types to fourth argument [ext/gd/tests/imagecolorallocate_variation4.phpt]
Bug #45923 (mb_st[r]ripos() offset not handled correctly) [ext/mbstring/tests/bug45923.phpt]
mb_stripos() [ext/mbstring/tests/mb_stripos.phpt]
Test mb_stripos() function : basic functionality [ext/mbstring/tests/mb_stripos_basic.phpt]
Test mb_stripos() function : basic functionality [ext/mbstring/tests/mb_stripos_basic2.phpt]
Test mb_stripos() function : usage variations - pass different data types as $needle arg [ext/mbstring/tests/mb_stripos_variation2.phpt]
Test mb_stripos() function : usage variations - pass different data types as $offset arg [ext/mbstring/tests/mb_stripos_variation3.phpt]
Test mb_stripos() function : usage variations - pass different data types as $encoding arg [ext/mbstring/tests/mb_stripos_variation4.phpt]
Test mb_stripos() function : usage variations - Pass different integers as $offset argument [ext/mbstring/tests/mb_stripos_variation5_Bug45923.phpt]
Test mb_stristr() function : basic functionality [ext/mbstring/tests/mb_stristr_basic.phpt]
Test mb_stristr() function : usage variation - different values for part [ext/mbstring/tests/mb_stristr_variation3.phpt]
Test mb_stristr() function : usage variation - multiple needles [ext/mbstring/tests/mb_stristr_variation5.phpt]
Test mb_strrichr() function : basic functionality [ext/mbstring/tests/mb_strrichr_basic.phpt]
Test mb_strrichr() function : usage variation - different values for part [ext/mbstring/tests/mb_strrichr_variation3.phpt]
Test mb_strrichr() function : usage variation - multiple needles [ext/mbstring/tests/mb_strrichr_variation5.phpt]
Test mb_strripos() function : basic functionality [ext/mbstring/tests/mb_strripos_basic.phpt]
Test mb_strripos() function : basic functionality [ext/mbstring/tests/mb_strripos_basic2.phpt]
Test mb_strripos() function : usage variations - pass different data types as $needle arg [ext/mbstring/tests/mb_strripos_variation2.phpt]
Test mb_strripos() function : usage variations - pass different data types as $offset arg [ext/mbstring/tests/mb_strripos_variation3_Bug45923.phpt]
Test mb_strripos() function : usage variations - pass different data types as $encoding arg [ext/mbstring/tests/mb_strripos_variation4.phpt]
Test mb_strripos() function : usage variations - Pass different integers as $offset argument [ext/mbstring/tests/mb_strripos_variation5_Bug45923.phpt]
mysql_fetch_array [ext/mysql/tests/002.phpt]
mysql_fetch_object [ext/mysql/tests/003.phpt]
via [ext/pdo_sqlite/tests/common.phpt]
        SQLite PDO Common: Bug #34630 (inserting streams as LOBs) [ext/pdo_sqlite/tests/bug_34630.phpt]
via [ext/pdo_sqlite/tests/common.phpt]
        SQLite PDO Common: Bug #39398 (Booleans are not automatically translated to integers) [ext/pdo_sqlite/tests/bug_39398.phpt]
via [ext/pdo_sqlite/tests/common.phpt]
        SQLite PDO Common: Bug #39656 (Crash when calling fetch() on a PDO statment object after closeCursor()) [ext/pdo_sqlite/tests/bug_39656.phpt]
Testing PDOStatement::debugDumpParams() with bound params [ext/pdo_sqlite/tests/debugdumpparams_001.phpt]
via [ext/sqlite/tests/pdo/common.phpt]
        SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs) [ext/sqlite/tests/pdo/bug_34630.phpt]
Test var_dump() function [ext/standard/tests/general_functions/var_dump_64bit.phpt]
Test decbin function : 64bit long tests [ext/standard/tests/math/decbin_basiclong_64bit.phpt]
Test dechex function : 64bit long tests [ext/standard/tests/math/dechex_basiclong_64bit.phpt]
Test decoct function : 64bit long tests [ext/standard/tests/math/decoct_basiclong_64bit.phpt]
Test split() function : usage variations  - out-of-range values for limit [ext/standard/tests/reg/split_variation_004.phpt]
Test spliti() function : usage variations  - out-of-range values for limit [ext/standard/tests/reg/spliti_variation_004.phpt]
Bug #38770 (unpack() broken with longs on 64 bit machines) [ext/standard/tests/strings/bug38770.phpt]
Test chunk_split() function : usage variations - unexpected values for 'chunklen' argument(Bug#42796) [ext/standard/tests/strings/chunk_split_variation2.phpt]
Test chunk_split() function : usage variations - different integer values for 'chunklen' argument(Bug#42796) [ext/standard/tests/strings/chunk_split_variation5.phpt]
Test chunk_split() function : usage variations - different integer values for 'chunklen' with heredoc string as 'str'(Bug#42796) [ext/standard/tests/strings/chunk_split_variation8.phpt]
HTML entities with invalid chars [ext/standard/tests/strings/htmlentities-utf.phpt]
Test setlocale() function : usage variations - Setting all available locales in the platform [ext/standard/tests/strings/setlocale_variation2.phpt]
substr_compare() [ext/standard/tests/strings/substr_compare.phpt]
Test vprintf() function : usage variations - unsigned formats with unsigned values [ext/standard/tests/strings/vprintf_variation15_64bit.phpt]
Test vsprintf() function : usage variations - unsigned formats with unsigned values [ext/standard/tests/strings/vsprintf_variation15_64bit.phpt]
xmlwriter_write_attribute_ns with missing param [ext/xmlwriter/tests/xmlwriter_write_attribute_ns_error_001.phpt]
=====================================================================

=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
output buffering - fatalism [tests/output/ob_011.phpt]
ob_start(): Ensure unerasable buffer cannot be flushed by ob_flush() [tests/output/ob_start_basic_unerasable_005.phpt]
SPL: ArrayObject::exchangeArray() basic usage with object as underlying data store. [ext/spl/tests/arrayObject_exchangeArray_basic3.phpt]
=====================================================================

You may have found a problem in PHP.
We would like to send this report automatically to the
PHP QA team, to give us a better understanding of how
the test cases are doing. If you don't want to send it
immediately, you can choose "s" to save the report to
a file that you can send us later.
Do you want to send this report now? [Yns]: Yns
 [2009-12-18 11:10 UTC] jani@php.net
That is totally useless, we really need to know WHY they failed. Check the *.diff files, might give some hint. Or you could simply post the results and provide link to them via http://news.php.net/php.qa.reports

 [2009-12-18 14:28 UTC] pushpender007 at gmail dot com
I have uploaded all the diff files I have found in my php src directory.I dont know how to upload to that php directory.
Please take files from this link.
http://pushpender007.byethost6.com/diff.tar
Thanks
 [2009-12-18 18:19 UTC] jani@php.net
Try this (exactly!) configure line instead:

# rm config.cache && \
./configure \
--disable-cgi \
--libdir=lib64 \
--enable-mbstring \
--enable-xml \
--with-gd \
--with-gettext \
--with-mysql=/usr/local/mysql \
--with-zlib-dir=/usr/local/ \
--with-jpeg-dir=/usr/local/


 [2009-12-18 22:05 UTC] pushpender007 at gmail dot com
Still not able to run make test successfully.
Please find new archive file
http://pushpender007.byethost6.com/archive.tar
 [2009-12-21 10:30 UTC] jani@php.net
Seems like the tests fail just because you have some exotic ini settings there. Try delete your php.ini before running the tests. And to avoid the crash, don't use --with-regex=system and --enable-inline-optimization options. (either of those caused the crash, I'm guessing..)
 [2009-12-21 18:12 UTC] pushpender007 at gmail dot com
I am still getting errors.
Please check http://pushpender007.byethost6.com/archive1.tar for new diff files.
Thanks
 [2009-12-22 09:00 UTC] jani@php.net
Those diffs alone are meaningless. Use the 'save results' option in the end instead and provide that. Or rather send it straight away to the mailing list like suggested.
 [2009-12-22 10:15 UTC] pushpender007 at gmail dot com
Can you please tell the file name of that result file? thanks
 [2009-12-22 10:42 UTC] pushpender007 at gmail dot com
I have mailed the test report to the qa-reports@lists.php.net and also uploaded to http://pushpender007.byethost6.com/php_test_results_20091222_0527.txt .Please check them.thanks
 [2009-12-22 13:39 UTC] jani@php.net
Well that explained a lot. First of all: You're testing 5.2.3? We're at 5.2.12 already, upgrade.. And next issue: Any tests failing fail also for me so nothing unexpected, we know about it, move along, nothing to see here..
 [2009-12-22 15:16 UTC] pushpender007 at gmail dot com
This is new result file with version 5.2.12.
http://pushpender007.byethost6.com/php_test_results_20091222_1455.txt
As you saying you are facing these errors too.Should I install as it is ,ignoring error?
 [2010-01-05 05:18 UTC] pushpender007 at gmail dot com
Hello ..Can you please confirm should I continue my installation or what else solution we have for the error in make test?
Thanks
 [2011-01-11 20:44 UTC] ashworth at us dot ibm dot com
has anyone solved this yet?  I cannot get past the phar issue without error, regardless of the version I use.
 [2011-01-12 01:54 UTC] ashworth at us dot ibm dot com
I added --enable-debug and things seem to be working fine now.
 [2011-01-14 14:56 UTC] ashworth at us dot ibm dot com
I exported CFLAGS=-01 and that did not help.

I modified my Makefile since gcc was complaining about -01.

Changes to Makefile:
    removed -01 from CFLAGS_CLEAN
    added -01 to CFLAGS
    and left the exported CFLAGS set with -01

Compile completed successfully and make test worked as expected.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 10:01:32 2025 UTC