php / php-src

The PHP Interpreter
https://www.php.net
Other
37.78k stars 7.72k forks source link

Facing test issue on ppc64le architecture. #14866

Open vinodk99 opened 1 month ago

vinodk99 commented 1 month ago

Description

Facing below test failures for ppc64le:

`==================================================================== PHP : /home/tester/php-src/sapi/cli/php PHP_SAPI : cli PHP_VERSION : 8.4.0alpha1 ZEND_VERSION: 4.4.0-dev PHP_OS : Linux - Linux travis-job-vinodk99-build-scripts-623730080 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:53:30 UTC 2020 ppc64le INI actual : /home/tester/php-src More .INIs :

PHP : /home/tester/php-src/sapi/cgi/php-cgi PHP_SAPI : cgi-fcgi PHP_VERSION : 8.4.0alpha1 ZEND_VERSION: 4.4.0-dev PHP_OS : Linux - Linux travis-job-vinodk99-build-scripts-623730080 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:53:30 UTC 2020 ppc64le INI actual : /home/tester/php-src More .INIs :



PHP : /home/tester/php-src/sapi/phpdbg/phpdbg PHP_SAPI : phpdbg PHP_VERSION : 8.4.0alpha1 ZEND_VERSION: 4.4.0-dev PHP_OS : Linux - Linux travis-job-vinodk99-build-scripts-623730080 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:53:30 UTC 2020 ppc64le INI actual : /home/tester/php-src More .INIs :

CWD : /home/tester/php-src Extra dirs : VALGRIND : Not used

TIME START 2024-07-05 07:31:11

Spawning 4 workers... Done in 0.23s

FAIL Test stream_isatty with redirected STDERR [tests/output/stream_isatty_err.phpt] FAIL Test stream_isatty with redirected STDIN/STDERR [tests/output/stream_isatty_in-err.phpt] FAIL [tests/output/stream_isatty_in-out.phpt] FAIL Test stream_isatty with redirected STDOUT/STDERR [tests/output/stream_isatty_out-err.phpt] FAIL Test stream_isatty with redirected STDOUT [tests/output/stream_isatty_out.phpt] FAIL Test multiple watch elements pointing to the same watchpoint [sapi/phpdbg/tests/watch_006.phpt]

TIME END 2024-07-05 07:34:19

TEST RESULT SUMMARY

Exts skipped : 44 (opcache, xsl, dba, sockets, zip, pdo_pgsql, pcntl, readline, calendar, mysqli, odbc, gettext, ffi, enchant, sysvshm, zlib, bcmath, pdo_firebird, pdo_dblib, soap, mbstring, tidy, shmop, gd, skeleton, snmp, intl, ldap, gmp, pdo_mysql, pgsql, openssl, sysvmsg, sysvsem, pdo_odbc, zend_test, com_dotnet, curl, sodium, mysqlnd, bz2, ftp, exif, dl_test) Exts tested : 27

Number of tests : 19139 12801 Tests skipped : 6338 ( 33.1%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 6 ( 0.0%) ( 0.0%) Expected fail : 7 ( 0.0%) ( 0.1%) Tests passed : 12788 ( 66.8%) ( 99.9%)

Time taken : 188.129 seconds

===================================================================== SLOW TEST SUMMARY

(43.575 s) Compiled regex cache limit [ext/pcre/tests/cache_limit.phpt] (31.530 s) Test file_put_contents() and file_get_contents() functions with 5GB string [ext/standard/tests/file/file_get_contents_file_put_contents_5gb.phpt] (25.512 s) Test normal operation of password_hash() [ext/standard/tests/password/password_hash.phpt] (13.642 s) Bug #36365 (scandir duplicates file name at every 65535th file) [ext/standard/tests/file/bug36365.phpt] (10.149 s) Test fopen() function : variation: file uri, use include path = true [ext/standard/tests/file/fopen_variation15.phpt] (8.599 s) Test OOM on new of each class [Zend/tests/new_oom.phpt] (8.343 s) Test binary operands exposing the same behavior at compile as at run time [Zend/tests/runtime_compile_time_binary_operands.phpt] (6.037 s) Test lstat() & stat() functions: basic functionality [ext/standard/tests/file/lstat_stat_basic.phpt] (5.603 s) SKIPIF of Test fileinode() function: Variations [ext/standard/tests/file/fileinode_variation.phpt] (4.554 s) file upload greater than 2G [sapi/cli/tests/upload_2G.phpt] (4.435 s) Test that there is no arginfo/zpp mismatch [Zend/tests/arginfo_zpp_mismatch.phpt] (4.234 s) Phar: SLOW TEST bug #13727: "Number of files in the Phar" limited to 2042 [ext/phar/tests/bug13727.phpt] (3.875 s) Bug #69864 (Segfault in preg_replace_callback) [ext/pcre/tests/bug69864.phpt] (3.440 s) Bug #78010: Segmentation fault during GC [Zend/tests/bug78010.phpt] (3.271 s) crypt() function - characters > 0x80 [ext/standard/tests/strings/crypt_chars.phpt] (3.257 s) Test removed support for explicit salt option [ext/standard/tests/password/password_removed_salt_option.phpt] (3.239 s) fputcsv() with empty $escape [ext/standard/tests/file/fputcsv_variation16.phpt] (3.206 s) Bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_log) [Zend/tests/bug74093.phpt] (3.116 s) Extensive test for date_diff(). [ext/date/tests/date_diff.phpt] (3.042 s) Bug #70198 Checking liveness does not work as expected [ext/standard/tests/streams/bug70198.phpt] (2.793 s) Timeout again inside register_shutdown_function [tests/lang/045.phpt] (2.721 s) SKIPIF of Test fopen() function : variation: interesting paths, no use include path [ext/standard/tests/file/fopen_variation10-win32.phpt] (2.436 s) Test fileinode() function: usage variations - links [ext/standard/tests/file/fileinode_variation1.phpt] (2.260 s) Bug #78902: Memory leak when using stream_filter_append [ext/standard/tests/streams/bug78902.phpt] (2.041 s) proc_open() with output socketpairs [ext/standard/tests/general_functions/proc_open_sockets1.phpt] (2.037 s) Test lstat() and stat() functions: usage variations - effects changing permissions of link [ext/standard/tests/file/lstat_stat_variation15.phpt] (2.029 s) File type functions [ext/standard/tests/file/001.phpt] (2.019 s) Test lstat() and stat() functions: usage variations - effects of touch() on link [ext/standard/tests/file/lstat_stat_variation6.phpt] (2.011 s) time_nanosleep — Delay for a number of seconds and nanoseconds [ext/standard/tests/misc/time_nanosleep_basic.phpt] (2.010 s) GH-10239 (proc_close after proc_get_status always returns -1) [ext/standard/tests/general_functions/gh10239_2.phpt] (1.909 s) Bug #73837: Milliseconds in DateTime() [ext/date/tests/bug73837.phpt] (1.770 s) Bug #22414 (passthru() does not read data correctly) [ext/standard/tests/file/bug22414.phpt] (1.576 s) crypt() SHA-256 [ext/standard/tests/strings/crypt_sha256.phpt] (1.557 s) Testing register_shutdown_function() with timeout. (Bug: #21513) [tests/func/005a.phpt] (1.521 s) time_sleep_until() function - basic test for time_sleep_until() [ext/standard/tests/misc/time_sleep_until_basic.phpt] (1.476 s) function with many parameters [tests/func/010.phpt] (1.462 s) Timeout within foreach loop [tests/basic/timeout_variation_8.phpt] (1.396 s) Test get_browser() against a larger corpus [ext/standard/tests/misc/get_browser_variation3.phpt] (1.394 s) Timeout within while loop [tests/basic/timeout_variation_0.phpt] (1.356 s) Timeout within for loop [tests/basic/timeout_variation_7.phpt] (1.345 s) Bug #42369 (Implicit conversion to string leaks memory) [ext/simplexml/tests/bug42369.phpt] (1.230 s) Bug #77345 (Segmentation faults stack overflow in cyclic garbage collector) (Bug #77427) [Zend/tests/bug77345_gc_2.phpt] (1.215 s) crypt() SHA-512 [ext/standard/tests/strings/crypt_sha512.phpt] (1.200 s) Official blowfish tests (http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/crypt_blowfish/wrapper.c) [ext/standard/tests/strings/crypt_blowfish.phpt] (1.124 s) GH-10239 (proc_close after proc_get_status always returns -1) [ext/standard/tests/general_functions/gh10239_1.phpt] (1.088 s) Test lstat() and stat() functions: usage variations - effects changing permissions of file [ext/standard/tests/file/lstat_stat_variation16.phpt] (1.056 s) proc_open() with IO socketpairs [ext/standard/tests/general_functions/proc_open_sockets2.phpt] (1.052 s) Test lstat() and stat() functions: usage variations - creating file/subdir [ext/standard/tests/file/lstat_stat_variation8.phpt] (1.035 s) proc_open() with invalid pipes [ext/standard/tests/general_functions/proc_open_pipes3.phpt] (1.029 s) proc_open() with socket and pipe [ext/standard/tests/general_functions/proc_open_sockets3.phpt] (1.024 s) Test lstat() and stat() functions: usage variations - effects of touch() on dir [ext/standard/tests/file/lstat_stat_variation5.phpt] (1.022 s) proc_open() with > 16 pipes [ext/standard/tests/general_functions/proc_open_pipes1.phpt] (1.022 s) Test lstat() and stat() functions: usage variations - effects changing permissions of dir [ext/standard/tests/file/lstat_stat_variation17.phpt] (1.022 s) proc_open() with no pipes [ext/standard/tests/general_functions/proc_open_pipes2.phpt] (1.020 s) Test lstat() and stat() functions: usage variations - effect of is_file() [ext/standard/tests/file/lstat_stat_variation11.phpt] (1.019 s) Test lstat() and stat() functions: usage variations - file opened using w and r mode [ext/standard/tests/file/lstat_stat_variation13.phpt] (1.016 s) Bug #39322 (proc_terminate() losing process resource) [ext/standard/tests/general_functions/bug39322.phpt] (1.015 s) Test lstat() and stat() functions: usage variations - effects of truncate() [ext/standard/tests/file/lstat_stat_variation21.phpt] (1.014 s) Test touch() function : basic functionality [ext/standard/tests/file/touch_basic.phpt] (1.013 s) Test lstat() and stat() functions: usage variations - effects of touch() on file [ext/standard/tests/file/lstat_stat_variation4.phpt] (1.013 s) Test lstat() and stat() functions: usage variations - effects of is_dir() [ext/standard/tests/file/lstat_stat_variation10.phpt] (1.012 s) Test usleep() function [ext/standard/tests/general_functions/usleep_basic.phpt] (1.012 s) Test lstat() and stat() functions: usage variations - effects of is_link() [ext/standard/tests/file/lstat_stat_variation12.phpt] (1.010 s) Test sleep() function : basic functionality [ext/standard/tests/general_functions/sleep_basic.phpt]

===================================================================== EXPECTED FAILED TEST SUMMARY

Test open_basedir configuration [tests/security/open_basedir_linkinfo.phpt] XFAIL REASON: BUG: open_basedir cannot delete symlink to prohibited file. See also bugs 48111 and 52176. Interfaces don't set prototypes to their parent method [Zend/tests/interface_constructor_prototype_002.phpt] XFAIL REASON: X::constructor()'s prototype is set to B::construct(). Y::construct() then uses prototype to verify LSP, but misses A::construct() which has a stricter signature. Bug #67296 (filter_input doesn't validate variables) [ext/filter/tests/bug49184.phpt] XFAIL REASON: See Bug #49184 Bug #42718 (unsafe_raw filter not applied when configured as default filter) [ext/filter/tests/bug42718.phpt] XFAIL REASON: FILTER_UNSAFE_RAW not applied when configured as default filter, even with flags Bug #67167: filter_var(null,FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE) returns null [ext/filter/tests/bug67167.02.phpt] XFAIL REASON: Requires php_zval_filter to not use convert_to_string for all filters. via [ext/pdo_sqlite/tests/common.phpt] SQLite PDO Common: PDOStatement::getColumnMeta [ext/pdo_sqlite/tests/pdo_022.phpt] XFAIL REASON: This feature is not yet finalized, no test makes sense updateTimestamp never called when session data is empty [ext/session/tests/user_session_module/bug71162.phpt] XFAIL REASON: Current session module is designed to write empty session always. In addition, current session module only supports SessionHandlerInterface only from PHP 7.0.

===================================================================== FAILED TEST SUMMARY

Test stream_isatty with redirected STDERR [tests/output/stream_isatty_err.phpt] Test stream_isatty with redirected STDIN/STDERR [tests/output/stream_isatty_in-err.phpt] [tests/output/stream_isatty_in-out.phpt] Test stream_isatty with redirected STDOUT/STDERR [tests/output/stream_isatty_out-err.phpt] Test stream_isatty with redirected STDOUT [tests/output/stream_isatty_out.phpt] Test multiple watch elements pointing to the same watchpoint [sapi/phpdbg/tests/watch_006.phpt] =====================================================================`

