Bug 668890

Summary: Debug core logs spawner IO exception when running C/C++ executable
Product: Red Hat Enterprise Linux 6 Reporter: Jeff Johnston <jjohnstn>
Component: eclipse-cdtAssignee: Jeff Johnston <jjohnstn>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: mnowak, overholt
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 11:43:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeff Johnston 2011-01-11 22:54:09 UTC
Description of problem:

A bug exists whereby running a simple C/C++ application via Eclipse results in an exception being logged at program termination.

Upstream bug: 286162 has recently been closed and a patch has been applied to the repository.

Version-Release number of selected component (if applicable):

eclipse-cdt-6.0.2-3

How reproducible:

Create a C++ Hello World Executable program using the C++ New Project Wizard and the applicable template.  Build the program and then attempt to right click on the Binary.  Choose Run as C/C++ Application and when asked, select gdb/mi.  The program will run successfully printing out the hello world statement, but an error will be logged in the Error Log window from debug core:

Actual Results:

!ENTRY org.eclipse.debug.core 4 125 2010-12-10 16:20:39.329
!MESSAGE Error logged from Debug Core: 
!STACK 0
java.io.IOException: read error
	at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read0(Native Method)
	at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read(SpawnerInputStream.java:66)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:273)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
	at java.io.FilterInputStream.read(FilterInputStream.java:107)
	at org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:144)
	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:636)
!SESSION 2010-12-10 16:21:28.782 -----------------------------------------------
eclipse.buildId=I20100608-0911
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.sdk.ide
Command-line arguments:  -product org.eclipse.sdk.ide -data /notnfs/jjohnstn/workspace-branch-0.7/../runtime-New_configuration-branch-0.7 -dev file:/notnfs/jjohnstn/workspace-branch-0.7/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os linux -ws gtk -arch x86 -consoleLog

Expected results:

No error message should be issued at termination of successful application run.

Comment 2 Jeff Johnston 2011-01-12 19:09:58 UTC
eclipse-cdt-7.0.1-2.el6 has been built which fixes this problem

Comment 7 errata-xmlrpc 2011-05-19 11:43:13 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0568.html