Edit report at https://bugs.php.net/bug.php?id=60825&edit=1
ID: 60825 Comment by: maxime dot marais at gmail dot com Reported by: php at wallbash dot com Summary: Segfault when running symfony 2 tests Status: Closed Type: Bug Package: Reproducible crash Operating System: Ubuntu 10.04.3 LTS PHP Version: 5.4.0RC6 Assigned To: laruence Block user comment: N Private report: N New Comment: Could you please tell if the fix applied to version 5.4 will be applied to version 5.3 (maybe 5.3.11)? I am experiencing the same issue with PHP 5.3.6 using some test classes bases on PHPUnit and Symfony's ORM Doctrine. In the example below, 3 test classes are tested sequentially. If I run each test individually, no segmentation fault occurs. $ gdb --args php /usr/local/bin/phpunit test GNU gdb (GDB) CentOS (7.0.1-42.el5.centos) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/bin/php...(no debugging symbols found)...done. (gdb) r Starting program: /usr/bin/php /usr/local/bin/phpunit test [Thread debugging using libthread_db enabled] PHPUnit 3.6.10 by Sebastian Bergmann. .......................... Time: 20 seconds, Memory: 20.25Mb OK (26 tests, 132 assertions) Program received signal SIGSEGV, Segmentation fault. 0x000000000061f0ba in zend_call_function () (gdb) bt #0 0x000000000061f0ba in zend_call_function () #1 0x00000000006402cf in zend_call_method () #2 0x0000000000648718 in zend_objects_destroy_object () #3 0x000000000064c159 in zend_objects_store_del_ref_by_handle_ex () #4 0x000000000064c183 in zend_objects_store_del_ref () #5 0x000000000061d9c5 in _zval_ptr_dtor () #6 0x0000000000636aa8 in zend_hash_destroy () #7 0x0000000000629f0f in _zval_dtor_func () #8 0x000000000061d9c5 in _zval_ptr_dtor () #9 0x0000000000636aa8 in zend_hash_destroy () #10 0x0000000000629f0f in _zval_dtor_func () #11 0x000000000061d9c5 in _zval_ptr_dtor () #12 0x0000000000636aa8 in zend_hash_destroy () #13 0x0000000000648469 in zend_object_std_dtor () #14 0x0000000000648489 in zend_objects_free_object_storage () #15 0x000000000064c526 in zend_objects_store_free_object_storage () #16 0x000000000061dc75 in ?? () #17 0x000000000062a4b2 in ?? () #18 0x00000000005d7a0e in php_request_shutdown () #19 0x00000000006b2d6c in ?? () #20 0x0000003b5b01d994 in __libc_start_main () from /lib64/libc.so.6 #21 0x0000000000422339 in _start () (gdb) Thanks. Previous Comments: ------------------------------------------------------------------------ [2012-01-26 01:22:48] larue...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2012-01-26 01:21:34] larue...@php.net Automatic comment from SVN on behalf of laruence Revision: http://svn.php.net/viewvc/?view=revision&revision=322770 Log: Fixed bug #60825 (Segfault when running symfony 2 tests) ------------------------------------------------------------------------ [2012-01-24 14:39:45] larue...@php.net Automatic comment from SVN on behalf of laruence Revision: http://svn.php.net/viewvc/?view=revision&revision=322678 Log: Re-fixed bug #60825 (Segfault when running symfony 2 tests) ------------------------------------------------------------------------ [2012-01-24 02:50:37] larue...@php.net assign to myself, will close after commit to 5.4 branch ------------------------------------------------------------------------ [2012-01-21 17:29:04] larue...@php.net fixed in trunk, will commit to branch when I got the permission from stas, and a simple reproduce script: <?php class test { public function __toString() { return "aaa"; } } $a = new test; require_once $a; ------------------------------------------------------------------------ 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=60825 -- Edit this bug report at https://bugs.php.net/bug.php?id=60825&edit=1