View Issue Details

IDProjectCategoryView StatusLast Update
0000234XdebugUncategorizedpublic2007-01-19 19:34
Reportersilfreed Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionopen 
Summary0000234: 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.

Additional Information

PHPUnit 3.0.2

TagsNo tags attached.
Operating System
PHP Version5.1.6

Activities

silfreed

2007-01-18 22:22

reporter   ~0000546

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

reporter   ~0000547

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

derick

2007-01-18 22:36

administrator   ~0000548

Please try the CVS version of Xdebug, this should be fixed already.

regards,
Derick

silfreed

2007-01-19 16:12

reporter   ~0000552

The crash seems to be fixed, but I don't appear to be getting a backtrace for php errors anymore.

php -v

PHP 5.1.6 (cli) (built: Dec 15 2006 10:43:55)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with Xdebug v2.0.0RC3-dev, Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, by Derick Rethans

silfreed

2007-01-19 19:21

reporter   ~0000553

Nevermind. I must not have compiled the module correctly the first time. Everything seems to be functioning fine.

derick

2007-01-19 19:34

administrator   ~0000554

Great, and thanks for testing!

Issue History

Date Modified Username Field Change
2007-01-18 22:21 silfreed New Issue
2007-01-18 22:22 silfreed Note Added: 0000546
2007-01-18 22:22 silfreed Note Added: 0000547
2007-01-18 22:36 derick Note Added: 0000548
2007-01-18 22:36 derick Status new => feedback
2007-01-19 16:12 silfreed Note Added: 0000552
2007-01-19 19:21 silfreed Note Added: 0000553
2007-01-19 19:34 derick Status feedback => closed
2007-01-19 19:34 derick Note Added: 0000554
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized