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

Test fails with "assert(is_loaded()) failed: not loaded" in ciMethod.hpp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 13
    • 11, 12, 13
    • hotspot
    • None

      The attached program creates a JVM anonymous class. It asserts when run with jtreg options -vmoptions:"-Xcomp -XX:CompileThreshold=100" -timeout:8

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (open/src/hotspot/share/ci/ciMethod.hpp:130), pid=49168, tid=49181
      # assert(is_loaded()) failed: not loaded
      #
      # JRE version: Java(TM) SE Runtime Environment (13.0) (fastdebug build 13-internal+0-2019-04-18-1312565.hseigel.null)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 13-internal+0-2019-04-18-1312565.hseigel.null, compiled mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x7e33cb] GraphKit::null_check_receiver_before_call(ciMethod*)+0x9db

                               ...
      Current CompileTask:
      C2: 34968 4433 b 4 NonFindable/0x0000000800bcdc40::test (49 bytes)

      Stack: [0x00007f44722f0000,0x00007f44723f1000], sp=0x00007f44723ed800, free space=1014k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x7e33cb] GraphKit::null_check_receiver_before_call(ciMethod*)+0x9db
      V [libjvm.so+0x7da74a] DirectCallGenerator::generate(JVMState*)+0x2ca
      V [libjvm.so+0xb4bf39] Parse::do_call()+0x559
      V [libjvm.so+0x13b74d0] Parse::do_one_bytecode()+0xff0
      V [libjvm.so+0x13a7e80] Parse::do_one_block()+0x650
      V [libjvm.so+0x13a8383] Parse::do_all_blocks()+0x113
      V [libjvm.so+0x13aa244] Parse::Parse(JVMState*, ciMethod*, float)+0xc54
      V [libjvm.so+0x7d74ac] ParseGenerator::generate(JVMState*)+0x18c
      V [libjvm.so+0x998ed4] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0xe74
      V [libjvm.so+0x7d55ad] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x10d
      V [libjvm.so+0x9a58fe] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x42e
      V [libjvm.so+0x9a6818] CompileBroker::compiler_thread_loop()+0x378
      V [libjvm.so+0x163673a] JavaThread::thread_main_inner()+0x26a
      V [libjvm.so+0x163ed17] JavaThread::run()+0x227
      V [libjvm.so+0x163be56] Thread::call_run()+0xf6
      V [libjvm.so+0x135735d] thread_native_entry(Thread*)+0x10d

        1. hs_err_pid49168.log
          113 kB
          Harold Seigel
        2. testCase.tar
          10 kB
          Harold Seigel
        3. TestUnloadedAnonymousClass.java
          3 kB
          Tobias Hartmann

            thartmann Tobias Hartmann
            hseigel Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: