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

runtime/appcds/javaldr/ArrayTest.java crashes with assert(k->is_instance_klass())

    Details

    • Subcomponent:
    • Resolved In Build:
      b37

      Backports

        Description

        When dumping the archive, the following assertion failed on all platforms:

        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/workspace/open/src/hotspot/share/oops/instanceKlass.hpp:1029), pid=20138, tid=20140
        # assert(k->is_instance_klass()) failed: cast to InstanceKlass


        Command Line: -XX:MaxRAMPercentage=8 -Xshare:dump -Xlog:cds,cds+hashtables -XX:+UseAppCDS -XX:ExtraSharedClassListFile=/testoutput/jtreg/JTwork/classes/1/runtime/appcds/javaldr/ArrayTest.d/ArrayTest-test.classlist -XX:SharedArchiveFile=/testoutput/jtreg/JTwork/scratch/1/appcds-22h06m52s821.jsa -Xbootclasspath/a:/testoutput/jtreg/JTwork/classes/1/runtime/appcds/javaldr/ArrayTest.d/WhiteBox.jar -verbose:class

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

        Current thread (0x00007fc1f401c170): JavaThread "main" [_thread_in_vm, id=20140, stack(0x00007fc1fbc80000,0x00007fc1fbd81000)]

        Stack: [0x00007fc1fbc80000,0x00007fc1fbd81000], sp=0x00007fc1fbd7d6e0, free space=1013k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x182f8b2] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x162
        V [libjvm.so+0x183067f] VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
        V [libjvm.so+0xb3868d] report_vm_error(char const*, int, char const*, char const*, ...)+0xdd
        V [libjvm.so+0x89bfaa] InstanceKlass::cast(Klass const*)+0xaa
        V [libjvm.so+0x13b040d] MetaspaceShared::preload_classes(char const*, Thread*)+0x17d
        V [libjvm.so+0x13b052c] MetaspaceShared::preload_and_dump(Thread*)+0xac
        V [libjvm.so+0x1783ec4] Threads::create_vm(JavaVMInitArgs*, bool*)+0x874
        V [libjvm.so+0x1010acb] JNI_CreateJavaVM+0x9b
        C [libjli.so+0x39d1] JavaMain+0x81
        C [libpthread.so.0+0x7dc5] start_thread+0xc5

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ccheung Calvin Cheung
                  Reporter:
                  iklam Ioi Lam
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: