[xdebug-dev] Bug 0000234: Segmentation Fault when running tests in PHPUnit

From: <noreply[@]lists.xdebug.org>
Date: Thu, 18 Jan 2007 22:36:30 +0100

A BUGNOTE has been added to this bug.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000234
======================================================================
Reporter: silfreed
Handler:
======================================================================
Project: Xdebug
Bug ID: 234
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: new
Operating System:
PHP Version: 5.1.6
Xdebug Version: 2.0.0rc2-dev
======================================================================
Date Submitted: 2007-01-18 22:21 CET
Last Modified: 2007-01-18 22:36 CET
======================================================================
Summary: Segmentation Fault when running tests in PHPUnit
Description:
I have a unit test file that will consistently create a segmentation fault.
This appears to be just as PHPUnit is starting to execute tests (after
setup). The tests are being executed from the CLI. I'll attach my config
settings and a backtrace.
======================================================================

----------------------------------------------------------------------
 silfreed - 2007-01-18 22:22 CET
----------------------------------------------------------------------
xdebug support => enabled
Version => 2.0.0RC2

Supported protocols => Revision
DBGp - Common DeBuGger Protocol => $Revision: 1.112 $
GDB - GNU Debugger protocol => $Revision: 1.82 $
PHP3 - PHP 3 Debugger protocol => $Revision: 1.20 $

Directive => Local Value => Master Value
xdebug.allowed_clients => no value => no value
xdebug.auto_trace => Off => Off
xdebug.collect_includes => On => On
xdebug.collect_params => Off => Off
xdebug.collect_return => Off => Off
xdebug.collect_vars => Off => Off
xdebug.default_enable => Off => Off
xdebug.dump.COOKIE => no value => no value
xdebug.dump.ENV => no value => no value
xdebug.dump.FILES => no value => no value
xdebug.dump.GET => no value => no value
xdebug.dump.POST => no value => no value
xdebug.dump.REQUEST => no value => no value
xdebug.dump.SERVER => no value => no value
xdebug.dump.SESSION => no value => no value
xdebug.dump_globals => On => On
xdebug.dump_once => On => On
xdebug.dump_undefined => Off => Off
xdebug.extended_info => On => On
xdebug.idekey => silfreed => no value
xdebug.manual_url => http://www.php.net => http://www.php.net
xdebug.max_nesting_level => 100 => 100
xdebug.profiler_aggregate => Off => Off
xdebug.profiler_append => Off => Off
xdebug.profiler_enable => Off => Off
xdebug.profiler_enable_trigger => Off => Off
xdebug.profiler_output_dir => /tmp => /tmp
xdebug.profiler_output_name => crc32 => crc32
xdebug.remote_autostart => Off => Off
xdebug.remote_enable => Off => Off
xdebug.remote_handler => dbgp => dbgp
xdebug.remote_host => localhost => localhost
xdebug.remote_log => no value => no value
xdebug.remote_mode => req => req
xdebug.remote_port => 9000 => 9000
xdebug.show_exception_trace => Off => Off
xdebug.show_local_vars => Off => Off
xdebug.show_mem_delta => Off => Off
xdebug.trace_format => 0 => 0
xdebug.trace_options => 0 => 0
xdebug.trace_output_dir => /tmp => /tmp
xdebug.trace_output_name => crc32 => crc32
xdebug.var_display_max_children => 128 => 128
xdebug.var_display_max_data => 512 => 512
xdebug.var_display_max_depth => 2 => 2

----------------------------------------------------------------------
 silfreed - 2007-01-18 22:22 CET
----------------------------------------------------------------------
Core was generated by `php -f lib/wx/IDManagerTest.php'.
Program terminated with signal 11, Segmentation fault.
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000000 0x0048172a in get_zval_value () from /usr/lib/php/modules/xdebug.so
(gdb) bt
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000000 0x0048172a in get_zval_value () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000001 0x00481977 in get_zval_synopsis () from
/usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000002 0x00469742 in xdebug_execute_internal () from
/usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000003 0x0046a5ba in xdebug_throw_exception_hook () from
/usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000004 0x081df85d in zend_throw_exception_internal ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000005 0x081ecb20 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000006 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000007 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000008 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000009 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000010 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000011 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000012 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000013 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000014 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000015 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000016 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000017 0x081c3103 in zend_call_function ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000018 0x080ef616 in zif_reflection_method_invoke ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000019 0x081e6dc2 in execute_internal ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000020 0x00468d1c in xdebug_execute_internal () from
/usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000021 0x081e79c9 in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000022 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000023 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000024 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000025 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000026 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000027 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000028 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000029 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000030 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000031 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000032 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000033 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000034 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000035 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000036 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000037 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000038 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000039 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000040 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000041 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000042 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000043 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000044 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000045 0x081e74dc in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000046 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000047 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000048 0x081c3103 in zend_call_function ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000049 0x081c4440 in call_user_function_ex ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000050 0x0812714f in zif_call_user_func ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000051 0x081e6dc2 in execute_internal ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000052 0x00468d1c in xdebug_execute_internal () from
/usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000053 0x081e79c9 in zend_get_user_opcode_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000054 0x081e8c49 in execute ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000055 0x004689ca in xdebug_execute () from /usr/lib/php/modules/xdebug.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000056 0x081cc8c9 in zend_execute_scripts ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000057 0x08192183 in php_execute_script ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000058 0x08243c31 in main ()

----------------------------------------------------------------------
 derick - 2007-01-18 22:36 CET
----------------------------------------------------------------------
Please try the CVS version of Xdebug, this should be fixed already.

regards,
Derick

Bug History
Date Modified Username Field Change
======================================================================
2007-01-18 22:21silfreed New Bug
2007-01-18 22:21silfreed Bug Monitored: silfreed
2007-01-18 22:22silfreed Bugnote Added: 0000546
2007-01-18 22:22silfreed Bugnote Added: 0000547
2007-01-18 22:36derick Bugnote Added: 0000548
======================================================================
Received on Thu Jan 18 2007 - 22:36:35 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST