This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/31719] gcj crashes compiling simple .class file output by Rhino js->.class compiler
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2007 16:45:00 -0000
- Subject: [Bug java/31719] gcj crashes compiling simple .class file output by Rhino js->.class compiler
- References: <bug-31719-13430@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from tromey at gcc dot gnu dot org 2007-04-27 17:44 -------
Dan Berlin said if you log in first you should be able to attach things.
I downloaded rhino 1_6r5 from: http://www.mozilla.org/rhino/download.html
Then I tried the .class you sent me. I tried with gcj 4.1 (from the 4.1
branch), the FC6 gcj, and svn trunk. All worked. I did this:
gcj -c -I rhino1_6R5/js.jar lame.class
I did get an ICE when running from rhino1_6R5/src:
opsy. gcj -c ../../lame.class
./org/mozilla/javascript/Context.java:565: warning: The class
?org.mozilla.javascript.ContextListener? has been deprecated.
public static void addContextListener(ContextListener listener)
^
./org/mozilla/javascript/Context.java:594: warning: The class
?org.mozilla.javascript.ContextListener? has been deprecated.
public static void removeContextListener(ContextListener listener)
^
jc1: internal compiler error: Segmentation fault
... but it is really better to use the -I method from the first example,
especially since trunk can't readily compile class files whose dependencies
only exist as .java files.
ICEing here is still bad of course. We should emit a sensible error and
exit cleanly instead.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-04-27 17:45:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31719