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

VM crashes during dumping classlist with -Xshare:dump option

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16.0.2
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b06

      Backports

        Description

        VM crashes under special situation when both -Xshare:dump and -XX:DumpLoadedClassList options are specified.

        Stack: [0x00007fc45d8ff000,0x00007fc45da00000], sp=0x00007fc45d9fd168, free space=1016k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        C [libc.so.6+0x13fb6c] __strncmp_sse42+0x2c
        V [libjvm.so+0xa95cc9] InstanceKlass::print_class_load_logging(ClassLoaderData*, ModuleEntry const*, ClassFileStream const*) const+0x41
        V [libjvm.so+0x742612] ClassFileParser::fill_instance_klass(InstanceKlass*, bool, ClassInstanceInfo const&, Thread*)+0xf74
        V [libjvm.so+0x7414e5] ClassFileParser::create_instance_klass(bool, ClassInstanceInfo const&, Thread*)+0xdd
        V [libjvm.so+0xd968ce] KlassFactory::create_from_stream(ClassFileStream*, Symbol*, ClassLoaderData*, ClassLoadInfo const&, Thread*)+0x32e
        V [libjvm.so+0xd9de55] LambdaFormInvokers::reload_class(char*, ClassFileStream&, Thread*)+0x11f
        V [libjvm.so+0xd9dc30] LambdaFormInvokers::regenerate_holder_classes(Thread*)+0x5a2
        V [libjvm.so+0xf0089c] MetaspaceShared::preload_and_dump(Thread*)+0x37a
        V [libjvm.so+0x11baee3] Threads::create_vm(JavaVMInitArgs*, bool*)+0x9af
        V [libjvm.so+0xb9a420] JNI_CreateJavaVM_inner(JavaVM_**, void**, void*)+0xda
        V [libjvm.so+0xb9a725] JNI_CreateJavaVM+0x32
        C [libjli.so+0x7664] InitializeJVM+0x13d
        C [libjli.so+0x4252] JavaMain+0xdc
        C [libjli.so+0xaf77] ThreadJavaMain+0x27

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                minqi Yumin Qi
                Reporter:
                ccheung Calvin Cheung
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: