Bug 178703 - Unexpected input stream timeout
Summary: Unexpected input stream timeout
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc   
(Show other bugs)
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tom Tromey
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-01-23 16:50 UTC by Andrew Overholt
Modified: 2014-08-11 05:46 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-06 20:01:03 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Test case (ripped out of eclipse{,-bugzilla}) (18.90 KB, text/plain)
2006-01-23 16:50 UTC, Andrew Overholt
no flags Details

Description Andrew Overholt 2006-01-23 16:50:05 UTC
Description of problem:
eclipse-bugzilla grabs the bugzilla components from the query page.  This fails
with gcc 4.1 where it does not fail with 4.0.x.  We isolated the parts that do
this (hackily and not very precisely, might I add ;) and I will attach that test

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

How reproducible:

Steps to Reproduce:
1. javac FetchError.java
2. java FetchError
Actual results:
java.io.InterruptedIOException: Timeout while reading from input stream
   at FetchError$PollingInputStream.read (FetchError.java:402)
   at java.io.BufferedInputStream.refill (libgcj.so.7)
   at java.io.InputStreamReader.refill (libgcj.so.7)
   at java.io.InputStreamReader.read (libgcj.so.7)
   at java.io.BufferedReader.fill (libgcj.so.7)
   at java.io.BufferedReader.readLine (libgcj.so.7)
   at FetchError.getString (FetchError.java:580)
   at FetchError.main (FetchError.java:634)

Expected results:
No output (like gij 4.0.x and Sun).

Additional info:
(from Tom Tromey's comment in bug 178445):
"[the] test case fails -- it times out
when reading.  However, if I comment out the call to getTimedInputStream
(so that we're reading from the raw un-timed-out underlying input stream),
then it works.  I suspect that there is a timing bug of some kind
in the timed input stream code, but I have not looked into it deeply."

Comment 1 Andrew Overholt 2006-01-23 16:50:06 UTC
Created attachment 123577 [details]
Test case (ripped out of eclipse{,-bugzilla})

Comment 2 Tom Tromey 2006-01-26 00:34:38 UTC
I've checked in a fix for this to the 4.1 branch.
It is revision 110241.

Comment 3 Andrew Overholt 2006-02-06 20:01:03 UTC
I have verified this fix is in our rawhide gcc.  Thanks.

Note You need to log in before you can comment on or make changes to this bug.