Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-1775

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • DRLVM
    • 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.

      Attachments

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

        Activity

          People

            geir Geir Magnusson Jr
            elena Elena Litani
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: