From:             tyrael
Operating system: linux
PHP version:      5.4SVN-2011-11-05 (SVN)
Package:          Reproducible crash
Bug Type:         Bug
Bug description:5.4 and trunk segfaults when running the symfony2 testsuite

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 bug report at https://bugs.php.net/bug.php?id=60223&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60223&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60223&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60223&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60223&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60223&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60223&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60223&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60223&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60223&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60223&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60223&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60223&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60223&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60223&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60223&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60223&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60223&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60223&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60223&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60223&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60223&r=mysqlcfg

Reply via email to