View Issue Details

IDProjectCategoryView StatusLast Update
0000078Xdebugpublic2004-09-15 09:01
Reportertony2001 Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionopen 
Summary0000078: segfault with set_exception_handler()
Description

PHP segfaults with xdebug enabled on this code:
<?php

function except_handler () {

    $args = func_get_args ();

    print_r ($args);

    echo 'got it!';

}

set_exception_handler ('except_handler');

throw new Exception ('Exception!');

echo 'hello!';

?>

Additional Information

Program received signal SIGSEGV, Segmentation fault.
0x4104c915 in add_stack_frame (zdata=0xbfffd300, op_array=0x8379818, type=0) at /home/tony/CVS/xdebug/xdebug.c:776
776 tmp->lineno = cur_opcode->lineno;
(gdb) bt
#0 0x4104c915 in add_stack_frame (zdata=0xbfffd300, op_array=0x8379818, type=0) at /home/tony/CVS/xdebug/xdebug.c:776
#1 0x4104cec7 in xdebug_execute (op_array=0x8379818) at /home/tony/CVS/xdebug/xdebug.c:988
0000002 0x081fc07f in zend_call_function ()
0000003 0x081fb141 in call_user_function_ex ()
0000004 0x08207755 in zend_execute_scripts ()
0000005 0x081c369d in php_execute_script ()
0000006 0x08236a44 in main ()
0000007 0x40cc6af7 in __libc_start_main () from /lib/i686/libc.so.6

TagsNo tags attached.
Operating System
PHP Version5.0.0-dev

Relationships

has duplicate 0000123 resolvedderick Segmentation fault with __autoload 

Activities

derick

2004-09-15 09:01

administrator   ~0000189

I believe this is fixed now, and I can not reproduce this. Please reopen the bug.

Issue History

Date Modified Username Field Change
2004-07-19 12:53 tony2001 New Issue
2004-09-15 09:01 derick Status new => closed
2004-09-15 09:01 derick Note Added: 0000189
2005-04-08 08:39 derick Relationship added has duplicate 0000123
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)