msgpack / msgpack-php

msgpack.org[PHP]
BSD 3-Clause "New" or "Revised" License
774 stars 120 forks source link

tests/040.phpt failure on i686 #110

Closed glensc closed 4 years ago

glensc commented 7 years ago

the test results php engine needing to allocate over 4GiB memory, which obviously fails. can 32bit php even allocate that much memory?!

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4127195156 bytes) in msgpack-2.0.1/tests/040.php on line 18

the test should skip such platform, or whole test be dropped. what exactly is it testing?

$ export 'NO_INTERACTION=1' 'REPORT_EXIT_STATUS=1' 'MALLOC_CHECK_=2'
$ /usr/bin/make -j7 test 'PHP_EXECUTABLE=/usr/bin/php70' 'PHP_TEST_SHARED_SYSTEM_EXTENSIONS=pcre spl session' 'RUN_TESTS_SETTINGS=-q tests/040.phpt --show-out'

Build complete.
Don't forget to run 'make test'.

=====================================================================
PHP         : /usr/bin/php70 
PHP_SAPI    : cli
PHP_VERSION : 7.0.13
ZEND_VERSION: 3.0.0
PHP_OS      : Linux - Linux carme-pld-i686 4.1.34-1 #1 SMP Fri Oct 21 13:55:58 CEST 2016 i686
INI actual  : /home/users/glen/rpm/BUILD/i686-linux/php70-pecl-msgpack-2.0.1/tmp-php.ini
More .INIs  :   
CWD         : /home/users/glen/rpm/BUILD/i686-linux/php70-pecl-msgpack-2.0.1
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
Running selected tests.
TEST 1/1 [tests/040.phpt]
========OUT========
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4127195156 bytes) in /home/users/glen/rpm/BUILD/i686-linux/php70-pecl-msgpack-2.0.1/tests/040.php on line 18
========DONE========
FAIL broken random data test [tests/040.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
---------------------------------------------------------------------
broken random data test [tests/040.phpt]
=====================================================================