public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/17034] New: RMI calls to remote void methods incorrectly hang waiting for a dummy return value
@ 2004-08-14 22:11 greenrd at greenrd dot org
  2004-08-14 22:12 ` [Bug libgcj/17034] " greenrd at greenrd dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: greenrd at greenrd dot org @ 2004-08-14 22:11 UTC (permalink / raw)
  To: java-prs

RMI calls to void methods should not return a value. Although the spec doesn't
seem to explicitly say this, it does mark the ReturnValue as optional [0] - and
the only legitimate reason for omitting a return value is when the method is
void, so that must be why it is optional. Also of course not returning anything
for void does accord with the Sun implementation (and common sense).

The client-side symptom of this (test case with script attached) is that when
you do an RMI call from gij to a void method on a Sun JVM, gij hangs waiting for
a return value in:

#0  0xffffe410 in ?? ()
#1  0xbfffe7bc in ?? ()
#2  0x407bee1c in ?? () from /usr/lib/libgcj.so.5
#3  0xbfffe6d4 in ?? ()
#4  0x44e1e288 in recv () from /lib/tls/libpthread.so.0
#5  0x4041a632 in gnu::java::net::PlainSocketImpl$SocketInputStream::read
(this=0xfffffe00, buffer=0x811f008, offset=-1073748268,
    count=2048) at gnu/java/net/natPlainSocketImpl.cc:487
#6  0x40448dc7 in java.io.FilterInputStream.read(byte[], int, int)
(this=0xfffffe00, buf=0x811f000, offset=0, len=2048)
    at ../../../libjava/java/io/FilterInputStream.java:189
#7  0x40441c7e in java.io.BufferedInputStream.refill() (this=0x80bcd80) at
../../../libjava/java/io/BufferedInputStream.java:352
#8  0x40441adb in java.io.BufferedInputStream.read() (this=0x80bcd80) at
../../../libjava/java/io/BufferedInputStream.java:216
#9  0x40448d8e in java.io.FilterInputStream.read() (this=0xfffffe00) at
../../../libjava/java/io/FilterInputStream.java:155
#10 0x40444acf in java.io.DataInputStream.readByte() (this=0xfffffe00) at
../../../libjava/java/io/DataInputStream.java:157
#11 0x4044c950 in java.io.ObjectInputStream.readObject() (this=0x8114f50) at
../../../libjava/java/io/ObjectInputStream.java:140
#12 0x40545a80 in gnu.java.rmi.server.UnicastRef.invokeCommon(java.rmi.Remote,
java.lang.reflect.Method, java.lang.Object[], int, long) (
    this=0x811c860, obj=0x8093e48, method=0x0, params=0x0, opnum=-1,
hash=6815962424935952648)
    at ../../../libjava/gnu/java/rmi/server/UnicastRef.java:156
#13 0x40545b1e in gnu.java.rmi.server.UnicastRef.invoke(java.rmi.Remote,
java.lang.reflect.Method, java.lang.Object[], long) (
    this=0x811c860, obj=0x8093e48, method=0x80bce00, params=0x0,
opnum=6815962424935952648)
    at ../../../libjava/gnu/java/rmi/server/UnicastRef.java:101


[0] http://java.sun.com/j2se/1.4.2/docs/guide/rmi/spec/rmi-protocol4.html

-- 
           Summary: RMI calls to remote void methods incorrectly hang
                    waiting for a dummy return value
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: greenrd at greenrd dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17034


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/17034] RMI calls to remote void methods incorrectly hang waiting for a dummy return value
  2004-08-14 22:11 [Bug libgcj/17034] New: RMI calls to remote void methods incorrectly hang waiting for a dummy return value greenrd at greenrd dot org
@ 2004-08-14 22:12 ` greenrd at greenrd dot org
  2004-08-14 22:13 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: greenrd at greenrd dot org @ 2004-08-14 22:12 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From greenrd at greenrd dot org  2004-08-14 22:12 -------
Created an attachment (id=6929)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6929&action=view)
testcase


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17034


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/17034] RMI calls to remote void methods incorrectly hang waiting for a dummy return value
  2004-08-14 22:11 [Bug libgcj/17034] New: RMI calls to remote void methods incorrectly hang waiting for a dummy return value greenrd at greenrd dot org
  2004-08-14 22:12 ` [Bug libgcj/17034] " greenrd at greenrd dot org
@ 2004-08-14 22:13 ` pinskia at gcc dot gnu dot org
  2004-08-15 14:40 ` norbertf at gmx dot net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-14 22:13 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |17033
              nThis|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17034


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/17034] RMI calls to remote void methods incorrectly hang waiting for a dummy return value
  2004-08-14 22:11 [Bug libgcj/17034] New: RMI calls to remote void methods incorrectly hang waiting for a dummy return value greenrd at greenrd dot org
  2004-08-14 22:12 ` [Bug libgcj/17034] " greenrd at greenrd dot org
  2004-08-14 22:13 ` pinskia at gcc dot gnu dot org
@ 2004-08-15 14:40 ` norbertf at gmx dot net
  2004-08-17 21:06 ` greenrd at greenrd dot org
  2004-08-17 23:00 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: norbertf at gmx dot net @ 2004-08-15 14:40 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From norbertf at gmx dot net  2004-08-15 14:40 -------
I thought i have fixed this in my RMI interoperability patches. Please check:

http://gcc.gnu.org/ml/java-patches/2004-q1/msg00080.html
http://gcc.gnu.org/ml/java-patches/2004-q1/msg00081.html
http://gcc.gnu.org/ml/java-patches/2004-q1/msg00082.html

My interop test suite:

http://www.scheinwelt.at/~norbertf/gcj/tests/
described in the following thread:
http://gcc.gnu.org/ml/java/2004-01/msg00022.html

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17034


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/17034] RMI calls to remote void methods incorrectly hang waiting for a dummy return value
  2004-08-14 22:11 [Bug libgcj/17034] New: RMI calls to remote void methods incorrectly hang waiting for a dummy return value greenrd at greenrd dot org
                   ` (2 preceding siblings ...)
  2004-08-15 14:40 ` norbertf at gmx dot net
@ 2004-08-17 21:06 ` greenrd at greenrd dot org
  2004-08-17 23:00 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: greenrd at greenrd dot org @ 2004-08-17 21:06 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From greenrd at greenrd dot org  2004-08-17 21:06 -------
Yes, confirmed, it is fixed already in CVS. Thanks.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17034


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/17034] RMI calls to remote void methods incorrectly hang waiting for a dummy return value
  2004-08-14 22:11 [Bug libgcj/17034] New: RMI calls to remote void methods incorrectly hang waiting for a dummy return value greenrd at greenrd dot org
                   ` (3 preceding siblings ...)
  2004-08-17 21:06 ` greenrd at greenrd dot org
@ 2004-08-17 23:00 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-17 23:00 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17034


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-08-17 23:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-14 22:11 [Bug libgcj/17034] New: RMI calls to remote void methods incorrectly hang waiting for a dummy return value greenrd at greenrd dot org
2004-08-14 22:12 ` [Bug libgcj/17034] " greenrd at greenrd dot org
2004-08-14 22:13 ` pinskia at gcc dot gnu dot org
2004-08-15 14:40 ` norbertf at gmx dot net
2004-08-17 21:06 ` greenrd at greenrd dot org
2004-08-17 23:00 ` pinskia 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).