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

Sol x86 - JIT Bug gives ArrayIndexOutOfBoundsException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0
    • vm-legacy
    • jit
    • x86
    • solaris_2.6

      Solaris-x86 5.6 8-bit (test machine: peas)
      JDK-1.2beta4-J
      /home/lichtenw/JavaMedia/2d/tests/applets/Plasma

      Steps to reproduce
      ------------------
      #1. load the Plasma applet - appletviewer *.html
      #2. Notice that applet does not load
      #3. Also notice the following errors -
      java.lang.ArrayIndexOutOfBoundsException: 0
              at Plasma.run(Compiled Code)
              at java.lang.Thread.run(Compiled Code)
      java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread )
              at java.security.AccessControlContext.checkPermission(Compiled Code)
              at java.security.AccessController.checkPermission(Compiled Code)
              at java.lang.SecurityManager.checkPermission(Compiled Code)
              at java.lang.SecurityManager.checkAccess(Compiled Code)
              at sun.applet.AppletSecurity.checkAccess(Compiled Code)
              at java.lang.Thread.checkAccess(Compiled Code)
              at java.lang.Thread.stop(Compiled Code)
              at java.lang.Thread.stop(Compiled Code)
              at Plasma.stop(Compiled Code)
              at sun.applet.AppletPanel.run(Compiled Code)
              at java.lang.Thread.run(Compiled Code)

      Solaris-86 5.6 8-bit (test machine: dino)
      JDK-1.2fcs-C
      /home/lichtenw/JavaMedia/2d/tests/applets/Plasma

      Still see the above problem on dino for JDK-1.2fcs-C

      rekha.rangarajan@eng 1998-07-27

      ===============================================================================

      phil.race@eng 1998-08-05

      This is not a Java 2D bug. its a JIT bug.
      disable the JIT and it works fine.

      Also here is a vastly reduced test case which has no awt or j2d code at all


      public class JITBug {
        int w,h;

        public static void main(String args[]) {
          JITBug jb = new JITBug();
          jb.work();
        }

        public void work() {
           w = 64;
           h = w;
           int size = (int) ((w+h)/2)*4;
           byte[] pixels = new byte[w*h];
           System.out.println("pixel array = " + pixels + " length="+w*h);
           pixels[0]=(byte)0;
           System.err.println("assigned result"); System.err.flush();
        }

      }
      ===============================================================================

            never Tom Rodriguez
            rrangarasunw Rekha Rangarajan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: