public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
* [Bug java/28531] New: [win32] serialisation is broken on mingw (works on linux) @ 2006-07-29 13:36 mtrudel at gmx dot ch 2006-07-29 13:38 ` [Bug java/28531] " mtrudel at gmx dot ch ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: mtrudel at gmx dot ch @ 2006-07-29 13:36 UTC (permalink / raw) To: java-prs gcj (GCC) 4.2.0 20060726 (experimental) Deserialize an object fails on Class.forName(). I assumed this would work because class.forName() doesn't use the stack unwinder any longer. Exception: Exception in thread "main" java.lang.ClassNotFoundException: Serialisation at java.lang.Class.forName(/home/trudemar/.eclipse_workspace/gcjSource/libjava/java/lang/natClass.cc:91) at java.io.ObjectInputStream.resolveClass(/home/trudemar/.eclipse_workspace/gcjSource/libjava/java/io/ObjectInputStream.java:800) at java.io.ObjectInputStream.readClassDescriptor(/home/trudemar/.eclipse_workspace/gcjSource/libjava/java/io/ObjectInputStream.java:551) at java.io.ObjectInputStream.readObject(/home/trudemar/.eclipse_workspace/gcjSource/libjava/java/io/ObjectInputStream.java:245) at java.io.ObjectInputStream.readObject(/home/trudemar/.eclipse_workspace/gcjSource/libjava/java/io/ObjectInputStream.java:292) at Serialisation.read(D:/programming/javaCompiler/code/tests/1_console/2_serialisation/Serialisation.java:43) at Serialisation.main(D:/programming/javaCompiler/code/tests/1_console/2_serialisation/Serialisation.java:21) -- Summary: [win32] serialisation is broken on mingw (works on linux) Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mtrudel at gmx dot ch GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-mingw32 GCC target triplet: i686-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28531 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/28531] [win32] serialisation is broken on mingw (works on linux) 2006-07-29 13:36 [Bug java/28531] New: [win32] serialisation is broken on mingw (works on linux) mtrudel at gmx dot ch @ 2006-07-29 13:38 ` mtrudel at gmx dot ch 2006-11-21 13:14 ` mtrudel at gmx dot ch ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: mtrudel at gmx dot ch @ 2006-07-29 13:38 UTC (permalink / raw) To: java-prs ------- Comment #1 from mtrudel at gmx dot ch 2006-07-29 13:38 ------- Created an attachment (id=11965) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11965&action=view) Simple serialisation test A simple serialisation program to reproduce the bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28531 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/28531] [win32] serialisation is broken on mingw (works on linux) 2006-07-29 13:36 [Bug java/28531] New: [win32] serialisation is broken on mingw (works on linux) mtrudel at gmx dot ch 2006-07-29 13:38 ` [Bug java/28531] " mtrudel at gmx dot ch @ 2006-11-21 13:14 ` mtrudel at gmx dot ch 2006-11-21 13:18 ` mtrudel at gmx dot ch ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: mtrudel at gmx dot ch @ 2006-11-21 13:14 UTC (permalink / raw) To: java-prs ------- Comment #2 from mtrudel at gmx dot ch 2006-11-21 13:14 ------- There are actually two bugs: 1. Before a change in the SJLJ exception routines for Windows, Serialization was broken because _Jv_StackTrace::GetCallingClass() always returned NULL instead of the jclass. 2. After that change, _Jv_StackTrace::GetCallingClass() was implemented but it actually returns the wrong jclass, what leaves Serialization broken. Because the mentioned SJLJ exception introduced a regression in JNI handling which affects some of my programs (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29477), I work with a GCJ without that patch. So the attached patch to get Serialization to work only works by reverting the mentioned SJLJ change. It's really time to get DWARF excptions running for mingw. It really would be the most prober solution... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28531 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/28531] [win32] serialisation is broken on mingw (works on linux) 2006-07-29 13:36 [Bug java/28531] New: [win32] serialisation is broken on mingw (works on linux) mtrudel at gmx dot ch 2006-07-29 13:38 ` [Bug java/28531] " mtrudel at gmx dot ch 2006-11-21 13:14 ` mtrudel at gmx dot ch @ 2006-11-21 13:18 ` mtrudel at gmx dot ch 2007-01-20 10:13 ` mtrudel at gmx dot ch 2007-01-21 1:34 ` tromey at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: mtrudel at gmx dot ch @ 2006-11-21 13:18 UTC (permalink / raw) To: java-prs ------- Comment #3 from mtrudel at gmx dot ch 2006-11-21 13:18 ------- Created an attachment (id=12662) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12662&action=view) Patch to get Serialization to work. It only works without the recent SJLJ exception handling changes. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28531 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/28531] [win32] serialisation is broken on mingw (works on linux) 2006-07-29 13:36 [Bug java/28531] New: [win32] serialisation is broken on mingw (works on linux) mtrudel at gmx dot ch ` (2 preceding siblings ...) 2006-11-21 13:18 ` mtrudel at gmx dot ch @ 2007-01-20 10:13 ` mtrudel at gmx dot ch 2007-01-21 1:34 ` tromey at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: mtrudel at gmx dot ch @ 2007-01-20 10:13 UTC (permalink / raw) To: java-prs ------- Comment #4 from mtrudel at gmx dot ch 2007-01-20 10:13 ------- Fixed in 4.3 mainline. The gcj specific serialization was replaced with the classpath serialization (StackWalker or something). Thanks guys... minGW gets better and better :-) -- mtrudel at gmx dot ch changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28531 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/28531] [win32] serialisation is broken on mingw (works on linux) 2006-07-29 13:36 [Bug java/28531] New: [win32] serialisation is broken on mingw (works on linux) mtrudel at gmx dot ch ` (3 preceding siblings ...) 2007-01-20 10:13 ` mtrudel at gmx dot ch @ 2007-01-21 1:34 ` tromey at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2007-01-21 1:34 UTC (permalink / raw) To: java-prs -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28531 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-01-21 1:34 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-07-29 13:36 [Bug java/28531] New: [win32] serialisation is broken on mingw (works on linux) mtrudel at gmx dot ch 2006-07-29 13:38 ` [Bug java/28531] " mtrudel at gmx dot ch 2006-11-21 13:14 ` mtrudel at gmx dot ch 2006-11-21 13:18 ` mtrudel at gmx dot ch 2007-01-20 10:13 ` mtrudel at gmx dot ch 2007-01-21 1:34 ` 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).