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

ImageStringsReader asserting "error in unicode)"

    Details

      Description


      The jimage update to use modified UTF-8 (http://hg.openjdk.java.net/jigsaw/jake/jdk/rev/b5b8222bc934) hits an assertion in the code when running the jrtfs tests.

      The issue is easily duplicated with test/jdk/internal/jrtfs/Basic.java when running with asserts enable. Here's the stack trace:

      test Basic.invalidPathTest(): failure
      java.lang.AssertionError: error in unicode)
      at jdk.internal.jimage.ImageStringsReader.charsFromMUTF8(java.base@9-internal/ImageStringsReader.java:114)
      at jdk.internal.jimage.ImageStringsReader.stringFromMUTF8(java.base@9-internal/ImageStringsReader.java:123)
      at jdk.internal.jimage.ImageStringsReader.stringFromMUTF8(java.base@9-internal/ImageStringsReader.java:129)
      at jdk.internal.jrtfs.JrtFileSystem.bytesToString(java.base@9-internal/JrtFileSystem.java:198)
      at jdk.internal.jrtfs.JrtFileSystem.lookup(java.base@9-internal/JrtFileSystem.java:208)
      at jdk.internal.jrtfs.JrtFileSystem.findNode(java.base@9-internal/JrtFileSystem.java:243)
      at jdk.internal.jrtfs.JrtFileSystem.checkNode(java.base@9-internal/JrtFileSystem.java:259)
      at jdk.internal.jrtfs.JrtFileSystem.checkNode(java.base@9-internal/JrtFileSystem.java:254)
      at jdk.internal.jrtfs.JrtFileSystem.getFileAttributes(java.base@9-internal/JrtFileSystem.java:131)
      at jdk.internal.jrtfs.JrtFileSystem.getFileAttributes(java.base@9-internal/JrtFileSystem.java:49)
      at jdk.internal.jrtfs.AbstractJrtPath.checkAccess(java.base@9-internal/AbstractJrtPath.java:819)
      at jdk.internal.jrtfs.JrtFileSystemProvider.checkAccess(java.base@9-internal/JrtFileSystemProvider.java:170)
      at java.nio.file.Files.exists(java.base@9-internal/Files.java:2391)
      at Basic.invalidPathTest(Basic.java:579)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlaskey Jim Laskey
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: