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

read_base_archive_name() could read past the end of buffer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b23
    • CPU:
      x86_64
    • OS:
      windows

      Description

      Test: runtime/cds/appcds/dynamicArchive/ArchiveConsistency.java

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (t:\workspace\open\src\hotspot\os\windows\os_windows.cpp:4435), pid=73956, tid=58200
      # assert(result == unicode_path_len) failed: length already checked above
      #

      --------------- T H R E A D ---------------

      Current thread is native thread

      Stack: [0x0000000856d00000,0x0000000856e00000]
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0xb532f1] os::platform_print_native_stack+0xf1 (os_windows_x86.cpp:235)
      V [jvm.dll+0xd9047e] VMError::report+0x101e (vmError.cpp:828)
      V [jvm.dll+0xd91e7e] VMError::report_and_die+0x7fe (vmError.cpp:1656)
      V [jvm.dll+0xd92604] VMError::report_and_die+0x64 (vmError.cpp:1437)
      V [jvm.dll+0x4df6c7] report_vm_error+0xb7 (debug.cpp:282)
      V [jvm.dll+0xb4982d] convert_to_unicode+0x9d (os_windows.cpp:4435)
      V [jvm.dll+0xb52a27] wide_abs_unc_path+0x117 (os_windows.cpp:4500)
      V [jvm.dll+0xb51a0a] os::stat+0x3a (os_windows.cpp:4538)
      V [jvm.dll+0xb40988] os::file_exists+0x48 (os.cpp:1403)
      V [jvm.dll+0x596082] FileHeaderHelper::read_base_archive_name+0xe2 (filemap.cpp:1098)
      V [jvm.dll+0x592c75] FileMapInfo::check_archive+0x1f5 (filemap.cpp:1143)
      V [jvm.dll+0x227a15] Arguments::init_shared_archive_paths+0x3c5 (arguments.cpp:3542)
      V [jvm.dll+0x226115] Arguments::apply_ergo+0x205 (arguments.cpp:4001)
      V [jvm.dll+0xd0a7b2] Threads::create_vm+0xf2 (thread.cpp:2709)
      V [jvm.dll+0x7ac892] JNI_CreateJavaVM_inner+0xb2 (jni.cpp:3616)
      V [jvm.dll+0x7b01ef] JNI_CreateJavaVM+0x1f (jni.cpp:3704)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iklam Ioi Lam
              Reporter:
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: