View Issue Details

IDProjectCategoryView StatusLast Update
0000032Xdebugpublic2003-12-19 05:14
ReporterDavey Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionopen 
Summary0000032: xdebug segfaults PHP
Description

When running this rather obscure code:
${1} = "foo"; echo ${1}, "\n";

xdebug cause PHP to segfault and give an Application Error on FBSD and Win32 respectively.

I found this bug when testing for http://bugs.php.net/bug.php?id=26662 in case you're wondering about my sanity for that code.

The additional info is a gdb backtrace. I'm using the xdebug you gave me for Win32 and whatevers in PEAR for FBSD

Additional Information

#0 0x28878fd4 in strdup () from /usr/lib/libc.so.4
#1 0x289a2525 in add_used_variables ()
from /usr/local/bin/php/4.3/lib/php/extensions/no-debug-non-zts-20020429/xdebug.so
0000002 0x289a2934 in xdebug_execute ()
from /usr/local/bin/php/4.3/lib/php/extensions/no-debug-non-zts-20020429/xdebug.so
0000003 0x8166436 in zend_eval_string (
str=0xbfbffc5d "${1} = \"foo\"; echo ${1}, \"\n\";", retval_ptr=0x0,
string_name=0x81be734 "Command line code")
at /usr/home/davey/phpsource/php4-STABLE-200312190030/Zend/zend_execute_API.c:644
0000004 0x8182ff3 in main (argc=3, argv=0xbfbffb40)
at /usr/home/davey/phpsource/php4-STABLE-200312190030/sapi/cli/php_cli.c:858
0000005 0x806f47d in _start ()

TagsNo tags attached.
Operating SystemWinXP Pro SP1 and FBSD 4.4
PHP Version4.3.5-dev

Activities

ilia

2003-12-19 05:14

reporter   ~0000080

Fixed in CVS.

Issue History

Date Modified Username Field Change
2003-12-19 04:14 Davey New Issue
2003-12-19 05:14 ilia Status new => closed
2003-12-19 05:14 ilia Note Added: 0000080
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)