MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000841XdebugUsage problems (Wrong Results)public2012-05-21 15:422012-05-29 08:47
Reporteramokryshev 
Assigned Toderick 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformIntel x86OSWindowsOS Version7 Ultimate
Product Version2.2.0 
Target VersionFixed in Version2.2.1 
Summary0000841: xdebug + netbeans + MySQLi => java.net.SocketException: Connection reset
Description
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: C:\Users\AMokryshev\Documents\apache\htdocs\testshop\includes\classes\database\mysqli.php -> file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/includes/classes/database/mysqli.php [^]
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/index.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\index.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/index.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\index.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/includes/classes/database/mysqli.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\includes\classes\database\mysqli.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/includes/classes/database/mysqli.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\includes\classes\database\mysqli.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/includes/classes/database.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\includes\classes\database.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/includes/application_top.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\includes\application_top.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/index.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\index.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/includes/classes/database/mysqli.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\includes\classes\database\mysqli.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/includes/classes/database/mysqli.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\includes\classes\database\mysqli.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/includes/classes/database.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\includes\classes\database.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/includes/application_top.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\includes\application_top.php
INFO [org.netbeans.modules.php.dbgp.URIMapper]: class org.netbeans.modules.php.dbgp.URIMapper$1: file:///C:/Users/AMokryshev/Documents/apache/htdocs/testshop/index.php [^] -> C:\Users\AMokryshev\Documents\apache\htdocs\testshop\index.php
INFO [org.netbeans.modules.php.dbgp.DebugSession]
java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:189)
    at java.net.SocketInputStream.read(SocketInputStream.java:121)
    at java.net.SocketInputStream.read(SocketInputStream.java:203)
    at org.netbeans.modules.php.dbgp.packets.DbgpMessage.getDataSize(DbgpMessage.java:294)
    at org.netbeans.modules.php.dbgp.packets.DbgpMessage.create(DbgpMessage.java:126)
    at org.netbeans.modules.php.dbgp.DebugSession.receiveData(DebugSession.java:265)
    at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:213)
[catch] at org.netbeans.modules.php.dbgp.DebugSession.run(DebugSession.java:143)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

and with xdebug log tail:

<- context_get -i 55 -c 0
Log opened at 2012-05-21 14:28:53
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Could not connect to client. :-(
Log closed at 2012-05-21 14:28:54

Log opened at 2012-05-21 14:28:55
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Could not connect to client. :-(
Log closed at 2012-05-21 14:28:56


full log in attachment

best regards, Alexander
TagsNo tags attached.
Operating System
PHP Version5.4.3
Attached Fileslog file icon xdebug.log [^] (45,599 bytes) 2012-05-21 15:42
log file icon xdebug 22052012.log [^] (20,939 bytes) 2012-05-22 18:28
log file icon messages 22052012.log [^] (2,143 bytes) 2012-05-22 18:29

- Relationships

-  Notes
(0002182)
amokryshev (reporter)
2012-05-21 15:45

My begin of message was br cutted by this site? i typed:

i trying to debug script like this:

function connect() {
              $connect_function = 'mysqli_connect';
      if ($this->link = @$connect_function($this->server, $this->username, $this->password)) {
                $this->setConnected(true);
        @mysqli_set_charset($this->link, "utf8");
        if ( version_compare($this->getServerVersion(), '5.0.2') >= 0 ) {
          $this->simpleQuery('set session sql_mode="STRICT_ALL_TABLES"');
        }
        return true;
      } else {
        $this->setError(mysqli_connect_error(), mysqli_connect_errno());
        return false;
      }
    }

and get socket exception on:

$this->link = @$connect_function($this->server, $this->username, $this->password)
(0002183)
derick (administrator)
2012-05-21 15:50

Can you reproduce this with a small (self-contained) script as well? If so, could you provide:

- that script
- the remote log that shows the error from that script
(0002186)
amokryshev (reporter)
2012-05-22 18:27

Hi, Derek! thanks for your help!

 here is it:

<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    
    <body>
<?php
   $link = @mysqli_connect("localhost", "root", "XXXXXX");
   echo "Status" + $link;
   
?>
    </body>
</html>

script was crush after $link = @mysqli_connect("localhost", "root", "XXXXXX");

fresh xdebug.log and messages.log in attachment

Best Regards, Alexander
(0002188)
amokryshev (reporter)
2012-05-23 14:58

Derek, do you able to repeat my problem? Can i help you deside my problem more fast?
(0002202)
derick (administrator)
2012-05-28 09:26

I think I've just pushed a fix to github for this issue. Could you please try it?
(0002212)
amokryshev (reporter)
2012-05-29 08:25

hi Derik! I'm newbe in php. am i right understand that i need to get xdebug sources, put file from github there and compile results? i try to do this, but in my manual require the phpize.js for compiling xdebug. Wh?n i trying to compile php-dev version, it is compilling with out errors, but when i start phpize - it return error like "wrong handle in line 222". ?ould you give me some advice or link to manual for compiling xdebug?
(0002213)
derick (administrator)
2012-05-29 08:47

Oh, you are on Windows. Then just wait until the next release.
(0002214)
derick (administrator)
2012-05-29 08:47

Fixed for Xdebug 2.1.1. Thanks for your report!

- Issue History
Date Modified Username Field Change
2012-05-21 15:42 amokryshev New Issue
2012-05-21 15:42 amokryshev File Added: xdebug.log
2012-05-21 15:45 amokryshev Note Added: 0002182
2012-05-21 15:50 derick Note Added: 0002183
2012-05-21 15:50 derick Assigned To => derick
2012-05-21 15:50 derick Status new => feedback
2012-05-22 18:27 amokryshev Note Added: 0002186
2012-05-22 18:27 amokryshev Status feedback => assigned
2012-05-22 18:28 amokryshev File Added: xdebug 22052012.log
2012-05-22 18:29 amokryshev File Added: messages 22052012.log
2012-05-23 14:58 amokryshev Note Added: 0002188
2012-05-28 09:26 derick Note Added: 0002202
2012-05-28 09:26 derick Status assigned => feedback
2012-05-29 08:25 amokryshev Note Added: 0002212
2012-05-29 08:25 amokryshev Status feedback => assigned
2012-05-29 08:47 derick Note Added: 0002213
2012-05-29 08:47 derick Note Added: 0002214
2012-05-29 08:47 derick Status assigned => closed
2012-05-29 08:47 derick Resolution open => fixed
2012-05-29 08:47 derick Fixed in Version => 2.2.1
2016-07-31 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker