View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000289 | Xdebug | Uncategorized | public | 2007-07-02 08:48 | 2007-07-08 21:04 |
Reporter | AlexD | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | open | ||
Summary | 0000289: Xdebug terminates connection when eval fails | ||||
Description | xdebug sends back status='stopped' with error code 'ok' and closes connection and terminates the debug session when it gets something like 'asdasd.asdasd(asdasd)' (this is completely wrong sentence) to evaluate. It should not happen - closing of the connection. Xdebug should return smth like 'not initialized' or 'invalid' | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 5.2.1 | ||||
|
Platform: WinXP, XDebug 2.0.0rc4 is taken here as a compiled version. |
|
Could you please provide some complete, but short, sample code and a remote debugger log? Please see "Remote Debugger Bugs" at http://xdebug.org/support.php |
|
Reminder sent to AlexD Could you please provide some complete, but short, sample code and a remote debugger log? Please see "Remote Debugger Bugs" at http://xdebug.org/support.php |
|
sorry for delay... This is the log: <- eval -i 1 -- asd.asd(asd) This is PHP file (sensless): <?php $xx = array( 0=> array('id'=>1, 'name'=>'name1'), 1=> array('id'=>2, 'name'=>'name2')); $s = in_array(array('id'=>1), $xx); echo 'asd'; ?> When it runs under visual studion 2003, I've got an exception with following stack trace: ntdll.dll!7c901230() It looks like the data corruption is happend somewhere, because in func xdebug_xml_text_node_dtor on line 142 node->text had a trash... But I'm not sure about that... not a C-man :) There is one more problem: xdebug.remote_log doesn't work in WinXP. I had to comment out in usefulstuff.c, in function FILE xdebug_fopen(char fname, char mode, char extension, char **new_fname) the following block:
Because new_fname is null in case of the log file, tmp_fname will be freed before opening of the temp file. Now it's a mem leak too, but at least I had a chance to get the log. |
|
forgot. After giving of "eval -i 1 -- asd.asd(asd)" I'm getting immediately "Disconnect" in debugclient (your one)... |
|
this is the complete remote log (the previous one has been cutted because of debugging session) Log opened at 2007-07-08 12:56:43 <- eval -i 1 -- asd.asd(asd) -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopped" reason="ok"></response> Log closed at 2007-07-08 12:56:49 |
|
I fixed both issues in CVS, thanks for the report. |
Date Modified | Username | Field | Change |
---|---|---|---|
2007-07-02 08:48 | AlexD | New Issue | |
2007-07-02 08:49 | AlexD | Note Added: 0000671 | |
2007-07-03 22:31 | derick | Note Added: 0000673 | |
2007-07-03 22:31 | derick | Status | new => feedback |
2007-07-07 22:00 | derick | Note Added: 0000678 | |
2007-07-08 13:25 | AlexD | Note Added: 0000681 | |
2007-07-08 13:26 | AlexD | Note Added: 0000682 | |
2007-07-08 13:58 | AlexD | Note Added: 0000685 | |
2007-07-08 21:04 | derick | Status | feedback => closed |
2007-07-08 21:04 | derick | Note Added: 0000686 | |
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 |