|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-12-19 01:44 UTC] bowersbros at gmail dot com
Description: ------------ When running the unit tests for the Lithium framework (Li3 - https://github.com/unionofrad/lithium), a segmentation fault occurs in one of the tests. The error thrown is: php: /home/vagrant/php-src/Zend/zend_execute.c:2466: cleanup_unfinished_calls: Assertion `op_num' failed. I have tried and failed to generate a core dump file, and run it through gdb. This issue is present in 7.0.0 and 7.0.1, but not in 5.6.14 (not tested others) It is also current in the current master branch on GitHub (labelled as 7.1.0-dev). To recreate, clone https://github.com/alexbowers/lithium/tree/feature/alternative-string-fix and run the following command: lithium/console/li3 test tests/cases/core/LibrariesTest.php Sometimes this passes. I have two virtual machines locally, and on one this passes, on the other it doesn't. When it does, running this command causes the SegFault: lithium/console/li3 test tests Test script: --------------- https://github.com/alexbowers/lithium/tree/feature/alternative-string-fix Expected result: ---------------- No Segmentation Fault (test may fail though) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 UTC |
A simple reproduce script is: <?php function __autoload($name) { eval ("class $name { public static function foo() {}}"); throw new Exception("boom"); } function test2() { try { Test::foo(); } catch (Exception $e) { } } function test() { test2(); } test(); and I've got fixes, but need more thinking... since there is not only one.. :)