This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 146724 - java.net.SocketException: Software caused connection abort: socket write error
Summary: java.net.SocketException: Software caused connection abort: socket write error
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Ondrej Brejla
URL: http://statistics.netbeans.org/except...
Keywords:
: 149620 155687 158945 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-10 00:54 UTC by bitumen
Modified: 2011-08-15 07:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 56394


Attachments
stacktrace (735 bytes, text/plain)
2008-09-10 00:54 UTC, bitumen
Details
stacktrace (694 bytes, text/plain)
2008-09-12 21:16 UTC, nbnathan
Details
stacktrace (694 bytes, text/plain)
2008-09-13 01:12 UTC, nbnathan
Details
stacktrace (694 bytes, text/plain)
2008-09-13 23:46 UTC, areeda
Details
stacktrace (694 bytes, text/plain)
2008-09-14 00:52 UTC, areeda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bitumen 2008-09-10 00:54:49 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.net.SocketException: Software caused connection abort: socket write error
        at java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java:0)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:124)
        at org.netbeans.modules.php.dbgp.packets.DbgpCommand.send(DbgpCommand.java:84)
        at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:241)
        at org.netbeans.modules.php.dbgp.DebugSession.run(DebugSession.java:88)
Comment 1 bitumen 2008-09-10 00:54:54 UTC
Created attachment 69474 [details]
stacktrace
Comment 2 nbnathan 2008-09-12 21:16:00 UTC
Build: NetBeans IDE Dev (Build 200809120201)
VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.26, amd64

User Comments: 
using XDebug to step through PHP code

Stacktrace: 
java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java:0)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:124)
        at org.netbeans.modules.php.dbgp.packets.DbgpCommand.send(DbgpCommand.java:84)
        at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:242)
        at org.netbeans.modules.php.dbgp.DebugSession.run(DebugSession.java:88)
Comment 3 nbnathan 2008-09-12 21:16:09 UTC
Created attachment 69776 [details]
stacktrace
Comment 4 nbnathan 2008-09-13 01:12:05 UTC
Build: NetBeans IDE Dev (Build 200809120201)
VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.26, amd64

User Comments: 
setting watched variable while debugging PHP with XDebug

Stacktrace: 
java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java:0)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:124)
        at org.netbeans.modules.php.dbgp.packets.DbgpCommand.send(DbgpCommand.java:84)
        at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:242)
        at org.netbeans.modules.php.dbgp.DebugSession.run(DebugSession.java:88)
Comment 5 nbnathan 2008-09-13 01:12:14 UTC
Created attachment 69791 [details]
stacktrace
Comment 6 areeda 2008-09-13 23:46:41 UTC
Build: NetBeans IDE Dev (Build 200809071401)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Linux, 2.6.18-92.1.10.el5, i386

User Comments: 
php debug a source file (not project)

Stacktrace: 
java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java:0)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:124)
        at org.netbeans.modules.php.dbgp.packets.DbgpCommand.send(DbgpCommand.java:84)
        at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:242)
        at org.netbeans.modules.php.dbgp.DebugSession.run(DebugSession.java:88)
Comment 7 areeda 2008-09-13 23:46:45 UTC
Created attachment 69813 [details]
stacktrace
Comment 8 areeda 2008-09-14 00:52:22 UTC
Build: NetBeans IDE Dev (Build 200809071401)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Linux, 2.6.18-92.1.10.el5, i386

User Comments: 
Starting PHP debug session

Stacktrace: 
java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java:0)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:124)
        at org.netbeans.modules.php.dbgp.packets.DbgpCommand.send(DbgpCommand.java:84)
        at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:242)
        at org.netbeans.modules.php.dbgp.DebugSession.run(DebugSession.java:88)
Comment 9 areeda 2008-09-14 00:52:26 UTC
Created attachment 69814 [details]
stacktrace
Comment 10 rmatous 2008-09-30 14:07:51 UTC
Seems like a bug in xdebug or its clone:
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000313

If I'm right, then the workaround should be to delete all watches:
- open watches window -  menu Window-> Debugging->watches
- delete all watches - in popup menu action "Delete All" 

At least one user confirmed this workaround helped.

Anyway better error handling in NB is needed.
Comment 11 bitumen 2008-09-30 21:04:20 UTC
Agree rmatous:rmatous@netbeans.org assumption as restarting netbeans and removing watches stopped to exception
<quote>Seems like a bug in xdebug or its clone:
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000313

If I'm right, then the workaround should be to delete all watches:
- open watches window -  menu Window-> Debugging->watches
- delete all watches - in popup menu action "Delete All" 

At least one user confirmed this workaround helped.

Anyway better error handling in NB is needed.</quote>
better handling of this exception recommended (even a pop up notice of invalid watch or something would be better)
Comment 12 Tomas Mysik 2008-10-03 09:21:42 UTC
Increasing to P2 because of many duplicates.
Comment 13 Tomas Mysik 2008-10-03 10:05:59 UTC
Workaround pushed to the trunk.
http://hg.netbeans.org/main/rev/b4d9d15738a6
Comment 14 Quality Engineering 2008-10-03 23:30:24 UTC
Integrated into 'main-golden', will be available in build *200810031942* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b4d9d15738a6
User: Tomas Mysik <tmysik@netbeans.org>
Log: #146724: java.net.SocketException: Software caused connection abort: socket write error
Comment 15 rmatous 2008-10-09 13:25:07 UTC
*** Issue 149620 has been marked as a duplicate of this issue. ***
Comment 16 rmatous 2008-10-09 13:28:00 UTC
reopening as P4 just as reminder of xdebug problem 
Comment 17 Tomas Mysik 2008-12-12 10:57:32 UTC
Reassigning to the owner of subcomponent.
Comment 18 rmatous 2009-03-12 15:42:48 UTC
*** Issue 155687 has been marked as a duplicate of this issue. ***
Comment 19 rmatous 2009-03-12 19:21:41 UTC
*** Issue 158945 has been marked as a duplicate of this issue. ***
Comment 20 Filip Zamboj 2010-09-15 12:26:37 UTC
batch reassigning
Comment 21 OndrejBrejla 2011-07-22 06:49:38 UTC
I created a new xdebug issue, because the old one was "fixed"...but it still doesn't work. So new issue is here: http://bugs.xdebug.org/view.php?id=704
Comment 22 Ondrej Brejla 2011-08-10 14:59:37 UTC
My new issue was marked as a duplicate of another issue which was somehow solved and needs feedback (http://bugs.xdebug.org/view.php?id=606). There is a patch which should fix it so don't hesitate to try it and let Derick know if it really works.

Closing this as incomplete.
Comment 23 Ondrej Brejla 2011-08-15 07:35:32 UTC
Should be fixed in XDebug 2.1.3 and 2.2dev. (http://bugs.xdebug.org/view.php?id=704#c1779)