Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 942610

Summary: dev-lang/php-8.3.13 fails tests
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: PHP Bugs <php-bugs>
Status: CONFIRMED ---    
Severity: normal CC: mjo
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/php/php-src/issues/13696
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.xz
php-test-logs.xz

Description Agostino Sarubbo gentoo-dev 2024-10-31 15:15:19 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/php-8.3.13 fails tests.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-10-31 15:15:21 UTC
Created attachment 907482 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-10-31 15:15:22 UTC
Error(s) that match a know pattern:


EXPECTED FAILED TEST SUMMARY
FAIL Bug #48147 (iconv with //IGNORE cuts the string) [ext/iconv/tests/bug48147.phpt] 
FAIL Bug #51059 crypt() segfaults on certain salts [ext/standard/tests/strings/bug51059.phpt] 
FAIL Bug #52211 (iconv() returns part of string on error) [ext/iconv/tests/bug52211.phpt] 
FAIL Bug #53251 (bindtextdomain with null dir doesn't return old value) [ext/gettext/tests/bug53251.phpt] 
FAIL Bug #76249 (stream filter convert.iconv leads to infinite loop on invalid sequence) [ext/iconv/tests/bug76249.phpt] 
FAIL EUC-JP to ISO-2022-JP [ext/iconv/tests/eucjp2iso2022jp.phpt] 
FAIL Gettext basic test with en_US locale that should be on nearly every system [ext/gettext/tests/gettext_basic-enus.phpt] 
FAIL Official blowfish tests (http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/crypt_blowfish/wrapper.c) [ext/standard/tests/strings/crypt_blowfish.phpt] 
FAIL Test BCRYPT with invalid algorithm [ext/standard/tests/crypt/bcrypt_invalid_algorithm.phpt] 
FAIL Test BCRYPT with invalid cost [ext/standard/tests/crypt/bcrypt_invalid_cost.phpt] 
FAIL Test Blowfish crypt() does not fall back to DES when rounds are not specified,
FAIL Test Blowfish crypt() with invalid rounds [ext/standard/tests/strings/crypt_blowfish_variation1.phpt] 
FAIL Test DES with invalid fallback [ext/standard/tests/crypt/des_fallback_invalid_salt.phpt] 
FAIL Test dcgettext() functionality [ext/gettext/tests/gettext_dcgettext.phpt] 
FAIL Test dgettext() functionality [ext/gettext/tests/gettext_dgettext.phpt] 
FAIL Test if bindtextdomain() returns string id if no directory path is set(if directory path is 'null') [ext/gettext/tests/gettext_bindtextdomain-cwd.phpt] 
FAIL Test if dngettext() returns the correct translations (optionally plural). [ext/gettext/tests/gettext_dngettext-plural.phpt] 
FAIL Test ngettext() functionality [ext/gettext/tests/gettext_ngettext.phpt] 
FAIL bcrypt correctly rejects salts containing $ [ext/standard/tests/crypt/bcrypt_salt_dollar.phpt] 
FAIL crypt() SHA-256 [ext/standard/tests/strings/crypt_sha256.phpt] 
FAIL crypt() SHA-512 [ext/standard/tests/strings/crypt_sha512.phpt] 
FAIL iconv_mime_encode() [ext/iconv/tests/iconv_mime_encode.phpt] 
FAIL test if bind_textdomain_codeset() returns correct value [ext/gettext/tests/gettext_bind_textdomain_codeset-retval.phpt] 
FAILED TEST SUMMARY
PASS Aborted yield during nested calls [Zend/tests/generators/aborted_yield_during_nested_fcalls.phpt] 
PASS Aborted yield during object instantiation [Zend/tests/generators/aborted_yield_during_new.phpt] 
PASS Aborted yield during switch [Zend/tests/generators/aborted_yield_during_switch.phpt] 
PASS BUG #77664 (Segmentation fault when using undefined constant in custom wrapper) [ext/standard/tests/streams/bug77664.phpt] 
PASS Bug #30161 (Segmentation fault with exceptions) [Zend/tests/bug30161.phpt] 
PASS Bug #30707 (Segmentation fault on exception in method) [Zend/tests/bug30707.phpt] 
PASS Bug #38347 (Segmentation fault when using foreach with an unknown/empty SimpleXMLElement) [ext/simplexml/tests/bug38347.phpt] 
PASS Bug #38779 (engine crashes when require()'ing file with syntax error through userspace stream wrapper) [Zend/tests/bug38779.phpt] 
PASS Bug #38779 (engine crashes when require()'ing file with syntax error through userspace stream wrapper) [Zend/tests/bug38779_1.phpt] 
PASS Bug #39304 (Segmentation fault with list unpacking of string offset) [Zend/tests/bug39304.phpt] 
PASS Bug #41209 (Segmentation fault with ArrayAccess, set_error_handler and undefined var) [Zend/tests/bug41209.phpt] 
PASS Bug #43918 (Segmentation fault in garbage collector) [Zend/tests/bug43918.phpt] 
PASS Bug #45312 (Segmentation fault on second request for array functions) [ext/standard/tests/array/bug45312.phpt] 
PASS Bug #46238 (Segmentation fault on static call with empty string method) [Zend/tests/bug46238.phpt] 
PASS Bug #47572 (zval_update_constant_ex: Segmentation fault) [Zend/tests/bug47572.phpt] 
PASS Bug #48899 (is_callable returns true even if method does not exist in parent class) [Zend/tests/bug48899.phpt] 
PASS Bug #48899 (is_callable returns true even if method does not exist in parent class) [original test with deprecated syntax] [Zend/tests/bug48899-deprecated.phpt] 
PASS Bug #52573 (SplFileObject::fscanf Segmentation fault) [ext/spl/tests/SplFileObject/bug52573.phpt] 
PASS Bug #53362 (Segmentation fault when extending SplFixedArray) [ext/spl/tests/bug53362.phpt] 
PASS Bug #60444 (Segmentation fault with include & class extending) [Zend/tests/bug60444.phpt] 
PASS Bug #60611 (Segmentation fault with Cls::{expr}() syntax) [Zend/tests/bug60611.phpt] 
PASS Bug #60613 (Segmentation fault with $cls->{expr}() syntax) [Zend/tests/bug60613.phpt] 
PASS Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - exception in write after exec [ext/session/tests/user_session_module/bug60634_error_4.phpt] 
PASS Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - exception in write during exec [ext/session/tests/user_session_module/bug60634_error_2.phpt] 
PASS Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in close during exec [ext/session/tests/user_session_module/bug60634_error_5.phpt] 
PASS Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in write after exec [ext/session/tests/user_session_module/bug60634_error_3.phpt] 
PASS Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in write during exec [ext/session/tests/user_session_module/bug60634_error_1.phpt] 
PASS Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) [ext/session/tests/user_session_module/bug60634.phpt] 
PASS Bug #61124: Segmentation fault with openssl_decrypt [ext/openssl/tests/bug61124.phpt] 
PASS Bug #61418: Segmentation fault using FiltesystemIterator & RegexIterator [ext/spl/tests/bug61418.phpt] 
PASS Bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault) [ext/spl/tests/bug62616.phpt] 
PASS Bug #65161: Generator + autoload + syntax error = segfault [Zend/tests/generators/bug65161.phpt] 
PASS Bug #66127 (Segmentation fault with ArrayObject unset) [ext/spl/tests/bug66127.phpt] 
PASS Bug #67314 (Segmentation fault in gc_remove_zval_from_buffer) [Zend/tests/bug67314.phpt] 
PASS Bug #68912 (Segmentation fault at openssl_spki_new) [ext/openssl/tests/bug68912.phpt] 
PASS Bug #69108 ("Segmentation fault" when (de)serializing SplObjectStorage) [ext/spl/tests/bug69108.phpt] 
PASS Bug #69221: Segmentation fault when using a generator in combination with an Iterator (2) [Zend/tests/bug69221_2.phpt] 
PASS Bug #69221: Segmentation fault when using a generator in combination with an Iterator [Zend/tests/bug69221.phpt] 
PASS Bug #70249 (Segmentation fault while running PHPUnit tests on phpBB 3.2-dev) [ext/standard/tests/general_functions/bug70249.phpt] 
PASS Bug #70397 (Segmentation fault when using Closure::call and yield) [Zend/tests/bug70397.phpt] 
PASS Bug #70398 (SIGSEGV, Segmentation fault zend_ast_destroy_ex) [Zend/tests/bug70398.phpt] 
PASS Bug #70805 (Segmentation faults whilst running Drupal 8 test suite) (Crash) [Zend/tests/bug70805_1.phpt] 
PASS Bug #70805 (Segmentation faults whilst running Drupal 8 test suite) (Memleak) [Zend/tests/bug70805_2.phpt] 
PASS Bug #70805 (Segmentation faults whilst running Drupal 8 test suite) [Zend/tests/bug70805.phpt] 
PASS Bug #70876 Segmentation fault when regenerating session id with strict mode [ext/session/tests/bug70876.phpt] 
PASS Bug #71092 (Segmentation fault with return type hinting) [Zend/tests/return_types/bug71092.phpt] 
PASS Bug #71604: Aborted Generators continue after nested finally (2) [Zend/tests/try/bug71604_2.phpt] 
PASS Bug #71604: Aborted Generators continue after nested finally (3) [Zend/tests/try/bug71604_3.phpt] 
PASS Bug #71604: Aborted Generators continue after nested finally [Zend/tests/try/bug71604.phpt] 
PASS Bug #71606 (Segmentation fault mb_strcut + mb_list_encodings) [ext/mbstring/tests/bug71606.phpt] 
PASS Bug #72221 (Segmentation fault in stream_get_line / zend_memnstr_ex) [ext/standard/tests/streams/bug72221.phpt] 
PASS Bug #72441 (Segmentation fault: RFC list_keys) [Zend/tests/bug72441.phpt] 
PASS Bug #73483 (Segmentation fault on pcre_replace_callback) [ext/pcre/tests/bug73483.phpt] 
PASS Bug #74372: autoloading file with syntax error uses next autoloader, may hide parse error [ext/spl/tests/bug74372.phpt] 
PASS Bug #75573 (Segmentation fault in 7.1.12 and 7.0.26) [Zend/tests/bug75573.phpt] 
PASS Bug #76643 (Segmentation fault when using `output_add_rewrite_var`) [ext/standard/tests/general_functions/bug76643.phpt] 
PASS Bug #76700 (false-positive "Error: Call to protected method" when using trait aliases) [Zend/tests/traits/bug76700.phpt] 
PASS Bug #76713 (Segmentation fault caused by property corruption) [ext/standard/tests/array/bug76713.phpt] 
PASS Bug #76752 (Crash in ZEND_COALESCE_SPEC_TMP_HANDLER - assertion in _get_zval_ptr_tmp failed) [Zend/tests/bug76752.phpt] 
PASS Bug #77345 (Segmentation faults stack overflow in cyclic garbage collector) (Bug #77427) [Zend/tests/bug77345_gc_1.phpt] 
PASS Bug #77345 (Segmentation faults stack overflow in cyclic garbage collector) (Bug #77427) [Zend/tests/bug77345_gc_2.phpt] 
PASS Bug #77432 (Segmentation fault on including phar file) [ext/phar/tests/bug77432.phpt] 
PASS Bug #77660 (Segmentation fault on break 2147483648) [Zend/tests/bug77660.phpt] 
PASS Bug #77793: Segmentation fault in extract() when overwriting reference with itself [ext/standard/tests/array/bug77793.phpt] 
PASS Bug #78010: Segmentation fault during GC [Zend/tests/bug78010.phpt] 
PASS Bug #78182: Segmentation fault during by-reference property assignment [Zend/tests/bug78182.phpt] 
PASS Bug #78344: Segmentation fault on zend_check_protected [Zend/tests/bug78344.phpt] 
PASS Bug #78926: Segmentation fault on Symfony cache:clear [Zend/tests/bug78926.phpt] 
PASS Bug #79241: Segmentation fault on preg_match() [ext/pcre/tests/bug79241.phpt] 
PASS Bug #80096: Segmentation fault with named arguments in nested call [Zend/tests/bug80096.phpt] 
PASS Bug #80719: Iterating after failed ArrayObject::setIteratorClass() causes Segmentation fault [ext/spl/tests/bug80719.phpt] 
PASS Bug #81208: Segmentation fault while create newInstance from attribute [ext/reflection/tests/bug81208.phpt] 
PASS Bug #81587: MultipleIterator Segmentation fault w/ SimpleXMLElement attached [ext/spl/tests/bug81587.phpt] 
PASS Bug GH-11455 (PHP 8.2 Segmentation fault on nesbot/carbon) [ext/date/tests/gh11455.phpt] 
PASS Bug GH-8471: Segmentation fault when converting immutable and mutable DateTime instances created using reflection [ext/date/tests/bug-gh8471.phpt] 
PASS Bug GH-9248 (Segmentation fault in mb_strimwidth()) [ext/mbstring/tests/gh9248.phpt] 
PASS Flexible heredoc syntax error 10: unindented variable interpolation (as first value) [Zend/tests/flexible-heredoc-error10.phpt] 
PASS Flexible heredoc syntax error 11: show erroneous line in error message (variable interpolation) [Zend/tests/flexible-heredoc-error11.phpt] 
PASS Flexible heredoc syntax error 12: show erroneous line in error message (lacking indentation) [Zend/tests/flexible-heredoc-error13.phpt] 
PASS Flexible heredoc syntax error 12: show erroneous line in error message (mixed indentation) [Zend/tests/flexible-heredoc-error12.phpt] 
PASS Flexible heredoc syntax error 3: mixing spaces and tabs in ending marker [Zend/tests/flexible-heredoc-error3.phpt] 
PASS Flexible heredoc syntax error 4: not enough body indentation [Zend/tests/flexible-heredoc-error4.phpt] 
PASS Flexible heredoc syntax error 5: mixing spaces and tabs in ending marker for 0 length body [Zend/tests/flexible-heredoc-error5.phpt] 
PASS Flexible heredoc syntax error 6: no ending token on 0 length body [Zend/tests/flexible-heredoc-error6.phpt] 
PASS Flexible heredoc syntax error 7: no ending token [Zend/tests/flexible-heredoc-error7.phpt] 
PASS Flexible heredoc syntax error 8: don't interpret 	 as indentation [Zend/tests/flexible-heredoc-error8.phpt] 
PASS Flexible heredoc syntax error 9: unindented variable interpolation [Zend/tests/flexible-heredoc-error9.phpt] 
PASS Flexible nowdoc syntax error 3: mixing spaces and tabs in ending marker [Zend/tests/flexible-nowdoc-error3.phpt] 
PASS Flexible nowdoc syntax error 4: not enough body indentation [Zend/tests/flexible-nowdoc-error4.phpt] 
PASS Flexible nowdoc syntax error 5: mixing spaces and tabs in ending marker for 0 length body [Zend/tests/flexible-nowdoc-error5.phpt] 
PASS Flexible nowdoc syntax error 6: no ending token on 0 length body [Zend/tests/flexible-nowdoc-error6.phpt] 
PASS Flexible nowdoc syntax error 7: no ending token [Zend/tests/flexible-nowdoc-error7.phpt] 
PASS Flexible nowdoc syntax error 8: no ending token with explicit trailing space [Zend/tests/flexible-nowdoc-error8.phpt] 
PASS GH-10200 (zif_get_object_vars: Assertion `!(((__ht)->u.flags & (1<<2)) != 0)' failed.) [ext/simplexml/tests/gh10200.phpt] 
PASS GH-10248 (Assertion `!(zval_get_type(&(*(property))) == 10)' failed.) [ext/spl/tests/gh10248.phpt] 
PASS GH-10249 (Assertion `size >= page_size + 1 * page_size' failed.) [Zend/tests/fibers/gh10249.phpt] 
PASS GH-10251 (Assertion `(flag & (1<<3)) == 0' failed.) [Zend/tests/gh10251.phpt] 
PASS GH-10570 (Assertion `(key)->h != 0 && "Hash must be known"' failed.): constant variation [Zend/tests/gh10570.phpt] 
PASS GH-11178 (Segmentation fault in spl_array_it_get_current_data (PHP 8.1.18)) [ext/spl/tests/gh11178.phpt] 
PASS GH-11288 (Error: Couldn't fetch DOMElement introduced in 8.2.6, 8.1.19) [ext/dom/tests/gh11288.phpt] 
PASS GH-11289 (DOMException: Not Found Error introduced in 8.2.6, 8.1.19) [ext/dom/tests/gh11289.phpt] 
PASS GH-15179 (Segmentation fault (null pointer dereference) in ext/standard/url_scanner_ex.re) [tests/output/gh15179.phpt] 
PASS GH-15551 (Segmentation fault (access null pointer) in ext/dom/xml_common.h) [ext/dom/tests/gh15551.phpt] 
PASS GH-15837 (Segmentation fault in ext/simplexml/simplexml.c) [ext/simplexml/tests/gh15837.phpt] 
PASS GH-16039 (Segmentation fault (access null pointer) in ext/dom/parentnode/tree.c) [ext/dom/tests/gh16039.phpt] 
PASS GH-16054 (Segmentation fault when resizing hash table iterator list while adding) [ext/spl/tests/gh16054.phpt] 
PASS Nested group use statements syntax error [Zend/tests/ns_088.phpt] 
PASS Phar: PHP bug #47085: "rename() returns true even if the file in PHAR does not exist" [ext/phar/tests/bug47085.phpt] 
PASS SPL: Error: iterator_apply when an iterator method (eg rewind) throws exception [ext/spl/tests/spl_iterator_apply_error.phpt] 
PASS SPL: Error: iterator_apply when the callback throws an exception [ext/spl/tests/spl_iterator_apply_error_001.phpt] 
PASS SPL: Error: iterator_to_array when the current operation throws an exception [ext/spl/tests/spl_iterator_to_array_error.phpt] 
PASS Spread operator is not supported in destructuring assignments (only spread) [Zend/tests/array_unpack/in_destructuring_2.phpt] 
PASS Spread operator is not supported in destructuring assignments [Zend/tests/array_unpack/in_destructuring.phpt] 
PASS Test if bindtextdomain() returns false if path does not exist. [ext/gettext/tests/gettext_bindtextdomain-path.phpt] 
PASS bug 50632, filter_input() does not return default value if the variable does not exist [ext/filter/tests/bug50632.phpt] 
SKIP Bug #69753 - libXMLError::file contains invalid URI [ext/libxml/tests/bug69753-mb.phpt] reason: this test is for Windows platforms only
SKIP Bug #69753 - libXMLError::file contains invalid URI [ext/libxml/tests/bug69753.phpt] reason: this test is for Windows platforms only
SKIP Bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed) [Zend/tests/bug71930.phpt] reason: Required extension missing: curl
PASS Bug #73172 parse error: Invalid numeric literal [tests/lang/bug73172.phpt]
Comment 3 Michael Orlitzky gentoo-dev 2024-11-01 03:48:09 UTC
Can you post the test logs for some of these? Each failed test should have a number of <test-name>.* files with the relevant output. (I don't remember the exact names or I'd just tell you what to look for).

For example, this test failed:

Gettext basic test with en_US locale that should be on nearly every system [ext/gettext/tests/gettext_basic-enus.phpt]

If you look inside the build directory, there should be few files named

  ext/gettext/tests/gettext_basic-enus.*

I want to say the *.log file is what you're looking for, but no promises.

If these are all new and exciting failures, we'd need the logs for all of them, but this is a lot of surprise failures to have show up all at once. Hopefully it's a segfault or something and the first log will show us the problem.
Comment 4 Michael Orlitzky gentoo-dev 2024-11-04 01:07:06 UTC
*** Bug 942609 has been marked as a duplicate of this bug. ***
Comment 5 Agostino Sarubbo gentoo-dev 2024-11-04 13:15:22 UTC
Created attachment 907854 [details]
php-test-logs.xz
Comment 6 Michael Orlitzky gentoo-dev 2024-11-04 15:03:04 UTC
Thanks, they do all look kind of related. The crypt functions are returning "*" where "*0" is expected, and there are several iconv-related diffs. I'll look in to it.
Comment 7 Michael Orlitzky gentoo-dev 2024-11-04 16:09:27 UTC
I was searching for "musl" on github when I should have been searching for "alpine".

I have a musl system now so I can at least work around some of these, if not fix them.