php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60223 5.4 and trunk segfaults when running the symfony2 testsuite
Submitted: 2011-11-05 12:15 UTC Modified: 2011-11-08 16:01 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: tyrael@php.net Assigned: tyrael (profile)
Status: Closed Package: Reproducible crash
PHP Version: 5.4SVN-2011-11-05 (SVN) OS: linux
Private report: No CVE-ID: None
 [2011-11-05 12:15 UTC] tyrael@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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-06 16:10 UTC] felipe@php.net
Probably related to bug #60104
 [2011-11-08 16:01 UTC] tyrael@php.net
yeah, it seems as http://svn.php.net/viewvc?view=revision&revision=318907 fixed 
this one too.
 [2011-11-08 16:01 UTC] tyrael@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.


 [2011-11-08 16:01 UTC] tyrael@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tyrael
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Feb 04 10:04:08 2023 UTC