Edit report at https://bugs.php.net/bug.php?id=60825&edit=1
ID: 60825 User updated by: php at wallbash dot com Reported by: php at wallbash dot com Summary: Segfault when running symfony 2 tests -Status: Closed +Status: Open 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: Dear paj...@php.net, Sorry for answering so late. I focused my attention on other projects still now and did not check if the issue was solved using an higher production version. It seems the issue still exists with current stable version 5.3.13. I get the same segmentation fault when testing a project using Doctrine ORM. However, the fault location seems to elsewhere. See below. $ php --version PHP 5.3.13 (cli) (built: May 8 2012 15:39:23) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies $ 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. ....................... Program received signal SIGSEGV, Segmentation fault. 0x0000000000652700 in ?? () (gdb) bt #0 0x0000000000652700 in ?? () #1 0x00002aaab147ae4c in ?? () from /usr/lib64/php/modules/pdo.so #2 0x0000000000692bcd in ?? () #3 0x000000000065876b in execute () #4 0x0000000000627043 in zend_call_function () #5 0x000000000064830f in zend_call_method () #6 0x00000000006507e8 in zend_objects_destroy_object () #7 0x000000000064ea3c in gc_collect_cycles () #8 0x000000000064f00e in gc_zval_possible_root () #9 0x00000000006b51ed in ?? () #10 0x000000000065876b in execute () #11 0x0000000000627043 in zend_call_function () #12 0x0000000000535fbe in ?? () #13 0x0000000000659669 in ?? () #14 0x000000000065876b in execute () #15 0x0000000000631ba5 in zend_execute_scripts () #16 0x00000000005e1328 in php_execute_script () #17 0x00000000006bbdf0 in ?? () #18 0x00002aaaab7cb994 in __libc_start_main () from /lib64/libc.so.6 #19 0x0000000000422509 in _start () Previous Comments: ------------------------------------------------------------------------ [2012-04-18 09:46:28] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=cf54cc736bc27f18b9a27ed882ad87b1d2e7a2b3 Log: Fixed bug #60825 (Segfault when running symfony 2 tests) ------------------------------------------------------------------------ [2012-04-18 09:46:25] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=a222954a45df7af796e3c890075010bf0213773b Log: Re-fixed bug #60825 (Segfault when running symfony 2 tests) ------------------------------------------------------------------------ [2012-04-18 09:46:24] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=498d9aea7f1ac60ccefd0de5e5d854c27d603900 Log: Fixed bug #60825 (Segfault when running symfony 2 tests) ------------------------------------------------------------------------ [2012-03-15 10:26:16] paj...@php.net @maxime dot marais at gmail dot com Please try yourself using the snapshots. But as far as I can see the fix has been applied to 5.3, so it should work with the snaps. ------------------------------------------------------------------------ [2012-03-15 10:04:13] maxime dot marais at gmail dot com 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. ------------------------------------------------------------------------ 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