ID:               49997
 Comment by:       flavius dot as at gmail dot com
 Reported By:      flavius dot as at gmail dot com
 Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Linux x86_64
 PHP Version:      5.3.0
 New Comment:

Done. The output:

Reading symbols from /home/flav/php-5.3.0/sapi/cli/php...done.
(gdb) run /usr/bin/phpunit --bootstrap bootstrap.php --configuration
phpunit.xml testunit/
Starting program: /home/flav/php-5.3.0/sapi/cli/php /usr/bin/phpunit
--bootstrap bootstrap.php --configuration phpunit.xml testunit/
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00000000007d93db in ZEND_ADD_INTERFACE_SPEC_CONST_HANDLER
(execute_data=0x7ffff65529a8) at
/home/flav/php-5.3.0/Zend/zend_vm_execute.h:892
892             if (!(iface->ce_flags & ZEND_ACC_INTERFACE)) {
(gdb) bt
#0  0x00000000007d93db in ZEND_ADD_INTERFACE_SPEC_CONST_HANDLER
(execute_data=0x7ffff65529a8) at
/home/flav/php-5.3.0/Zend/zend_vm_execute.h:892
#1  0x00000000007d6b50 in execute (op_array=0x161f078) at
/home/flav/php-5.3.0/Zend/zend_vm_execute.h:104
#2  0x00000000007a38de in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/flav/php-5.3.0/Zend/zend.c:1188
#3  0x000000000072ed19 in php_execute_script
(primary_file=0x7fffffffe1e0) at /home/flav/php-5.3.0/main/main.c:2196
#4  0x000000000088c885 in main (argc=7, argv=0x7fffffffe438) at
/home/flav/php-5.3.0/sapi/cli/php_cli.c:1188


Previous Comments:
------------------------------------------------------------------------

[2009-10-26 14:39:50] [email protected]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

------------------------------------------------------------------------

[2009-10-26 13:22:49] flavius dot as at gmail dot com

Description:
------------
PHP 5.3.0 crashes when a class is implementing an interface declared in
another namespace

Reproduce code:
---------------
Hi

I am sorry, I was unable to isolate the bug and create a PoC.
However the code (which is rather small) can be found at
svn://yet-another-project.com/projects/yap.

Rev 1. is working, but the crashing code is commented out, Rev.2
crashes when issuing /trunk/tests/runtests.sh.

The tests were written with PHPUnit 3.4.1 in mind.
The error message when running the testsuite through /usr/bin/phpunit
is:
./runtests.sh: line 3: 16512 Segmentation fault      phpunit
--bootstrap bootstrap.php --configuration phpunit.xml testunit/

But when issuing /usr/bin/php /usr/bin/phpunit --bootstrap
bootstrap.php --configuration phpunit.xml testunit/ I only get:
Segmentation fault

See the diff between r1 and r2.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49997&edit=1

Reply via email to