public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/25593] New: Socket problems
@ 2005-12-28 23:23 ovidr at users dot sourceforge dot net
2005-12-28 23:24 ` [Bug libgcj/25593] " ovidr at users dot sourceforge dot net
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: ovidr at users dot sourceforge dot net @ 2005-12-28 23:23 UTC (permalink / raw)
To: java-prs
When using jcraft's jsch ssh2 port forwarding in a gcj compiled application,
connections terminate unexpectedly. It works fine in Sun's java.
I've tried to make a test case with HServer/HClient. The server listens to a
port, and then the client connects to it. The OutputStream is closed while the
InputStream is still reading in another thread.
---
On Sun's Java (win32 or linux):
HServer:
java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:162)
at HServer$1.run(HServer.java:29)
HClient:
READ: 12
---
Win32 GCJ 4.0.2 (thisiscool.com)
Hserver:
java.io.IOException: An established connection was aborted by the software in
your host machine.
at .__ZN9HServer$13runEv (E:\dev\TURL\HServer.java)
HClient:
java.io.IOException: An existing connection was forcibly closed by the remote
host.
at .__ZN7HClient4mainEP6JArrayIPN4java4lang6StringEE
(E:\dev\TURL\HClient.java)
at ._main (C:\WINDOWS\TEMP\cc88aaaa.i)
----
GCJ Linux:
Hserver:
java.io.IOException: Bad file descriptor
at HServer$1.run (HServer)
HClient:
READ: 12
-------
--
Summary: Socket problems
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ovidr at users dot sourceforge dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25593
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/25593] Socket problems
2005-12-28 23:23 [Bug libgcj/25593] New: Socket problems ovidr at users dot sourceforge dot net
@ 2005-12-28 23:24 ` ovidr at users dot sourceforge dot net
2006-03-07 22:49 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ovidr at users dot sourceforge dot net @ 2005-12-28 23:24 UTC (permalink / raw)
To: java-prs
------- Comment #1 from ovidr at users dot sourceforge dot net 2005-12-28 23:24 -------
Created an attachment (id=10562)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10562&action=view)
Testcase (HServer.java and HClient.java)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25593
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/25593] Socket problems
2005-12-28 23:23 [Bug libgcj/25593] New: Socket problems ovidr at users dot sourceforge dot net
2005-12-28 23:24 ` [Bug libgcj/25593] " ovidr at users dot sourceforge dot net
@ 2006-03-07 22:49 ` tromey at gcc dot gnu dot org
2006-03-08 4:56 ` r_ovidius at eml dot cc
2006-03-09 1:12 ` tromey at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-03-07 22:49 UTC (permalink / raw)
To: java-prs
------- Comment #2 from tromey at gcc dot gnu dot org 2006-03-07 22:49 -------
I tried this test case with my 4.1 build and it seemed to work fine.
opsy. gij HServer &
[1] 21044
opsy. gij HClient
READ: 224
READ: 12
opsy. java.net.SocketException: Socket Closed
at HServer$1.run (HServer.java:29)
Does this look right to you?
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25593
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/25593] Socket problems
2005-12-28 23:23 [Bug libgcj/25593] New: Socket problems ovidr at users dot sourceforge dot net
2005-12-28 23:24 ` [Bug libgcj/25593] " ovidr at users dot sourceforge dot net
2006-03-07 22:49 ` tromey at gcc dot gnu dot org
@ 2006-03-08 4:56 ` r_ovidius at eml dot cc
2006-03-09 1:12 ` tromey at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: r_ovidius at eml dot cc @ 2006-03-08 4:56 UTC (permalink / raw)
To: java-prs
------- Comment #3 from r_ovidius at eml dot cc 2006-03-08 04:56 -------
Yes, I just compiled 4.1 on linux and the testcase works there.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25593
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/25593] Socket problems
2005-12-28 23:23 [Bug libgcj/25593] New: Socket problems ovidr at users dot sourceforge dot net
` (2 preceding siblings ...)
2006-03-08 4:56 ` r_ovidius at eml dot cc
@ 2006-03-09 1:12 ` tromey at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-03-09 1:12 UTC (permalink / raw)
To: java-prs
------- Comment #4 from tromey at gcc dot gnu dot org 2006-03-09 01:12 -------
I'm closing since it is fixed in the current release.
I haven't found the precise fix so I don't know if a 4.0.x
backport is possible.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25593
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-03-09 1:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-28 23:23 [Bug libgcj/25593] New: Socket problems ovidr at users dot sourceforge dot net
2005-12-28 23:24 ` [Bug libgcj/25593] " ovidr at users dot sourceforge dot net
2006-03-07 22:49 ` tromey at gcc dot gnu dot org
2006-03-08 4:56 ` r_ovidius at eml dot cc
2006-03-09 1:12 ` tromey at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).