View Issue Details

IDProjectCategoryView StatusLast Update
0000841XdebugUncategorizedpublic2012-05-29 07:47
Reporteramokryshev Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
PlatformIntel x86OSWindowsOS Version7 Ultimate
Product Version2.2.0 
Fixed 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

Activities

amokryshev

2012-05-21 14:45

reporter   ~0002182

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)

derick

2012-05-21 14:50

administrator   ~0002183

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

amokryshev

2012-05-22 17:27

reporter   ~0002186

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

amokryshev

2012-05-23 13:58

reporter   ~0002188

Derek, do you able to repeat my problem? Can i help you deside my problem more fast?

derick

2012-05-28 08:26

administrator   ~0002202

I think I've just pushed a fix to github for this issue. Could you please try it?

amokryshev

2012-05-29 07:25

reporter   ~0002212

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?

derick

2012-05-29 07:47

administrator   ~0002213

Oh, you are on Windows. Then just wait until the next release.

derick

2012-05-29 07:47

administrator   ~0002214

Fixed for Xdebug 2.1.1. Thanks for your report!