PHP: 2 tests failing on armv7h

Problems with packages? Post here, using [tags] of the package name.

PHP: 2 tests failing on armv7h

Postby TPXP » Sun Mar 12, 2017 2:51 pm

Hi !

I tried rebuilding the PHP package on my armv7h board (an Odroid-XU), with an additional patch to avoid a critical bug with older kernels : see viewtopic.php?f=15&t=11321&p=54787&hilit=could+gather+random#p54787 , patch here : https://github.com/php/php-src/pull/2385 .

It built correctly, but failed while check()ing:
$this->bbcode_second_pass_code('', '=====================================================================
Number of tests : 3131 3050
Tests skipped : 81 ( 2.6%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 2 ( 0.1%) ( 0.1%)
Expected fail : 7 ( 0.2%) ( 0.2%)
Tests passed : 3041 ( 97.1%) ( 99.7%)
---------------------------------------------------------------------
Time taken : 267 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.
Inconsistencies when accessing protected members [Zend/tests/access_modifiers_008.phpt] XFAIL REASON: Discussion: http://marc.info/?l=php-internals&m=120221184420957&w=2
Inconsistencies when accessing protected members - 2 [Zend/tests/access_modifiers_009.phpt] XFAIL REASON: Discussion: http://marc.info/?l=php-internals&m=120221184420957&w=2
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770.phpt] XFAIL REASON: See Bug #48770
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770_2.phpt] XFAIL REASON: See Bug #48770
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770_3.phpt] XFAIL REASON: See Bug #48770
Initial value of static var in method depends on the include time of the class definition [Zend/tests/method_static_var.phpt] XFAIL REASON: Maybe not a bug
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
zend_dval_to_lval preserves low bits (32 bit long) [Zend/tests/dval_to_lval_32.phpt]
testing integer underflow (32bit) [Zend/tests/int_underflow_32bit.phpt]
=====================================================================
==> ERREUR : Une erreur s’est produite dans check().
Abandon...')

The failing tests can be found here :
https://github.com/php/php-src/blob/mas ... al_32.phpt
https://github.com/php/php-src/blob/mas ... 32bit.phpt

When trying to run them on the package provided by the ALARM repository, I got these results :
$this->bbcode_second_pass_code('', '$ php dval_to_lval_32.phpt
--TEST--
zend_dval_to_lval preserves low bits (32 bit long)
--SKIPIF--
--FILE--
int(0)
int(0)
int(0)
int(0)
int(0)
int(0)
--EXPECT--
int(-2056257536)
int(-2055733248)
int(-2055208960)
int(-2054684672)
int(-2054160384)
int(2147483647)
')
The test runs fine on my Archlinux x86_64 computer, so this is a bug in the ARM version. Perhaps it is due to the way the ARM architecture deals with integer conversions ? Maybe a compiler flag can fix this ?

Thanks in advance for your help.

TPXP
TPXP
 
Posts: 9
Joined: Sun Oct 18, 2015 8:56 am

Return to Packages

Who is online

Users browsing this forum: Google [Bot] and 10 guests