Edit report at https://bugs.php.net/bug.php?id=60825&edit=1
ID: 60825 Updated by: larue...@php.net Reported by: php at wallbash dot com Summary: Segfault when running symfony 2 tests Status: Assigned 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: @maxime dot marais at gmail dot com, okey,ãI will write to your mail. thanks Previous Comments: ------------------------------------------------------------------------ [2012-05-30 14:12:23] maxime dot marais at gmail dot com Laruence, I am unable to recreate a simple script that would trigger the segmentation fault I'm facing. It seems many objects have to be handled before the segmentation fault occurs. For example, a test script runs well with phpunit if ran once, but fails if ran twice or more (phpunit with --repeat N option, N > 1). I can not neither provide my source code right here on the forum as the project I'm working on is not public. Anyway, I guess there would too much files to provide and the project would be complicated to reassemble. However, if you accept, I suggest to send you the current code + necessary data and test files by private mail if you engage not to distribute this code nor keep any copy of it once the bug fixed. Please, contact me by mail. ------------------------------------------------------------------------ [2012-05-23 07:33:08] php at wallbash dot com --------- DUMP #3 --------- $ gdb --args php /usr/local/bin/phpunit --coverage-text=cover.txt test/InstanciationTest.php 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 --coverage-text=cover.txt test/InstanciationTest.php [Thread debugging using libthread_db enabled] PHPUnit 3.6.10 by Sebastian Bergmann. ............. Time: 4 seconds, Memory: 21.00Mb OK (13 tests, 71 assertions) Generating textual code coverage report, this may take a moment. Program received signal SIGSEGV, Segmentation fault. 0x0000000000652700 in ?? () (gdb) bt #0 0x0000000000652700 in ?? () #1 0x00002aaab16abe4c in ?? () from /usr/lib64/php/modules/pdo.so #2 0x0000000000692bcd in ?? () #3 0x000000000065876b in execute () #4 0x00002aaaaf570f4f in xdebug_execute (op_array=0x2aaab428c878) at /tmp/pear/install/xdebug/xdebug.c:1390 #5 0x000000000065915d in ?? () #6 0x000000000065876b in execute () #7 0x00002aaaaf570f4f in xdebug_execute (op_array=0x179f520) at /tmp/pear/install/xdebug/xdebug.c:1390 #8 0x000000000065915d in ?? () #9 0x000000000065876b in execute () #10 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1513890) at /tmp/pear/install/xdebug/xdebug.c:1390 #11 0x000000000065915d in ?? () #12 0x000000000065876b in execute () #13 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1986ea8) at /tmp/pear/install/xdebug/xdebug.c:1390 #14 0x0000000000627043 in zend_call_function () #15 0x000000000064830f in zend_call_method () #16 0x00000000006507e8 in zend_objects_destroy_object () #17 0x000000000064ea3c in gc_collect_cycles () #18 0x000000000064f00e in gc_zval_possible_root () #19 0x00000000006b9031 in ?? () #20 0x000000000065876b in execute () #21 0x00002aaaaf570f4f in xdebug_execute (op_array=0x21dedc0) at /tmp/pear/install/xdebug/xdebug.c:1390 #22 0x000000000065915d in ?? () #23 0x000000000065876b in execute () #24 0x00002aaaaf570f4f in xdebug_execute (op_array=0x21de378) at /tmp/pear/install/xdebug/xdebug.c:1390 #25 0x000000000065915d in ?? () #26 0x000000000065876b in execute () #27 0x00002aaaaf570f4f in xdebug_execute (op_array=0x21b9718) at /tmp/pear/install/xdebug/xdebug.c:1390 #28 0x000000000065915d in ?? () #29 0x000000000065876b in execute () #30 0x00002aaaaf570f4f in xdebug_execute (op_array=0x2aaaaac245b0) at /tmp/pear/install/xdebug/xdebug.c:1390 #31 0x000000000065915d in ?? () #32 0x000000000065876b in execute () #33 0x00002aaaaf570f4f in xdebug_execute (op_array=0x2086cd0) at /tmp/pear/install/xdebug/xdebug.c:1390 #34 0x000000000065915d in ?? () #35 0x000000000065876b in execute () #36 0x00002aaaaf570f4f in xdebug_execute (op_array=0x208d828) at /tmp/pear/install/xdebug/xdebug.c:1390 #37 0x000000000065915d in ?? () #38 0x000000000065876b in execute () #39 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1f90600) at /tmp/pear/install/xdebug/xdebug.c:1390 #40 0x000000000065915d in ?? () #41 0x000000000065876b in execute () #42 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1f90600) at /tmp/pear/install/xdebug/xdebug.c:1390 #43 0x000000000065915d in ?? () #44 0x000000000065876b in execute () #45 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1f90600) at /tmp/pear/install/xdebug/xdebug.c:1390 #46 0x000000000065915d in ?? () #47 0x000000000065876b in execute () #48 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1f90600) at /tmp/pear/install/xdebug/xdebug.c:1390 #49 0x000000000065915d in ?? () #50 0x000000000065876b in execute () #51 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1fd8f10) at /tmp/pear/install/xdebug/xdebug.c:1390 #52 0x000000000065915d in ?? () #53 0x000000000065876b in execute () #54 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1312110) at /tmp/pear/install/xdebug/xdebug.c:1390 #55 0x000000000065915d in ?? () #56 0x000000000065876b in execute () #57 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1fda010) at /tmp/pear/install/xdebug/xdebug.c:1390 #58 0x000000000065915d in ?? () ---Type <return> to continue, or q <return> to quit--- #59 0x000000000065876b in execute () #60 0x00002aaaaf570f4f in xdebug_execute (op_array=0x2aaaaab986a0) at /tmp/pear/install/xdebug/xdebug.c:1390 #61 0x000000000065915d in ?? () #62 0x000000000065876b in execute () #63 0x00002aaaaf570f4f in xdebug_execute (op_array=0xc44ca8) at /tmp/pear/install/xdebug/xdebug.c:1390 #64 0x000000000065915d in ?? () #65 0x000000000065876b in execute () #66 0x00002aaaaf570f4f in xdebug_execute (op_array=0xc41348) at /tmp/pear/install/xdebug/xdebug.c:1390 #67 0x000000000065915d in ?? () #68 0x000000000065876b in execute () #69 0x00002aaaaf570f4f in xdebug_execute (op_array=0xc33188) at /tmp/pear/install/xdebug/xdebug.c:1390 #70 0x0000000000631ba5 in zend_execute_scripts () #71 0x00000000005e1328 in php_execute_script () #72 0x00000000006bbdf0 in ?? () #73 0x00002aaaab7cb994 in __libc_start_main () from /lib64/libc.so.6 #74 0x0000000000422509 in _start () (gdb) ------------------------------------------------------------------------ [2012-05-23 07:32:58] php at wallbash dot com --------- DUMP #2 --------- $ gdb --args php /usr/local/bin/phpunit --coverage-text=cover.txt 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 --coverage-text=cover.txt 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 0x00002aaab16abe4c in ?? () from /usr/lib64/php/modules/pdo.so #2 0x0000000000692bcd in ?? () #3 0x000000000065876b in execute () #4 0x00002aaaaf570f4f in xdebug_execute (op_array=0x2aaab428b5d8) at /tmp/pear/install/xdebug/xdebug.c:1390 #5 0x000000000065915d in ?? () #6 0x000000000065876b in execute () #7 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1c63328) at /tmp/pear/install/xdebug/xdebug.c:1390 #8 0x000000000065915d in ?? () #9 0x000000000065876b in execute () #10 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1c29480) at /tmp/pear/install/xdebug/xdebug.c:1390 #11 0x000000000065915d in ?? () #12 0x000000000065876b in execute () #13 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1c24b10) at /tmp/pear/install/xdebug/xdebug.c:1390 #14 0x0000000000627043 in zend_call_function () #15 0x000000000064830f in zend_call_method () #16 0x00000000006507e8 in zend_objects_destroy_object () #17 0x000000000064ea3c in gc_collect_cycles () #18 0x000000000064f00e in gc_zval_possible_root () #19 0x000000000067b264 in ?? () #20 0x000000000065876b in execute () #21 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1a26d38) at /tmp/pear/install/xdebug/xdebug.c:1390 #22 0x000000000065915d in ?? () #23 0x000000000065876b in execute () #24 0x00002aaaaf570f4f in xdebug_execute (op_array=0xee1008) at /tmp/pear/install/xdebug/xdebug.c:1390 #25 0x000000000065915d in ?? () #26 0x000000000065876b in execute () #27 0x00002aaaaf570f4f in xdebug_execute (op_array=0xfa0e28) at /tmp/pear/install/xdebug/xdebug.c:1390 #28 0x000000000065915d in ?? () #29 0x000000000065876b in execute () #30 0x00002aaaaf570f4f in xdebug_execute (op_array=0xf9e000) at /tmp/pear/install/xdebug/xdebug.c:1390 #31 0x000000000065915d in ?? () #32 0x000000000065876b in execute () #33 0x00002aaaaf570f4f in xdebug_execute (op_array=0xf635d0) at /tmp/pear/install/xdebug/xdebug.c:1390 #34 0x000000000065915d in ?? () #35 0x000000000065876b in execute () #36 0x00002aaaaf570f4f in xdebug_execute (op_array=0x10877e0) at /tmp/pear/install/xdebug/xdebug.c:1390 #37 0x000000000065915d in ?? () #38 0x000000000065876b in execute () #39 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1bb08e8) at /tmp/pear/install/xdebug/xdebug.c:1390 #40 0x000000000065915d in ?? () #41 0x000000000065876b in execute () #42 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1bc2610) at /tmp/pear/install/xdebug/xdebug.c:1390 #43 0x000000000065915d in ?? () #44 0x000000000065876b in execute () #45 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1baf8a0) at /tmp/pear/install/xdebug/xdebug.c:1390 #46 0x000000000065915d in ?? () #47 0x000000000065876b in execute () #48 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1c1d658) at /tmp/pear/install/xdebug/xdebug.c:1390 #49 0x000000000065915d in ?? () #50 0x000000000065876b in execute () #51 0x00002aaaaf570f4f in xdebug_execute (op_array=0x17e6270) at /tmp/pear/install/xdebug/xdebug.c:1390 #52 0x000000000065915d in ?? () #53 0x000000000065876b in execute () #54 0x00002aaaaf570f4f in xdebug_execute (op_array=0x17e5898) at /tmp/pear/install/xdebug/xdebug.c:1390 #55 0x000000000065915d in ?? () #56 0x000000000065876b in execute () #57 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1775330) at /tmp/pear/install/xdebug/xdebug.c:1390 #58 0x000000000065915d in ?? () ---Type <return> to continue, or q <return> to quit--- #59 0x000000000065876b in execute () #60 0x00002aaaaf570f4f in xdebug_execute (op_array=0xd0c5f8) at /tmp/pear/install/xdebug/xdebug.c:1390 #61 0x0000000000627043 in zend_call_function () #62 0x0000000000535fbe in ?? () #63 0x00002aaaaf56ee62 in xdebug_execute_internal (current_execute_data=0x2aaaaaae0508, return_value_used=1) at /tmp/pear/install/xdebug/xdebug.c:1482 #64 0x000000000065949d in ?? () #65 0x000000000065876b in execute () #66 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1223ea0) at /tmp/pear/install/xdebug/xdebug.c:1390 #67 0x000000000065915d in ?? () #68 0x000000000065876b in execute () #69 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1223d48) at /tmp/pear/install/xdebug/xdebug.c:1390 #70 0x000000000065915d in ?? () #71 0x000000000065876b in execute () #72 0x00002aaaaf570f4f in xdebug_execute (op_array=0x13847c0) at /tmp/pear/install/xdebug/xdebug.c:1390 #73 0x000000000065915d in ?? () #74 0x000000000065876b in execute () #75 0x00002aaaaf570f4f in xdebug_execute (op_array=0x1223bf0) at /tmp/pear/install/xdebug/xdebug.c:1390 #76 0x000000000065915d in ?? () #77 0x000000000065876b in execute () #78 0x00002aaaaf570f4f in xdebug_execute (op_array=0x2aaaaac69780) at /tmp/pear/install/xdebug/xdebug.c:1390 #79 0x000000000065915d in ?? () #80 0x000000000065876b in execute () #81 0x00002aaaaf570f4f in xdebug_execute (op_array=0x2aaaaac684a0) at /tmp/pear/install/xdebug/xdebug.c:1390 #82 0x000000000065915d in ?? () #83 0x000000000065876b in execute () #84 0x00002aaaaf570f4f in xdebug_execute (op_array=0x2aaaaac684a0) at /tmp/pear/install/xdebug/xdebug.c:1390 #85 0x000000000065915d in ?? () #86 0x000000000065876b in execute () #87 0x00002aaaaf570f4f in xdebug_execute (op_array=0x2aaaaab98678) at /tmp/pear/install/xdebug/xdebug.c:1390 #88 0x000000000065915d in ?? () #89 0x000000000065876b in execute () #90 0x00002aaaaf570f4f in xdebug_execute (op_array=0xc44c98) at /tmp/pear/install/xdebug/xdebug.c:1390 #91 0x000000000065915d in ?? () #92 0x000000000065876b in execute () #93 0x00002aaaaf570f4f in xdebug_execute (op_array=0xc41338) at /tmp/pear/install/xdebug/xdebug.c:1390 #94 0x000000000065915d in ?? () #95 0x000000000065876b in execute () #96 0x00002aaaaf570f4f in xdebug_execute (op_array=0xc33178) at /tmp/pear/install/xdebug/xdebug.c:1390 #97 0x0000000000631ba5 in zend_execute_scripts () #98 0x00000000005e1328 in php_execute_script () #99 0x00000000006bbdf0 in ?? () #100 0x00002aaaab7cb994 in __libc_start_main () from /lib64/libc.so.6 #101 0x0000000000422509 in _start () ------------------------------------------------------------------------ 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