|
From 0001246:
Just tried on freshest debug zts build from php-src:
vagrant@php7dev:~/Development/php-weak-lib$ php vendor/bin/phpunit --coverage-text --configuration phpunit.xml
PHPUnit 5.1.3 by Sebastian Bergmann and contributors.
Segmentation fault
vagrant@php7dev:~/Development/php-weak-lib$ valgrind php vendor/bin/phpunit --coverage-text --configuration phpunit.xml
==9472== Memcheck, a memory error detector
==9472== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==9472== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info
==9472== Command: php vendor/bin/phpunit --coverage-text --configuration phpunit.xml
==9472==
PHPUnit 5.1.3 by Sebastian Bergmann and contributors.
==9472== Invalid read of size 1
==9472== at 0xF8C6B9D: xdebug_set_in_ex (xdebug_set.c:72)
==9472== by 0xF8AFE7E: xdebug_analyse_branch (xdebug_code_coverage.c:681)
==9472== by 0xF8AFFB9: xdebug_analyse_branch (xdebug_code_coverage.c:713)
==9472== by 0xF8B01E5: xdebug_analyse_oparray (xdebug_code_coverage.c:768)
==9472== by 0xF8B0547: prefill_from_oparray (xdebug_code_coverage.c:848)
==9472== by 0xF8B0733: prefill_from_function_table (xdebug_code_coverage.c:890)
==9472== by 0xF8B0810: prefill_from_class_table (xdebug_code_coverage.c:918)
==9472== by 0xB0DE7B: zend_hash_apply_with_arguments (zend_hash.c:1580)
==9472== by 0xF8B0962: xdebug_prefill_code_coverage (xdebug_code_coverage.c:937)
==9472== by 0xF8B0992: xdebug_code_coverage_start_of_function (xdebug_code_coverage.c:944)
==9472== by 0xF8A9999: xdebug_execute_ex (xdebug.c:1843)
==9472== by 0xADB6CC: zend_call_function (zend_execute_API.c:860)
==9472== Address 0x107c1a04 is 4 bytes inside an unallocated block of size 255,456 in arena "client"
==9472==
==9472== Invalid read of size 1
==9472== at 0xF8C6AFC: xdebug_set_add (xdebug_set.c:50)
==9472== by 0xF8AFE97: xdebug_analyse_branch (xdebug_code_coverage.c:687)
==9472== by 0xF8AFFB9: xdebug_analyse_branch (xdebug_code_coverage.c:713)
==9472== by 0xF8B01E5: xdebug_analyse_oparray (xdebug_code_coverage.c:768)
==9472== by 0xF8B0547: prefill_from_oparray (xdebug_code_coverage.c:848)
==9472== by 0xF8B0733: prefill_from_function_table (xdebug_code_coverage.c:890)
==9472== by 0xF8B0810: prefill_from_class_table (xdebug_code_coverage.c:918)
==9472== by 0xB0DE7B: zend_hash_apply_with_arguments (zend_hash.c:1580)
==9472== by 0xF8B0962: xdebug_prefill_code_coverage (xdebug_code_coverage.c:937)
==9472== by 0xF8B0992: xdebug_code_coverage_start_of_function (xdebug_code_coverage.c:944)
==9472== by 0xF8A9999: xdebug_execute_ex (xdebug.c:1843)
==9472== by 0xADB6CC: zend_call_function (zend_execute_API.c:860)
==9472== Address 0x107c1a04 is 4 bytes inside an unallocated block of size 255,456 in arena "client"
==9472==
==9472== Invalid write of size 1
==9472== at 0xF8C6B17: xdebug_set_add (xdebug_set.c:50)
==9472== by 0xF8AFE97: xdebug_analyse_branch (xdebug_code_coverage.c:687)
==9472== by 0xF8AFFB9: xdebug_analyse_branch (xdebug_code_coverage.c:713)
==9472== by 0xF8B01E5: xdebug_analyse_oparray (xdebug_code_coverage.c:768)
==9472== by 0xF8B0547: prefill_from_oparray (xdebug_code_coverage.c:848)
==9472== by 0xF8B0733: prefill_from_function_table (xdebug_code_coverage.c:890)
==9472== by 0xF8B0810: prefill_from_class_table (xdebug_code_coverage.c:918)
==9472== by 0xB0DE7B: zend_hash_apply_with_arguments (zend_hash.c:1580)
==9472== by 0xF8B0962: xdebug_prefill_code_coverage (xdebug_code_coverage.c:937)
==9472== by 0xF8B0992: xdebug_code_coverage_start_of_function (xdebug_code_coverage.c:944)
==9472== by 0xF8A9999: xdebug_execute_ex (xdebug.c:1843)
==9472== by 0xADB6CC: zend_call_function (zend_execute_API.c:860)
==9472== Address 0x107c1a04 is 4 bytes inside an unallocated block of size 255,456 in arena "client"
==9472==
EEEE
Fatal error: Uncaught Exception: Prevent weakref handler to be executed in /home/vagrant/Development/php-weak-lib/tests/SplObjectStorageTest.php on line 105
Exception: Prevent weakref handler to be executed in /home/vagrant/Development/php-weak-lib/tests/SplObjectStorageTest.php on line 105
Call Stack:
0.4698 371864 1. {main}() /home/vagrant/Development/php-weak-lib/vendor/phpunit/phpunit/phpunit:0
1.7726 766632 2. PHPUnit_TextUI_Command::main() /home/vagrant/Development/php-weak-lib/vendor/phpunit/phpunit/phpunit:47
1.7883 769960 3. PHPUnit_TextUI_Command->run() /home/vagrant/Development/php-weak-lib/vendor/phpunit/phpunit/src/TextUI/Command.php:106
5.8001 2788408 4. PHPUnit_TextUI_TestRunner->doRun() /home/vagrant/Development/php-weak-lib/vendor/phpunit/phpunit/src/TextUI/Command.php:155
6.3190 3214104 5. PHPUnit_Framework_TestSuite->run() /home/vagrant/Development/php-weak-lib/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:429
11.3115 4526704 6. PHPUnit_Framework_TestSuite->run() /home/vagrant/Development/php-weak-lib/vendor/phpunit/phpunit/src/Framework/TestSuite.php:747
14.0603 4665552 7. PHPUnit_Framework_TestCase->run() /home/vagrant/Development/php-weak-lib/vendor/phpunit/phpunit/src/Framework/TestSuite.php:747
14.0620 4665552 8. PHPUnit_Framework_TestResult->run() /home/vagrant/Development/php-weak-lib/vendor/phpunit/phpunit/src/Framework/TestCase.php:726
14.2284 4698608 9. {anonymous-class:/home/vagrant/Development/php-weak-lib/tests/SplObjectStorageTest.php:101-107}->__destruct() /home/vagrant/Development/php-weak-lib/vendor/phpunit/phpunit/src/Framework/TestResult.php:702
==9472==
==9472== HEAP SUMMARY:
==9472== in use at exit: 5,571 bytes in 56 blocks
==9472== total heap usage: 204,570 allocs, 204,514 frees, 12,646,884 bytes allocated
==9472==
==9472== LEAK SUMMARY:
==9472== definitely lost: 312 bytes in 13 blocks
==9472== indirectly lost: 0 bytes in 0 blocks
==9472== possibly lost: 0 bytes in 0 blocks
==9472== still reachable: 5,259 bytes in 43 blocks
==9472== suppressed: 0 bytes in 0 blocks
==9472== Rerun with --leak-check=full to see details of leaked memory
==9472==
==9472== For counts of detected and suppressed errors, rerun with: -v
==9472== ERROR SUMMARY: 52 errors from 3 contexts (suppressed: 0 from 0) |