Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4137473

Invalid slot error brought on by bad paths

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic, x86, sparc
    • OS:
      generic, other, solaris_2.6, solaris_7, windows_95, windows_98, windows_nt

      Description

      I did the bringover in late afternoon on May 11. When I do the full build on win32, the javac crashed when compiling jfc demo, even after I turn off the JIT.

              ..\..\..\bin\javac.exe -J-ms16m -J-mx64m -J-Djava.compiler=NONE -classpa
      th ..\..\..\classes;..\..\..\..\..\src\share\classes;..\..\..\demo\jfc\Table;....\..\demo\jfc\Table -d ..\..\..\demo\jfc\Table ..\..\..\demo\jfc\Table\TableExa
      mple3.java
      sun.tools.java.CompilerError: invalid slot: 0: aload -1
              at sun.tools.asm.Instruction.size(Instruction.java:527)
              at sun.tools.asm.Assembler.write(Assembler.java:387)
              at sun.tools.javac.SourceClass.compileClass(SourceClass.java:2389)
              at sun.tools.javac.SourceClass.compile(SourceClass.java:2019)
              at sun.tools.javac.Main.compile(Main.java:466)
              at sun.tools.javac.Main.main(Main.java:629)
      error: An error has occurred in the compiler; please file a bug report (http://j
      ava.sun.com/cgi-bin/bugreport.cgi).
      Note: 5 files use or override a deprecated API. Recompile with "-deprecation" f
      or details.
      1 error, 1 warning
      NMAKE : fatal error U1077: '..\..\..\bin\javac.exe' : return code '0x4'
      Stop.
      NMAKE : fatal error U1077: 'e:\microsoft\devstudio\vc\bin\NMAKE.EXE' : return co
      de '0x2'
      Stop.
      NMAKE : fatal error U1077: 'e:\microsoft\devstudio\vc\bin\NMAKE.EXE' : return co
      de '0x2'
      Stop.

      Name: skT88420 Date: 09/17/99


      Hello! I'm trying to rebuild the product called "Jessie",
      which was recently released by SGI:
      http://oss.sgi.com/projects/jessie/
      on my FreeBSD system.

      My command line looks as follows:
      env CLASSPATH=..:../..:/usr/local/swing-1.1.1/swing.jar:`pwd`/javahelp/jhall.jar PATH=${PATH}:/usr/local/jdk1.1.8/bin gmake JAVA_HOME=/usr/local/jdk1.1.8

      All of the things build Ok, but not this one:

      gmake[2]: Entering directory `/usr/ports/devel/jessie/work/jessie-0.5/panels/locals'
      /usr/local/jdk1.1.8/bin/javac -deprecation -O LocalEntryObj.java
      /usr/local/jdk1.1.8/bin/javac -deprecation -O LocalVariablesPanel.java
      sun.tools.java.CompilerError: invalid slot: 0: aload -1
              at sun.tools.asm.Instruction.size(Instruction.java)
              at sun.tools.asm.Assembler.write(Assembler.java)
              at sun.tools.javac.SourceClass.compileClass(SourceClass.java)
              at sun.tools.javac.SourceClass.compile(SourceClass.java)
              at sun.tools.javac.Main.compile(Main.java)
              at sun.tools.javac.Main.main(Main.java)
      error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
      1 error
      gmake[2]: *** [LocalVariablesPanel.class] Error 1
      gmake[2]: Leaving directory `/usr/ports/devel/jessie/work/jessie-0.5/panels/locals'

      Unfortunately, I can not try this on any other platform at this
      moment. Yours,
      (Review ID: 95400)
      ======================================================================

      Name: krT82822 Date: 09/26/99


      #~/jessie-0.5$ java -version
      java version "1.1.7"
      #~/jessie-0.5$ java -fullversion
      java full version "Linux_JDK_1.1.7_v2_green_threads"

      While installing jessie 0.5 (from SGI), the compiler emitted the
      following:

      make[2]: Entering directory `/usr/home/walfield/jessie-0.5/panels/locals'
      javac -deprecation LocalEntryObj.java
      javac -deprecation LocalVariablesPanel.java
      sun.tools.java.CompilerError: invalid slot: 0: aload -1
              at sun.tools.asm.Instruction.size(Instruction.java)
              at sun.tools.asm.Assembler.write(Assembler.java)
              at sun.tools.javac.SourceClass.compileClass(SourceClass.java)
              at sun.tools.javac.SourceClass.compile(SourceClass.java)
              at sun.tools.javac.Main.compile(Main.java)
              at sun.tools.javac.Main.main(Main.java)
      error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
      1 error
      (Review ID: 95751)
      ======================================================================

      Name: skT88420 Date: 03/02/2000


      e:\jdk1.2.2\bin\javac -g -classpath e:\jdk1.2.2\jre\lib\rt.jar;\bassw\cm
      ts_bugfix3\bcm\JavaApp;\bassw\cmts_bugfix3\bcm\JavaApp\netscape\ldapfilt.jar;\ba
      ssw\cmts_bugfix3\bcm\JavaApp\netscape\ldapjdk.jar .\MibOids.java
              e:\jdk1.2.2\bin\javac -g -classpath e:\jdk1.2.2\jre\lib\rt.jar;\bassw\cm
      ts_bugfix3\bcm\JavaApp;\bassw\cmts_bugfix3\bcm\JavaApp\netscape\ldapfilt.jar;\ba
      ssw\cmts_bugfix3\bcm\JavaApp\netscape\ldapjdk.jar .\SnmpEvent.java
      sun.tools.java.CompilerError: invalid slot: 0: aload -1
      This error possibly resulted from poorly constructed class paths.
              at sun.tools.asm.Instruction.size(Instruction.java, Compiled Code)
              at sun.tools.asm.Assembler.write(Assembler.java, Compiled Code)
              at sun.tools.javac.SourceClass.compileClass(SourceClass.java:2410)
              at sun.tools.javac.SourceClass.compile(SourceClass.java:2039)
              at sun.tools.javac.Main.compile(Main.java:567)
              at sun.tools.javac.Main.main(Main.java:733)
      error: An error has occurred in the compiler; please file a bug report (http://j
      ava.sun.com/cgi-bin/bugreport.cgi).
      Note: 2 files use or override a deprecated API. Recompile with "-deprecation" f
      or details.
      1 error, 1 warning

      After initial install of the compiler tool on my setup, I tried to
      compile a stable code base, and the compilation error occurred.
      (Review ID: 101986)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wmaddoxsunw William Maddox (Inactive)
              Reporter:
              hongzh Hong Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: