Hi,
yes, it crashes in strcmp, due to an uninitialized function name. I think
xdebug makes false asumptions about the zend engine state:
Program received signal SIGSEGV, Segmentation fault.
0x001194fd in add_stack_frame (zdata=0xbfffcbec, op_array=0x852ef1c, type=2)
at /home/jostb/xdebug-2.0.0/xdebug.c:1007
1007 if (
(gdb) list
1002 XDEBUG_LLIST_TAIL(XG(stack))
1003 ) {
1004 /* Ugly hack for call_user_*() type function calls */
1005 zend_function *tmpf =
EG(current_execute_data)->prev_execute_data->function_state.function;
1006 if (tmpf && (tmpf->common.type != 3) && tmpf->common.function_name) {
1007 if (
1008 (strcmp(tmpf->common.function_name, "call_user_func") == 0) ||
1009 (strcmp(tmpf->common.function_name, "call_user_func_array") == 0) ||
1010 (strcmp(tmpf->common.function_name, "call_user_func_method") == 0) ||
1011 (strcmp(tmpf->common.function_name, "call_user_func_method_array") ==
0)
(gdb) p tmpf->common
$4 = {type = 144 '\220', function_name = 0x7 <Address 0x7 out of bounds>,
scope = 0x845fed0, fn_flags = 138807704, prototype = 0x8460368,
num_args = 0, required_num_args = 0, arg_info = 0x0,
pass_rest_by_reference = 99 'c', return_reference = 108 'l'}
(gdb)
Regards,
Jost Boekemeier
6. Aug 2009 11:41 vorm. schrieb am <
php...@li...>:
Hi Jost,
> can you please try to fetch Java.inc directly from the back end, just to >
make sure that APC or ...
Done.
> I have just compiled php 5.2.6 with debug enabled and couldn't reproduce >
this problem.
We managed to identify that "xdebug" plays a part.
When we enable:
zend_extension="/usr/lib/php/20060613/xdebug.so"
It triggers the Segmentation Fault.
If we disable it, it works fine.
We were using xdebug version 2.0.4. We just upgraded to 2.0.5. and the same
"Segmentation Fault" happens.
For now we will disable xdebug and contact their developers.
Could you maybe see if you can reproduce this problem on your PHP 5.2.6
deployment? To install xdebug you just need to run:
-------------------
pecl install xdebug
-------------------
Kind regards,
Antonio
> 5. Aug 2009 5:52 nachm. schrieb am < >
php...@li...>: > > Hi Jost...
--
Antonio Ruiz Zwollo J-ET Senior Developer/Architect MediaTel Group 84-86
Regent Street, London, W1B...
------------------------------------------------------------------------------
Let Crystal Reports h...
|