Community
Participate
Working Groups
See bug 231686 Pawel wrote: I got the following exception for no particular reason (which uncovered this bug): java.io.IOException: close error at org.eclipse.cdt.utils.pty.PTYInputStream.close(PTYInputStream.java:79) at java.io.BufferedInputStream.close(BufferedInputStream.java:440) at org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:183) at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:134) at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:207) at java.lang.Thread.run(Thread.java:595) Marc replied: Looking at the code, it seems to originate from the native method close0() called from org.eclipse.cdt.utils.pty.PTYInputStream.close(). My only thought is that maybe there is a threading issue and the same PTY stream is closed twice at the same time: the first time by the Debug Platform which is monitoring the stream (OutputStreamMonitor) and in a separate thread in MIInferiorProcess. I'm not sure how mutli-threads are handled with the Debug Platform. Maybe we can discuss.
*** This bug has been marked as a duplicate of bug 286162 ***