View Issue Details

IDProjectCategoryView StatusLast Update
0000130XdebugUncategorizedpublic2005-06-30 14:47
Reportersebastian Assigned Toderick  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionno change required 
Platformx86OSLinuxOS Version2.6
Product Version2.0.0dev 
Summary0000130: PHP 5.1 HEAD segfaults for any PHP script when Xdebug is enabled
Description

See backtrace.

Additional Information

sb@wopr-mobile ~ % cat test.php
<?php
?>
sb@wopr-mobile ~ % gdb php
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r test.php
Starting program: /usr/local/php-5.1/bin/php test.php
[Thread debugging using libthread_db enabled]
[New Thread -1211069792 (LWP 23840)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211069792 (LWP 23840)]
0xb7cecc83 in add_stack_frame (zdata=0x0, op_array=0x845debc, type=0)
at /home/sb/xdebug/xdebug.c:906
906 if (XDEBUG_LLIST_TAIL(XG(stack))) {
(gdb) bt
#0 0xb7cecc83 in add_stack_frame (zdata=0x0, op_array=0x845debc, type=0)
at /home/sb/xdebug/xdebug.c:906
#1 0xb7cedcc1 in xdebug_execute (op_array=0x845debc)
at /home/sb/xdebug/xdebug.c:1123
0000002 0x08279696 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /usr/local/src/php/php-5.1/Zend/zend.c:1087
0000003 0x0822ffcd in php_execute_script (primary_file=0xbffeefb0)
at /usr/local/src/php/php-5.1/main/main.c:1671
0000004 0x082f04b3 in main (argc=2, argv=0xbffef084)
at /usr/local/src/php/php-5.1/sapi/cli/php_cli.c:1039

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

Activities

derick

2005-06-30 14:47

administrator   ~0000261

This was a bug in PHP, not in Xdebug - it's fixed in PHP's CVS now.

Issue History

Date Modified Username Field Change
2005-06-30 12:15 sebastian New Issue
2005-06-30 14:47 derick Status new => resolved
2005-06-30 14:47 derick Resolution open => no change required
2005-06-30 14:47 derick Assigned To => derick
2005-06-30 14:47 derick Note Added: 0000261
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