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

C2: assert(n != top() || r->in(pnum) == top()) failed: live value must not be garbage

XMLWordPrintable

      The test runtime/exceptionMsgs/NegativeArraySizeException/NegativeArraySizeExceptionTest.java starts to fail after JDK-8267904 (which in the meantime was backed out by JDK-8268301). The REDO of JDK-8267904 should make sure to fix this assertion failure.

      The bug can easily be reproduced with the replay file:
      $ java -XX:+ReplayIgnoreInitErrors -XX:+ReplayCompiles -XX:ReplayDataFile=replay_pid24379.log

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/60083dd7-dace-40c7-88ff-7d671f4e08ee/runs/0bd8516f-8a0d-4af6-a099-69f506e554db/workspace/open/src/hotspot/share/opto/parse1.cpp:1792), pid=24379, tid=24425
      # assert(n != top() || r->in(pnum) == top()) failed: live value must not be garbage
      #
      # JRE version: Java(TM) SE Runtime Environment (17.0+26) (fastdebug build 17-ea+26-LTS-2327)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+26-LTS-2327, compiled mode, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x15cd1ba] Parse::merge_common(Parse::Block*, int)+0x9aa
      ............
      Command Line: -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79144/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/737f5ec5-d412-4fd8-8213-76310178d767/runs/4db5d8d2-b341-448b-9807-c57a499e6a70/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/tmp -Djavatest.security.noSecurityManager=true -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:-TieredCompilation -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+26-2327/linux-x64-debug.test/hotspot/jtreg/native --patch-module=java.base=/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79144/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/737f5ec5-d412-4fd8-8213-76310178d767/runs/4db5d8d2-b341-448b-9807-c57a499e6a70/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/patches/java.base -Djava.security.policy=file:/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79144/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/737f5ec5-d412-4fd8-8213-76310178d767/runs/4db5d8d2-b341-448b-9807-c57a499e6a70/./testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/jtreg.policy com.sun.javatest.regtest.agent.AgentServer -id 86 -logfile /opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79144/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/737f5ec5-d412-4fd8-8213-76310178d767/runs/4db5d8d2-b341-448b-9807-c57a499e6a70/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/jtData/agentServer.86.trace -allowSetSecurityManager -port 60533 -timeoutFactor 10.0
      ...........
      Current thread (0x00007efd80501a60): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=24425, stack(0x00007efd681fa000,0x00007efd682fb000)]


      Current CompileTask:
      C2: 30501 5315 !b NegativeArraySizeExceptionTest::main (858 bytes)

      Stack: [0x00007efd681fa000,0x00007efd682fb000], sp=0x00007efd682f7a90, free space=1014k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x15cd1ba] Parse::merge_common(Parse::Block*, int)+0x9aa
      V [libjvm.so+0xb75b3c] Parse::catch_inline_exceptions(SafePointNode*)+0xc7c
      V [libjvm.so+0x15c4bac] Parse::do_exceptions()+0xec
      V [libjvm.so+0x15cdeeb] Parse::do_one_block()+0x37b
      V [libjvm.so+0x15cf0a1] Parse::do_all_blocks()+0x121
      V [libjvm.so+0x15d3b25] Parse::Parse(JVMState*, ciMethod*, float)+0xb85
      V [libjvm.so+0x84bf80] ParseGenerator::generate(JVMState*)+0x110
      V [libjvm.so+0xa24872] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0x1352
      V [libjvm.so+0x84931a] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1ea
      V [libjvm.so+0xa35469] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xfb9
      V [libjvm.so+0xa361d8] CompileBroker::compiler_thread_loop()+0x5a8
      V [libjvm.so+0x18b3b71] JavaThread::thread_main_inner()+0x271
      V [libjvm.so+0x18bb770] Thread::call_run()+0x100
      V [libjvm.so+0x158878e] thread_native_entry(Thread*)+0x10e

            hshi Hui Shi
            chagedorn Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: