Harmony
  1. Harmony
  2. HARMONY-1775

[drlvm][jit][unit] Classlib test org.apache.harmony.luni.tests.util.Base64Test fails in OPT mode

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DRLVM
    • Labels:
      None

      Description

      Passes in JET while fails in OPT in the following way:

      >java -showversion -Xem:opt TestBase64
      Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundatio
      n or its licensors, as applicable.
      java version "1.5.0"
      pre-alpha : not complete or compatible
      svn = r454267, (Oct 9 2006), Windows/ia32/msvc 1310, debug build
      http://incubator.apache.org/harmony
      JNI.ExceptionDescribe: java/lang/ArrayIndexOutOfBoundsException:

      java/lang/ArrayIndexOutOfBoundsException : (null)
      at org.apache.harmony.luni.util.Base64.decode (Base64.java: -1)
      at org.apache.harmony.luni.util.Base64.decode (Base64.java: -1)
      at TestBase64.main (TestBase64.java: 6)
      Error occured while running starter class: Exception left unhandled before destr
      oying VM
      JNI.ExceptionDescribe: java/lang/ArrayIndexOutOfBoundsException:

      java/lang/ArrayIndexOutOfBoundsException : (null)
      at org.apache.harmony.luni.util.Base64.decode (Base64.java: -1)
      at org.apache.harmony.luni.util.Base64.decode (Base64.java: -1)
      at TestBase64.main (TestBase64.java: 6)
      Error occured in starter class shutdown() method.

      A simple standalone test to reproduce the issue is attached.

      1. Base64.java
        6 kB
        Elena Semukhina
      2. TestBase64.java
        0.3 kB
        Elena Semukhina
      3. Decode.java
        0.3 kB
        Egor Pasko
      4. RCE-mul-flags-undefined-fix.patch.txt
        0.4 kB
        Egor Pasko

        Activity

          People

          • Assignee:
            Geir Magnusson Jr
            Reporter:
            Elena Semukhina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development