[xdebug-dev] Bug 0000198: Crash in xdebug.c:1298 (2.0.0beta6)

From: <xdebug-dev[@]lists.xdebug.org>
Date: Thu, 7 Sep 2006 22:57:36 +0200

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000198
======================================================================
Reporter: tylerj
Handler:
======================================================================
Project: Xdebug
Bug ID: 198
Category: Debug client (console)
Reproducibility: always
Severity: crash
Priority: normal
Status: closed
Operating System: OSX Intel 10.4.7
PHP Version: 5.1.4
Xdebug Version: 2.0.0beta6
======================================================================
Date Submitted: 2006-09-05 07:59 CEST
Last Modified: 2006-09-07 22:57 CEST
======================================================================
Summary: Crash in xdebug.c:1298 (2.0.0beta6)
Description:
Segfault at xdebug.c:1298

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0100d17a in xdebug_execute (op_array=0x252a61c, tsrm_ls=0x1101790) at
/Users/tylerj/php-debug/xdebug-2.0.0beta6/xdebug.c:1298
1298 if
(!XG(context).handler->remote_init(&(XG(context)), XDEBUG_REQ)) {

Backtrace.

http://bugs.xdebug.org/bug_view_page.php?bug_id=0000000 0x0100d17a in xdebug_execute (op_array=0x252a61c, tsrm_ls=0x1101790)
at /Users/tylerj/php-debug/xdebug-2.0.0beta6/xdebug.c:1298
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000001 0x014d5344 in zend_execute_scripts ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000002 0x014733cf in php_execute_script ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000003 0x0154f177 in php_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000004 0x0001c62c in ap_run_handler (r=0x18ce650) at config.c:152
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000005 0x0001ca2f in ap_invoke_handler (r=0x18ce650) at config.c:364
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000006 0x0000c556 in ap_process_request (r=0x18ce650) at http_request.c:249
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000007 0x000067ed in ap_process_http_connection (c=0x18ca730) at
http_core.c:253
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000008 0x00028d7a in ap_run_process_connection (c=0x18ca730) at
connection.c:43
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000009 0x00029098 in ap_process_connection (c=0x18ca730, csd=0x18ca650) at
connection.c:176
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000010 0x0001a6aa in child_main (child_num_arg=0) at prefork.c:610
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000011 0x0001a8f4 in make_child (s=0x1841d30, slot=0) at prefork.c:650
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000012 0x0001aa07 in startup_children (number_to_start=5) at prefork.c:722
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000013 0x0001b421 in ap_mpm_run (_pconf=0x1807218, plog=0x183d218,
s=0x1841d30) at prefork.c:941
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000014 0x0002204e in main (argc=2, argv=0xbffff40c) at main.c:623
======================================================================

----------------------------------------------------------------------
 tylerj - 2006-09-05 08:02 CEST
----------------------------------------------------------------------
Sorry i didn't see the category selection.

----------------------------------------------------------------------
 tylerj - 2006-09-06 04:55 CEST
----------------------------------------------------------------------
Same bug occurs in the lastest cvs version.

0x0100d71a in xdebug_execute (op_array=0x2525c1c, tsrm_ls=0x1101790) at
/Users/tylerj/php-debug/xdebug/xdebug.c:1288
1288 if
(!XG(context).handler->remote_init(&(XG(context)), XDEBUG_REQ)) {

cvs status xdebug.c
=======================================
File: xdebug.c Status: Up-to-date

   Working revision: 1.337
   Repository revision: 1.337 /repository/xdebug/xdebug.c,v
   Sticky Tag: (none)
   Sticky Date: (none)
   Sticky Options: (none)

edited on: 2006-09-06 04:54

edited on: 2006-09-06 04:55

----------------------------------------------------------------------
 derick - 2006-09-07 22:57 CEST
----------------------------------------------------------------------
This is now fixed in CVS. However, this could only happen if you specified
a non-existing handler with the xdebug.remote_handler setting. You should
use "dbgp" there. The code will now give a warning if you pick an
nonexisting one.

Bug History
Date Modified Username Field Change
======================================================================
2006-09-05 07:59tylerj New Bug
2006-09-05 07:59tylerj Bug Monitored: tylerj
2006-09-05 08:02tylerj Bugnote Added: 0000451
2006-09-06 04:50tylerj Bugnote Added: 0000452
2006-09-06 04:54tylerj Bugnote Edited: 0000452
2006-09-06 04:55tylerj Bugnote Edited: 0000452
2006-09-07 22:57derick Bugnote Added: 0000453
2006-09-07 22:57derick Status new => closed
======================================================================
Received on Thu Sep 07 2006 - 22:57:39 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST