This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/31719] gcj crashes compiling simple .class file output by Rhino js->.class compiler



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]