PHP Version

PHP 8.0.30

Operating System

rhel9.3

NattyNarwhal commented 1 month ago

How are you running ./configure, and is this 8.0.30 or 8.4.0alpha1?

Building alpha1 like this on a ppc64le test system I have (S822L running Gentoo):

make distclean || \
./buildconf --force \
    && ./configure --enable-zts --disable-all --enable-debug --enable-opcache --enable-opcache-jit \
    && make -j$(nproc) \
    && make test TEST_PHP_ARGS="-q -j$(nproc)" \
    || ./sapi/cli/php -v

The only test I see that fails in the same way is sapi/phpdbg/tests/watch_006.phpt:

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    60 (bcmath, bz2, calendar, com_dotnet, ctype, curl, dba, dl_test, dom, enchant, exif, ffi, fileinfo, filter, ftp, gd, gettext, gmp, iconv, intl, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pdo, pdo_dblib, pdo_firebird, pdo_mysql, pdo_odbc, pdo_pgsql, pdo_sqlite, pgsql, phar, posix, readline, session, shmop, simplexml, skeleton, snmp, soap, sockets, sodium, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zend_test, zip, zlib)
Exts tested     :     9
---------------------------------------------------------------------

Number of tests : 19055             11240
Tests skipped   :  7815 ( 41.0%) --------
Tests warned    :     0 (  0.0%) (  0.0%)
Tests failed    :     1 (  0.0%) (  0.0%)
Expected fail   :     3 (  0.0%) (  0.0%)
Tests passed    : 11236 ( 59.0%) (100.0%)
---------------------------------------------------------------------
Time taken      : 46.536 seconds
=====================================================================

=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
Test open_basedir configuration [tests/security/open_basedir_linkinfo.phpt]  XFAIL REASON: BUG: open_basedir cannot delete symlink to prohibited file. See also
bugs 48111 and 52176.
Interfaces don't set prototypes to their parent method [Zend/tests/interface_constructor_prototype_002.phpt]  XFAIL REASON: X::__constructor()'s prototype is set to B::__construct(). Y::__construct() then
uses prototype to verify LSP, but misses A::__construct() which has a stricter
signature.
Return type check elision [ext/opcache/tests/opt/verify_return_type.phpt]  XFAIL REASON: Return types cannot be inferred through prototypes
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test multiple watch elements pointing to the same watchpoint [sapi/phpdbg/tests/watch_006.phpt]
=====================================================================