Edit report at https://bugs.php.net/bug.php?id=60223&edit=1
ID: 60223 Updated by: fel...@php.net Reported by: tyr...@php.net Summary: 5.4 and trunk segfaults when running the symfony2 testsuite Status: Open Type: Bug Package: Reproducible crash Operating System: linux PHP Version: 5.4SVN-2011-11-05 (SVN) Block user comment: N Private report: N New Comment: Probably related to bug #60104 Previous Comments: ------------------------------------------------------------------------ [2011-11-05 12:15:07] tyr...@php.net Description: ------------ 5.4 and trunk segfaults running the testsuite: http://ci.qa.php.net/view/php-userland/job/php-symfony2/75/label=debian- amd64,phpversion=5.4/console http://ci.qa.php.net/view/php-userland/job/php-symfony2/75/label=debian- amd64,phpversion=trunk/console while 5.3 runs the suite successfully: http://ci.qa.php.net/view/php-userland/job/php-symfony2/75/label=debian- amd64,phpversion=5.3/console I rerun the command with --debug for phpunit, and the last test before the segfault is Symfony\Tests\Bridge\Doctrine\Form\Type\EntityTypeTest::testSubmitMultipleExpand ed. I rerun the test only for that test class(Symfony\Tests\Bridge\Doctrine\Form\Type\EntityTypeTest), and it is passing, no segfault. The segfault also goes away, if I use --process-isolation for phpunit (will run each test in a separate process, instead of running them in the same process that is running phpunit), so it seems that there is no single snippet to reproduce the error. here is the backtrace from the coredump that I got: #0 0x00000000008cdef5 in ZEND_SEND_VAR_SPEC_CV_HANDLER (execute_data=0x7f676823fa48) at /home/jenkins/workspace/php-src-5.4-matrix- build/architecture/x86-64/os/linux-debian-6.0/Zend/zend_vm_execute.h:26859 26859 && ARG_SHOULD_BE_SENT_BY_REF(EX(fbc), opline- >op2.opline_num)) { (gdb) bt #0 0x00000000008cdef5 in ZEND_SEND_VAR_SPEC_CV_HANDLER (execute_data=0x7f676823fa48) at /home/jenkins/workspace/php-src-5.4-matrix- build/architecture/x86-64/os/linux-debian-6.0/Zend/zend_vm_execute.h:26859 #1 0x00000000007fcfa0 in execute (op_array=0x4d2b118) at /home/jenkins/workspace/php-src-5.4-matrix-build/architecture/x86-64/os/linux- debian-6.0/Zend/zend_vm_execute.h:410 #2 0x00000000007be329 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/jenkins/workspace/php-src-5.4-matrix- build/architecture/x86-64/os/linux-debian-6.0/Zend/zend.c:1272 #3 0x0000000000731b6b in php_execute_script (primary_file=0x7fff101430b0) at /home/jenkins/workspace/php-src-5.4-matrix-build/architecture/x86-64/os/linux- debian-6.0/main/main.c:2414 #4 0x000000000090e88a in do_cli (argc=10, argv=0x7fff10143468) at /home/jenkins/workspace/php-src-5.4-matrix-build/architecture/x86-64/os/linux- debian-6.0/sapi/cli/php_cli.c:983 #5 0x000000000090f786 in main (argc=10, argv=0x7fff10143468) at /home/jenkins/workspace/php-src-5.4-matrix-build/architecture/x86-64/os/linux- debian-6.0/sapi/cli/php_cli.c:1356 if you need any help to further debug this, just ping me. Test script: --------------- git clone git://github.com/symfony/symfony.git; cd symfony; ./PATH_TO_5.4_BINARY -d include_path=.:/usr/share/php:/usr/share/pear -d date.timezone=UTC -d memory_limit=512M ./vendors.php; ./PATH_TO_5.4_BINARY -d include_path=.:/usr/share/php:/usr/share/pear -d date.timezone=UTC -d memory_limit=512M /usr/bin/phpunit --log-junit=junit.xml; Expected result: ---------------- no segfault Actual result: -------------- segfault ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60223&edit=1