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 217405

Summary: The NetBeans and xdebug issue appears again: java.net.SocketException: Broken pipe
Product: php Reporter: benedikt12
Component: DebuggerAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED DUPLICATE    
Severity: normal CC: benedikt12
Priority: P3    
Version: 7.2   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: netbeans log file (netbeans-xdebug issue)

Description benedikt12 2012-08-25 17:51:42 UTC
Created attachment 123567 [details]
netbeans log file (netbeans-xdebug issue)

This SocketException makes debugging difficult if not impossible.
I saw earlier postings regarding the NetBeans+xdebug issue, with the conclusion hinting that this is not a NetBeans issue. Here I show otherwise.

Watches/Balloons are disabled.

Occurs when stepping through a file being debugged. Occurs somewhat unpredictably---does not seem to depend on what code is being debugged. Usually appears within a minute of a debugging session.

Critically, this DOES NOT occur, with exactly the same setup, on NetBeans 7.0.
It DOES occur on NetBeans 7.1 and 7.2.
This means that the issue HAS TO DO with NetBeans---it is either a NetBeans specific issue or a NetBeans-xdebug interaction issue.

I tried different versions of xdebug (from about 2 years old to the newest) and this does not affect the problem.

I will be glad to provide any additional info to provide this painful problem.
Thanks for looking into this.



The very end of my log (the entire log attached):
---------------------------------------------------------
SEVERE [org.netbeans.modules.php.dbgp.packets.DbgpMessage]
SEVERE [org.netbeans.modules.php.dbgp.packets.DbgpMessage]
INFO [org.netbeans.modules.php.dbgp.DebugSession]
java.net.SocketException: Broken pipe
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	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:92)
	at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:211)
[catch] at org.netbeans.modules.php.dbgp.DebugSession.run(DebugSession.java:143)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)
Comment 1 Ondrej Brejla 2012-08-27 08:07:14 UTC
That error covers a lot of connection issues. It's a common bug which sometimes occures (I, personally, never met him...I can debug whatever I want :/), but if I don't have steps to reproduce I can't do anything with that. Provide em to me (whole project with some setup is the best) so I can reproduce that. Without it I can't do anything :( Than simply reopen. Thanks a lot!
Comment 2 Marian Mirilovic 2012-11-15 07:55:24 UTC

*** This bug has been marked as a duplicate of bug 222142 ***