View Issue Details

IDProjectCategoryView StatusLast Update
0000101Xdebugpublic2004-11-28 20:34
Reportersegv74 Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionopen 
Summary0000101: dosen't support set_exception_handler() correctly
Description

use set_exception_handler() and throw exception makes
web server crash.

Additional Information

(gdb) bt
#0 add_stack_frame (zdata=0xbfffb860, op_array=0x81ca4e4, type=0) at /home/segv/install/xdebug/xdebug.c:854
#1 0x40953046 in xdebug_execute (op_array=0x81ca4e4) at /home/segv/install/xdebug/xdebug.c:1067
0000002 0x40246fb1 in zend_call_function (fci=0xbfffb910, fci_cache=0x0) at /home/segv/install/php-5.0.2/Zend/zend_execute_API.c:838
0000003 0x40246003 in call_user_function_ex (function_table=0x80d23f8, object_pp=0x0, function_name=0x8198a3c, retval_ptr_ptr=0xbfffb984, param_count=1,
params=0x8289e04, no_separation=1, symbol_table=0x0) at /home/segv/install/php-5.0.2/Zend/zend_execute_API.c:553
0000004 0x4025371b in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/segv/install/php-5.0.2/Zend/zend.c:1077
0000005 0x4020df14 in php_execute_script (primary_file=0xbfffdc80) at /home/segv/install/php-5.0.2/main/main.c:1629
0000006 0x40283214 in apache_php_module_main (r=0x8156664, display_source_mode=0) at /home/segv/install/php-5.0.2/sapi/apache/sapi_apache.c:54
0000007 0x40284196 in send_php (r=0x8156664, display_source_mode=0, filename=0x8157324 "/home/ssw/public_html/S3/hompy/index.nwz")
at /home/segv/install/php-5.0.2/sapi/apache/mod_php5.c:622
0000008 0x4028420f in send_parsed_php (r=0x8156664) at /home/segv/install/php-5.0.2/sapi/apache/mod_php5.c:637
0000009 0x08071f23 in ap_invoke_handler ()
0000010 0x08086d4d in process_request_internal ()
0000011 0x08086dac in ap_process_request ()
0000012 0x0807df2d in child_main ()
0000013 0x0807e18d in make_child ()
0000014 0x0807e233 in startup_children ()
0000015 0x0807e8ea in standalone_main ()
0000016 0x0807f108 in main ()
0000017 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) list
849 }
850
851 } else {
852 if (EG(opline_ptr)) {
853 cur_opcode = EG(opline_ptr);
854 tmp->lineno = cur_opcode->lineno;
855 }
856 if (XG(collect_params)) {
857 tmp->var = xdmalloc(arg_count
sizeof (xdebug_var));
858 for (i = 0; i < arg_count; i++) {
(gdb) print cur_opcode
$3 = (zend_op *) 0x0

when i changed xdebug.c:854 like belows, It seems that works fine.
xdebug.c:854
if (cur_opcode)
tmp->lineno = cur_opcode->lineno;

TagsNo tags attached.
Operating Systemlinux
PHP Version5.0.2

Activities

derick

2004-11-28 20:34

administrator   ~0000217

Thanks for your report, this is now fixed in CVS with a patch similar to yours.

Issue History

Date Modified Username Field Change
2004-11-11 02:06 segv74 New Issue
2004-11-28 20:34 derick Status new => closed
2004-11-28 20:34 derick Note Added: 0000217
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)