public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/17081] New: Deserializing java.net.URI fails
@ 2004-08-18 12:58 greenrd at greenrd dot org
  2004-08-18 12:59 ` [Bug libgcj/17081] " greenrd at greenrd dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: greenrd at greenrd dot org @ 2004-08-18 12:58 UTC (permalink / raw)
  To: gcc-bugs

URIs are deserialized incorrectly, and read too many or too few bytes from the
stream when deserializing, leaving the stream at the wrong position, which
causes the exception below. The attached test case tries all 4 permutations
(sun->sun, sun->gcj, etc.).

The output I get is (note initial blank line):

--- begin output ---
http://bogus.example.com/
http://bogus.example.com/
Sun -> Sun serialization OK

Exception in thread "main" java.io.IOException: Unknown marker on stream: 0
   at java.io.ObjectInputStream.readObject() (/usr/lib/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
   at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.6.0.0)
   at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
(/usr/lib/libgcj.so.6.0.0)
   at __libc_start_main (/lib/libc-2.3.2.so)
--- end output ---

-- 
           Summary: Deserializing java.net.URI fails
           Product: gcc
           Version: 3.5.0
            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=17081


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-18 12:58 [Bug libgcj/17081] New: Deserializing java.net.URI fails greenrd at greenrd dot org
2004-08-18 12:59 ` [Bug libgcj/17081] " greenrd at greenrd dot org
2004-08-18 18:06 ` cvs-commit at gcc dot gnu dot org
2004-08-18 18:08 ` mckinlay at redhat dot com

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).