Bug #69271 [Opn]: ext/phar/tests/zip/phar_setsignaturealgo2.phpt fails

From: Date: Mon, 24 Aug 2015 17:03:41 +0000
Subject: Bug #69271 [Opn]: ext/phar/tests/zip/phar_setsignaturealgo2.phpt fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195483@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69271&edit=1 ID: 69271 Updated by: cmb@php.net Reported by: ondrej@php.net Summary: ext/phar/tests/zip/phar_setsignaturealgo2.phpt fails Status: Open Type: Bug Package: PHAR related Operating System: Debian wheezy PHP Version: 5.4.39 Block user comment: N Private report: N New Comment: Looks like you're not the only one for whom this test is failing, Ondřej: <https://qa.php.net/reports/viewreports.php?version=5.6.10&test=%2Fext%2Fphar%2Ftests%2Fzip%2Fphar_setsignaturealgo2.phpt>. The other test result looks like PHP crashes during the test. Previous Comments: ------------------------------------------------------------------------ [2015-03-24 20:00:19] ab@php.net Another idea that maybe could help. During your builds, do the test run in parallel (or maybe you run multiple builds simultaneously)? Namely if yes, it could collide with the same test or with something in the other tests which could overwrite each others files. Otherwise, hm ... might be some weird bug in the output buffering. Whereby it would be showing itself at a lot of other places, if so. Thanks. ------------------------------------------------------------------------ [2015-03-20 18:28:02] ondrej@php.net I wasn't implying that the test change caused that, just you might have an idea what might be happening :). I'll give it some more debugging next week since running this in a loop: while [ "$(wc -l failed.log | cut -f 1 -d \ )" -eq 0 ]; do php run-tests.php -q --keep-all --show-diff -s failed.out -a failed.log -n ext/phar/tests/zip/phar_setsignaturealgo2.phpt >/dev/null 2>/dev/null; done still hasn't failed (I ran it for ~2 hours). It fails only as a part of the build. I run a full test suite during the build, so that's the only difference - Perhaps there's some leftovers from some other test that is causing this to fail. ------------------------------------------------------------------------ [2015-03-20 16:04:54] ab@php.net Ondrej, I guess it's unlikely fails due to the test change. The patch in bug #61906 is purely to force the usage of the openssl.cnf supplied with the test suite. I'd rather guess it could be because of phar/openssl itself or some issue in the build process. Cheers. ------------------------------------------------------------------------ [2015-03-20 15:57:35] ondrej@php.net Disregard the last comment, this happens when --no-clean is used. I am going to try again since I can reproduce this only in the build. ------------------------------------------------------------------------ [2015-03-20 15:52:17] ondrej@php.net Ok, I have just reproduced a failure in this test, it's completely random and it looks like it can fail at different algoritms: # php run-tests.php -q --keep-all --no-clean --show-diff -s failed.out -a failed.log -n ext/phar/tests/zip/phar_setsignaturealgo2.phpt ===================================================================== PHP : /usr/bin/php PHP_SAPI : cli PHP_VERSION : 5.4.39-0+deb7u1 ZEND_VERSION: 2.4.0 PHP_OS : Linux - Linux lettie.nic.cz 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86_64 INI actual : /tmp/php-src More .INIs : CWD : /tmp/php-src Extra dirs : VALGRIND : Not used ===================================================================== Running selected tests. TEST 1/1 [ext/phar/tests/zip/phar_setsignaturealgo2.phpt] ========DIFF======== 005+ string(3) "MD5" 005- string(5) "SHA-1" ========DONE======== FAIL Phar::setSupportedSignatures() with hash, zip-based [ext/phar/tests/zip/phar_setsignaturealgo2.phpt] ===================================================================== Number of tests : 1 1 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 1 (100.0%) (100.0%) Expected fail : 0 ( 0.0%) ( 0.0%) Tests passed : 0 ( 0.0%) ( 0.0%) --------------------------------------------------------------------- Time taken : 0 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Phar::setSupportedSignatures() with hash, zip-based [ext/phar/tests/zip/phar_setsignaturealgo2.phpt] ===================================================================== ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=69271 -- Edit this bug report at https://bugs.php.net/bug.php?id=69271&edit=1

« previous php.bugs (#195483) next »