View Issue Details

IDProjectCategoryView StatusLast Update
0000132XdebugUncategorizedpublic2005-08-11 12:40
Reporterdavid Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionopen 
Summary0000132: use of eval causes a segmentation fault
Description

The following code causes a segmentation fault in xdebug_var_export. This seems to occur with any eval statement.

<?php
$estr = 'echo "hi\n";';
eval($estr);
?>

Additional Information

stack trace:

#0 0xb7c539c1 in xdebug_var_export (struc=0xbfffbfe0, str=0xbfffbfc0, level=1, debug_zval=0,
tsrm_ls=0x8268018) at /home/lod/Downloads/xdebug-cvs/xdebug_var.c:176
#1 0xb7c53d3c in get_zval_value (val=0x0, debug_zval=-1073758240)
at /home/lod/Downloads/xdebug-cvs/xdebug_var.c:246
0000002 0xb7c40529 in add_stack_frame (zdata=0xbfffc1d0, op_array=0x8342414, type=-1073758240,
tsrm_ls=0x8268018) at /home/lod/Downloads/xdebug-cvs/xdebug.c:876
0000003 0xb7c40cc4 in xdebug_execute (op_array=0x8342414, tsrm_ls=0x8268018)
at /home/lod/Downloads/xdebug-cvs/xdebug.c:1123
0000004 0x081be3aa in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER (execute_data=0xbfffc1d0, tsrm_ls=0x8268018)
at zend_vm_execute.h:19384
0000005 0x08186a4c in execute (op_array=0x833d80c, tsrm_ls=0x8268018) at zend_vm_execute.h:87
0000006 0xb7c40db3 in xdebug_execute (op_array=0x833d80c, tsrm_ls=0x8268018)
at /home/lod/Downloads/xdebug-cvs/xdebug.c:1158
0000007 0x08158beb in execute_new_code (tsrm_ls=0x8268018)
at /home/lod/Downloads/php-cvs/Zend/zend_execute_API.c:1121
0000008 0x0813e33f in zendparse (tsrm_ls=0x8268018) at zend_language_parser.y:156
0000009 0x0814369c in compile_file (file_handle=0xbffffac0, type=2, tsrm_ls=0x8268018)
at zend_language_scanner.l:394
0000010 0xb7c434f0 in xdebug_compile_file (file_handle=0xbfffbfe0, type=-1073758240, tsrm_ls=0xbfffbfe0)
at /home/lod/Downloads/xdebug-cvs/xdebug.c:1744
0000011 0x08162a31 in zend_execute_scripts (type=8, tsrm_ls=0x8268018, retval=0x0, file_count=3)
at /home/lod/Downloads/php-cvs/Zend/zend.c:1079
0000012 0x08122cc4 in php_execute_script (primary_file=0xbffffac0, tsrm_ls=0x8268018)
at /home/lod/Downloads/php-cvs/main/main.c:1672
0000013 0x081dcfba in main (argc=2, argv=0xbffffb94) at /home/lod/Downloads/php-cvs/sapi/cli/php_cli.c:1039

latest xdebug.c: CVS version 1.264
latest php, php -v:
PHP 5.1.0-dev (cli) (built: Jul 6 2005 10:55:39)
Copyright (c) 1997-2005 The PHP Group
Zend Engine v2.1.0-dev, Copyright (c) 1998-2004 Zend Technologies
with Xdebug v2.0.0beta3-dev, Copyright (c) 2002, 2003, 2004, 2005, by Derick Rethans

TagsNo tags attached.
Operating SystemLinux - Debian, Sarge
PHP Version5.1.0-dev

Activities

derick

2005-07-06 14:11

administrator   ~0000265

I'll have a look at it when the Zend boys stop changing the engine every day :)

derick

2005-08-11 12:40

administrator   ~0000281

Fixed in CVS.

Issue History

Date Modified Username Field Change
2005-07-06 03:48 david New Issue
2005-07-06 14:11 derick Note Added: 0000265
2005-07-06 14:11 derick Category Debug client (console) => Usage problems
2005-08-11 12:40 derick Status new => closed
2005-08-11 12:40 derick Note Added: 0000281
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