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

[loom] assert(!ik->is_unshareable_info_restored()) failed: shared class can be loaded only once

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: repo-loom
    • Fix Version/s: repo-loom
    • Component/s: hotspot
    • Labels:

      Description

      Test compiler/startup/SmallCodeCacheStartup.java crashes with
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/scratch/mesos/slaves/a6efd25a-e066-4559-9516-837618a35e9e-S2/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/6371c941-e92e-4c44-9ba4-faf1f33c6034/runs/e8dcb612-d494-425d-8795-977bf0dac408/workspace/open/src/hotspot/share/classfile/systemDictionary.cpp:1305), pid=58717, tid=7171
      # assert(!ik->is_unshareable_info_restored()) failed: shared class can be loaded only once
      #
      # JRE version: Java(TM) SE Runtime Environment (15.0) (fastdebug build 15-internal+0-2020-04-02-0118315.leonid.mesnik.loom)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 15-internal+0-2020-04-02-0118315.leonid.mesnik.loom, compiled mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
      # Core dump will be written. Default location: core.58717
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- S U M M A R Y ------------

      Command Line: -XX:ReservedCodeCacheSize=3m -XX:CICompilerCount=64 -Xcomp

      Host: MacPro6,1 x86_64 3700 MHz, 8 cores, 16G, Darwin 17.5.0
      Time: Thu Apr 2 23:01:29 2020 GMT elapsed time: 3.818292 seconds (0d 0h 0m 3s)

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

      Current thread (0x00007fb62f000800): JavaThread "main" [_thread_in_vm, id=7171, stack(0x0000000102a35000,0x0000000102b35000)]

      Stack: [0x0000000102a35000,0x0000000102b35000], sp=0x0000000102b33750, free space=1017k
      Thread 0x00007fb62f000800 [7171]
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0xe7e809] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x6e5
      V [libjvm.dylib+0xe7ef25] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x47
      V [libjvm.dylib+0x5fac74] report_vm_error(char const*, int, char const*, char const*, ...)+0x145
      V [libjvm.dylib+0xdb48c2] SystemDictionary::load_shared_class(InstanceKlass*, Handle, Handle, ClassFileStream const*, Thread*)+0x80
      V [libjvm.dylib+0xdb29a9] SystemDictionary::load_instance_class(Symbol*, Handle, Thread*)+0x269
      V [libjvm.dylib+0xdb1485] SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, Thread*)+0x759
      V [libjvm.dylib+0xdb075b] SystemDictionary::resolve_or_fail(Symbol*, Handle, Handle, bool, Thread*)+0x1b
      V [libjvm.dylib+0x32480c] ConstantPool::klass_at_impl(constantPoolHandle const&, int, bool, Thread*)+0x344
      V [libjvm.dylib+0x2ac033] ConstantPool::klass_at(int, Thread*)+0x3b
      V [libjvm.dylib+0xadf4e3] LinkInfo::LinkInfo(constantPoolHandle const&, int, Thread*)+0x57
      V [libjvm.dylib+0xae4336] LinkResolver::resolve_invokestatic(CallInfo&, constantPoolHandle const&, int, Thread*)+0x1a
      V [libjvm.dylib+0xae42e3] LinkResolver::resolve_invoke(CallInfo&, Handle, constantPoolHandle const&, int, Bytecodes::Code, Thread*)+0x5f
      V [libjvm.dylib+0x830462] InterpreterRuntime::resolve_invoke(JavaThread*, Bytecodes::Code)+0x4a2
      V [libjvm.dylib+0x830bf5] InterpreterRuntime::resolve_from_cache(JavaThread*, Bytecodes::Code)+0x93
      j java.util.Objects.checkFromIndexSize(III)I+4 java.base
      j sun.nio.ch.ConsoleOutputStream.write([BII)V+4 java.base
      j java.io.BufferedOutputStream.flushBuffer()V+20 java.base
      j java.io.BufferedOutputStream.lockedFlush()V+1 java.base
      j java.io.BufferedOutputStream.flush()V+15 java.base
      j java.io.PrintStream.lockedWrite([BII)V+25 java.base
      j java.io.PrintStream.write([BII)V+18 java.base
      j sun.nio.cs.StreamEncoder.writeBytes()V+120 java.base
      j sun.nio.cs.StreamEncoder.implFlushBuffer()V+11 java.base
      j sun.nio.cs.StreamEncoder.lockedFlushBuffer()V+8 java.base
      j sun.nio.cs.StreamEncoder.flushBuffer()V+15 java.base
      j java.io.OutputStreamWriter.flushBuffer()V+4 java.base
      j java.io.PrintStream.lockedWriteln(Ljava/lang/String;)V+30 java.base
      j java.io.PrintStream.writeln(Ljava/lang/String;)V+16 java.base
      j java.io.PrintStream.println(Ljava/lang/String;)V+14 java.base
      j java.lang.System.logInitException(ZZLjava/lang/String;Ljava/lang/Throwable;)V+40 java.base
      J 48 c1 java.lang.System.initPhase2(ZZ)I java.base (27 bytes) @ 0x000000010568de0c [0x000000010568dcc0+0x000000000000014c]
      v ~StubRoutines::call_stub 0x000000010547b9ca
      V [libjvm.dylib+0x839a54] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x3aa
      V [libjvm.dylib+0x838ed3] JavaCalls::call_static(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x10f
      V [libjvm.dylib+0xdfabc6] Threads::create_vm(JavaVMInitArgs*, bool*)+0x76c
      V [libjvm.dylib+0x8f3321] JNI_CreateJavaVM+0x8a
      C [libjli.dylib+0x3ee9] JavaMain+0x10b
      C [libjli.dylib+0x6b9a] ThreadJavaMain+0x9
      C [libsystem_pthread.dylib+0x3661] _pthread_body+0x154
      C [libsystem_pthread.dylib+0x350d] _pthread_body+0x0
      C [libsystem_pthread.dylib+0x2bf9] thread_start+0xd

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j java.util.Objects.checkFromIndexSize(III)I+4 java.base
      j sun.nio.ch.ConsoleOutputStream.write([BII)V+4 java.base
      j java.io.BufferedOutputStream.flushBuffer()V+20 java.base
      j java.io.BufferedOutputStream.lockedFlush()V+1 java.base
      j java.io.BufferedOutputStream.flush()V+15 java.base
      j java.io.PrintStream.lockedWrite([BII)V+25 java.base
      j java.io.PrintStream.write([BII)V+18 java.base
      j sun.nio.cs.StreamEncoder.writeBytes()V+120 java.base
      j sun.nio.cs.StreamEncoder.implFlushBuffer()V+11 java.base
      j sun.nio.cs.StreamEncoder.lockedFlushBuffer()V+8 java.base
      j sun.nio.cs.StreamEncoder.flushBuffer()V+15 java.base
      j java.io.OutputStreamWriter.flushBuffer()V+4 java.base
      j java.io.PrintStream.lockedWriteln(Ljava/lang/String;)V+30 java.base
      j java.io.PrintStream.writeln(Ljava/lang/String;)V+16 java.base
      j java.io.PrintStream.println(Ljava/lang/String;)V+14 java.base
      j java.lang.System.logInitException(ZZLjava/lang/String;Ljava/lang/Throwable;)V+40 java.base
      J 48 c1 java.lang.System.initPhase2(ZZ)I java.base (27 bytes) @ 0x000000010568de0c [0x000000010568dcc0+0x000000000000014c]
      v ~StubRoutines::call_stub 0x000000010547b9ca

        Attachments

          Activity

            People

            • Assignee:
              ccheung Calvin Cheung
              Reporter:
              lmesnik Leonid Mesnik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: