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

C2 crash: SIGSEGV in NodeHash::hash_find_insert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 25
    • hotspot
    • x86_64
    • os_x

      Running test:

      compiler/loopopts/superword/SumRed_Double.java

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x0000000106ea42e0, pid=77593, tid=27395
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+23) (fastdebug build 25-ea+23-LTS-2800)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+23-LTS-2800, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
      # Problematic frame:
      # V [libjvm.dylib+0x10882e0] NodeHash::hash_find_insert(Node*)+0x80
      #
      # Core dump will be written. Default location: core.77593
      #
      Unsupported internal testing APIs have been used.

      # An error report file with more information is saved as:
      # /System/Volumes/Data/mesos/work_dir/slaves/d228d36c-581b-4156-829e-5c5a441dd0ce-S432/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d8203a56-ae49-4e44-8244-df1b137af877/runs/be5c7903-64ef-4628-aead-b9fa435e426d/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_3/scratch/1/hs_err_pid77593.log
      #
      # Compiler replay data is saved as:
      # /System/Volumes/Data/mesos/work_dir/slaves/d228d36c-581b-4156-829e-5c5a441dd0ce-S432/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d8203a56-ae49-4e44-8244-df1b137af877/runs/be5c7903-64ef-4628-aead-b9fa435e426d/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_3/scratch/1/replay_pid77593.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      The following scenarios have failed: #4

      java.lang.RuntimeException: TestFramework flag VM exited with 134
      at compiler.lib.ir_framework.driver.FlagVMProcess.checkFlagVMExitCode(FlagVMProcess.java:135)
      at compiler.lib.ir_framework.driver.FlagVMProcess.start(FlagVMProcess.java:121)
      at compiler.lib.ir_framework.driver.FlagVMProcess.<init>(FlagVMProcess.java:63)
      at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:754)
      at compiler.lib.ir_framework.TestFramework.startWithScenarios(TestFramework.java:662)
      at compiler.lib.ir_framework.TestFramework.start(TestFramework.java:367)
      at compiler.loopopts.superword.SumRed_Double.main(SumRed_Double.java:52)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
      at java.base/java.lang.Thread.run(Thread.java:1447)


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

      Command Line: -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/24/36/bundles/macos-x64/jdk-24_macos-x64_bin.tar.gz/jdk-24.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/d228d36c-581b-4156-829e-5c5a441dd0ce-S432/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d8203a56-ae49-4e44-8244-df1b137af877/runs/be5c7903-64ef-4628-aead-b9fa435e426d/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_3/tmp -Dtest.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+23-2800/macosx-x64-debug.jdk/jdk-25/fastdebug -Djava.library.path=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+23-2800/macosx-x64-debug.test/hotspot/jtreg/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+IgnoreUnrecognizedVMOptions -XX:LoopUnrollLimit=250 -XX:CompileThresholdScaling=0.1 -XX:-SuperWordReductions -XX:LoopMaxUnroll=8 compiler.lib.ir_framework.flag.FlagVM compiler.loopopts.superword.SumRed_Double

      Host: jMacmini8,1" x86_64 3200 MHz, 12 cores, 32G, Darwin 22.3.0, macOS 13.2.1 (22D68)
      Time: Tue May 13 23:22:21 2025 GMT elapsed time: 0.775431 seconds (0d 0h 0m 0s)

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

      Current thread (0x00007fbd18011010): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=27395, stack(0x00007000029ca000,0x0000700002aca000) (1024K)]


      Current CompileTask:
      C2:775 546 4 jdk.internal.classfile.impl.SplitConstantPool::classEntry (68 bytes)

      Stack: [0x00007000029ca000,0x0000700002aca000], sp=0x0000700002ac5540, free space=1005k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x10882e0] NodeHash::hash_find_insert(Node*)+0x80
      V [libjvm.dylib+0x108aab4] PhaseGVN::transform(Node*)+0x2e4
      V [libjvm.dylib+0x10795ae] Parse::do_get_xxx(Node*, ciField*, bool)+0x11e
      V [libjvm.dylib+0x107929d] Parse::do_field_access(bool, bool)+0x38d
      V [libjvm.dylib+0x1077060] Parse::do_one_bytecode()+0x1ae0
      V [libjvm.dylib+0x1066b9c] Parse::do_one_block()+0x4bc
      V [libjvm.dylib+0x1064a9f] Parse::do_all_blocks()+0x47f
      V [libjvm.dylib+0x1061206] Parse::Parse(JVMState*, ciMethod*, float)+0xa36
      V [libjvm.dylib+0x52776d] ParseGenerator::generate(JVMState*)+0xed
      V [libjvm.dylib+0x52b64c] PredictedCallGenerator::generate(JVMState*)+0x2cc
      V [libjvm.dylib+0x7dae4e] Parse::do_call()+0x86e
      V [libjvm.dylib+0x1075752] Parse::do_one_bytecode()+0x1d2
      V [libjvm.dylib+0x1066b9c] Parse::do_one_block()+0x4bc
      V [libjvm.dylib+0x1064a9f] Parse::do_all_blocks()+0x47f
      V [libjvm.dylib+0x1061206] Parse::Parse(JVMState*, ciMethod*, float)+0xa36
      V [libjvm.dylib+0x52776d] ParseGenerator::generate(JVMState*)+0xed
      V [libjvm.dylib+0x52b64c] PredictedCallGenerator::generate(JVMState*)+0x2cc
      V [libjvm.dylib+0x7dae4e] Parse::do_call()+0x86e
      V [libjvm.dylib+0x1075752] Parse::do_one_bytecode()+0x1d2
      V [libjvm.dylib+0x1066b9c] Parse::do_one_block()+0x4bc
      V [libjvm.dylib+0x1064a9f] Parse::do_all_blocks()+0x47f
      V [libjvm.dylib+0x1061206] Parse::Parse(JVMState*, ciMethod*, float)+0xa36
      V [libjvm.dylib+0x52776d] ParseGenerator::generate(JVMState*)+0xed
      V [libjvm.dylib+0x7dae4e] Parse::do_call()+0x86e
      V [libjvm.dylib+0x1075752] Parse::do_one_bytecode()+0x1d2
      V [libjvm.dylib+0x1066b9c] Parse::do_one_block()+0x4bc
      V [libjvm.dylib+0x1064a9f] Parse::do_all_blocks()+0x47f
      V [libjvm.dylib+0x1061206] Parse::Parse(JVMState*, ciMethod*, float)+0xa36
      V [libjvm.dylib+0x52776d] ParseGenerator::generate(JVMState*)+0xed
      V [libjvm.dylib+0x52b64c] PredictedCallGenerator::generate(JVMState*)+0x2cc
      V [libjvm.dylib+0x7dae4e] Parse::do_call()+0x86e
      V [libjvm.dylib+0x1075752] Parse::do_one_bytecode()+0x1d2
      V [libjvm.dylib+0x1066b9c] Parse::do_one_block()+0x4bc
      V [libjvm.dylib+0x1064a9f] Parse::do_all_blocks()+0x47f
      V [libjvm.dylib+0x1061206] Parse::Parse(JVMState*, ciMethod*, float)+0xa36
      V [libjvm.dylib+0x52776d] ParseGenerator::generate(JVMState*)+0xed
      V [libjvm.dylib+0x7dae4e] Parse::do_call()+0x86e
      V [libjvm.dylib+0x1075752] Parse::do_one_bytecode()+0x1d2
      V [libjvm.dylib+0x1066b9c] Parse::do_one_block()+0x4bc
      V [libjvm.dylib+0x1064a9f] Parse::do_all_blocks()+0x47f
      V [libjvm.dylib+0x1061206] Parse::Parse(JVMState*, ciMethod*, float)+0xa36
      V [libjvm.dylib+0x52776d] ParseGenerator::generate(JVMState*)+0xed
      V [libjvm.dylib+0x52b64c] PredictedCallGenerator::generate(JVMState*)+0x2cc
      V [libjvm.dylib+0x7dae4e] Parse::do_call()+0x86e
      V [libjvm.dylib+0x1075752] Parse::do_one_bytecode()+0x1d2
      V [libjvm.dylib+0x1066b9c] Parse::do_one_block()+0x4bc
      V [libjvm.dylib+0x1064a9f] Parse::do_all_blocks()+0x47f
      V [libjvm.dylib+0x1061206] Parse::Parse(JVMState*, ciMethod*, float)+0xa36
      V [libjvm.dylib+0x52776d] ParseGenerator::generate(JVMState*)+0xed
      V [libjvm.dylib+0x661777] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x12b7
      V [libjvm.dylib+0x5258b0] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x200
      V [libjvm.dylib+0x684882] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xc42
      V [libjvm.dylib+0x683817] CompileBroker::compiler_thread_loop()+0x3e7
      V [libjvm.dylib+0xa918e8] JavaThread::thread_main_inner()+0x1b8
      V [libjvm.dylib+0x12f61ec] Thread::call_run()+0xbc
      V [libjvm.dylib+0x1030f77] thread_native_entry(Thread*)+0x137
      C [libsystem_pthread.dylib+0x6259] _pthread_start+0x7d
      C [libsystem_pthread.dylib+0x1c7b] thread_start+0xf

      siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000020018

      Registers:
      RAX=0x0000000000000019, RBX=0x00007fbce8188588, RCX=0x00007fbcd03760d0, RDX=0x0000700002ac546f
      RSP=0x0000700002ac5540, RBP=0x0000700002ac5580, RSI=0x00007fbcd0376068, RDI=0x00007fbcd0376068
      R8 =0x0000000000000004, R9 =0x0000000000000004, R10=0x0000000000000004, R11=0x00007fbca03a0f30
      R12=0x0000000000000004, R13=0x0000000000000589, R14=0x00007fbcd0376068, R15=0x0000000000020000
      RIP=0x0000000106ea42e0, EFLAGS=0x0000000000010202, ERR=0x0000000000000004
        TRAPNO=0x000000000000000e

            thartmann Tobias Hartmann
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: