[xdebug-dev] Bug 0000230: remote debug crash at 000116d1 on runtime err/warning

From: <noreply[@]lists.xdebug.org>
Date: Wed, 28 Feb 2007 20:43:26 +0100

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000230
======================================================================
Reporter: sheepy
Handler:
======================================================================
Project: Xdebug
Bug ID: 230
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: closed
Operating System: Windows XP Pro / Apache 2.2.3
PHP Version: 4.4.4
Xdebug Version: 2.0.0rc2-dev
======================================================================
Date Submitted: 2006-12-18 08:58 CET
Last Modified: 2007-02-28 20:43 CET
======================================================================
Summary: remote debug crash at 000116d1 on runtime err/warning
Description:
With remote debug on, when a runtime error/warning is generated, Apache
crash at downloaded xdebug dll offset 000116d1
Apache restarts automatically

It happens with call to non-existant method, referencing non-existant var,
or even trigger_error
Compile-time error shows up without problem
======================================================================

----------------------------------------------------------------------
 derick - 2006-12-19 19:14 CET
----------------------------------------------------------------------
I can not reproduce this with the latest CVS version on Linux. Could you
please provide a short (but complete) reproducing script?

----------------------------------------------------------------------
 sheepy - 2006-12-20 04:50 CET
----------------------------------------------------------------------
<?php
function test() {}
test(); // Breakpoint here works

$x; // Crash here

?>

When Weaverslave's debugger is off I got a normal error stack trace from
xdebug. When it is on I got crash and apache restarts.

What's curious is, I got this case while I was trying to produce a minimal
test case for another crash that seems to be the same, except that I didn't
get any error or notice when I run that without debugger.
It's possible that the error is silenced, I've yet to trace to that point
- the debugger won't crash until the error is thrown. It's the same at
home where I use XP Pro with Apache 2.0.52 and IIRC PHP 4.4.4.

I am using pre-compiled windows module, since I have no C compiler at
work.

Here's my xdebug ini, in case it helps:

[xdebug]
zend_extension_ts="E:\wamp\php4\extensions\php_xdebug.dll"
xdebug.manual_url="http://www.php.net"
xdebug.auto_trace=0
xdebug.profiler_enable = 0
xdebug.profiler_append = 0
xdebug.profiler_output_dir="E:\wamp\logs\profile"
xdebug.remote_autostart=1
xdebug.remote_enable=on
xdebug.remote_mode=req
xdebug.remote_handler=gdb
xdebug.remote_host=localhost
xdebug.remote_port=17869
xdebug.extended_info=1
xdebug.remote_log = "E:\wamp\logs\remote.log"

I tried comment out non-remote lines, but it's still the same.
I can also send you windows's dump file if you think that may help.

----------------------------------------------------------------------
 derick - 2006-12-25 20:48 CET
----------------------------------------------------------------------
I tried on windows now, but I still can not reproduce it. Could you try the
Xdebug dll from http://xdebug.org/link.php?url=xdebug200rc2-441-win to see
if it works? If not, please provide the full output of weaver slaves'
protocol window (including setting the breakpoints).

----------------------------------------------------------------------
 derick - 2007-01-02 22:25 CET
----------------------------------------------------------------------
Reminder sent to sheepy

I tried on windows now, but I still can not reproduce it. Could you try
the Xdebug dll from http://xdebug.org/link.php?url=xdebug200rc2-441-win to
see if it works? If not, please provide the full output of weaver slaves'
protocol window (including setting the breakpoints).

----------------------------------------------------------------------
 derick - 2007-01-14 18:59 CET
----------------------------------------------------------------------
Reminder sent to sheepy

I tried on windows now, but I still can not reproduce it. Could you try
the Xdebug dll from http://xdebug.org/link.php?url=xdebug200rc2-441-win to
see if it works? If not, please provide the full output of weaver slaves'
protocol window (including setting the breakpoints).

----------------------------------------------------------------------
 derick - 2007-01-29 20:00 CET
----------------------------------------------------------------------
Reminder sent to sheepy

I tried on windows now, but I still can not reproduce it. Could you try
the Xdebug dll from http://xdebug.org/link.php?url=xdebug200rc2-441-win to
see if it works? If not, please provide the full output of weaver slaves'
protocol window (including setting the breakpoints).

----------------------------------------------------------------------
 derick - 2007-02-19 22:49 CET
----------------------------------------------------------------------
Reminder sent to sheepy

Last reminder:

I tried on windows now, but I still can not reproduce it. Could you try
the Xdebug dll from http://xdebug.org/link.php?url=xdebug200rc3-441-win to
see if it works? If not, please provide the full output of Weaverslaves'
protocol window (including setting the breakpoints).

----------------------------------------------------------------------
 sheepy - 2007-02-22 04:01 CET
----------------------------------------------------------------------
I tried rc3, and it seems to work fine. :) Thanks for your hard work and
sorry for the inattention I was paying.

----------------------------------------------------------------------
 derick - 2007-02-28 20:43 CET
----------------------------------------------------------------------
Fixed in CVS.

Bug History
Date Modified Username Field Change
======================================================================
2006-12-18 08:58sheepy New Bug
2006-12-18 08:58sheepy Bug Monitored: sheepy
2006-12-19 19:14derick Bugnote Added: 0000523
2006-12-19 19:14derick Status new => feedback
2006-12-20 04:50sheepy Bugnote Added: 0000524
2006-12-25 20:48derick Bugnote Added: 0000534
2007-01-02 22:25derick Bugnote Added: 0000535
2007-01-14 18:59derick Bugnote Added: 0000542
2007-01-29 20:00derick Bugnote Added: 0000559
2007-02-19 22:49derick Bugnote Added: 0000572
2007-02-22 04:01sheepy Bugnote Added: 0000574
2007-02-28 20:43derick Bugnote Added: 0000577
2007-02-28 20:43derick Status feedback => closed
======================================================================
Received on Wed Feb 28 2007 - 20:43:29 GMT

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