View Issue Details

IDProjectCategoryView StatusLast Update
0000241XdebugUncategorizedpublic2007-02-17 23:23
Reportermagnus Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionopen 
Summary0000241: Crash in xdebug_get_function_stack()
Description

This code segv:
<?php
function error_handler($errno, $string, $file, $line, $context)
{
$entry = Error_Class::newError();
}

class Error_Class
{
public static function newError($errno = false)
{
return new Error_Entry(false, $errno);
}

public static function getBT()
{
    $tmp = xdebug_get_function_stack();
}

}

class Error_Entry
{
public function __construct($base, $errno)
{
Error_Class::getBT();
}
}

set_error_handler('error_handler');

$tmp = explode('/', trim($_SERVER['FOO'], '/'));
?>

Additional Information

short bt:
#0 0xb7d1f363 in strlen () from /lib/tls/libc.so.6
#1 0xb7a92b84 in add_assoc_string_ex (arg=0x813437c, key=0x82ccef8 "ext", key_len=4, str=0x0, duplicate=1) at /mnt/data1/dev/php/5.2/Zend/zend_API.c:1030
0000002 0xb66b437f in zif_xdebug_get_function_stack (ht=0, return_value=0x8133b04, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at /tmp/xdebug/xdebug.c:2291
0000003 0xb7ab2d63 in execute_internal (execute_data_ptr=0xbfc89580, return_value_used=1) at /mnt/data1/dev/php/5.2/Zend/zend_execute.c:1373
0000004 0xb66b1fe7 in xdebug_execute_internal (current_execute_data=0xbfc89580, return_value_used=1) at /tmp/xdebug/xdebug.c:1550
0000005 0xb7ab3394 in zend_do_fcall_common_helper_SPEC (execute_data=0xbfc89580) at zend_vm_execute.h:202
0000006 0xb7ab689b in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0xbfc89580) at zend_vm_execute.h:1681
0000007 0xb7ab2f27 in execute (op_array=0xb4612f70) at zend_vm_execute.h:92
0000008 0xb66b1cf7 in xdebug_execute (op_array=0xb4612f70) at /tmp/xdebug/xdebug.c:1487

TagsNo tags attached.
Operating SystemDebian 3.1
PHP Version5.2-dev

Activities

derick

2007-02-17 23:23

administrator   ~0000568

Fixed in CVS, thanks for your report.

Issue History

Date Modified Username Field Change
2007-02-15 17:55 magnus New Issue
2007-02-17 23:23 derick Status new => closed
2007-02-17 23:23 derick Note Added: 0000568
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