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

C2 failed due to SIGSEGV in Arena::Arealloc()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 14
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux

      Description

      The following test failed in the JDK14 CI:

      java/lang/String/concat/ImplicitStringConcatShapes.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(4/309)----------
      command: main -Xverify:all -Djava.lang.invoke.stringConcat=MH_SB_SIZED_EXACT ImplicitStringConcatShapes
      reason: User specified action: run main/othervm -Xverify:all -Djava.lang.invoke.stringConcat=MH_SB_SIZED_EXACT ImplicitStringConcatShapes
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 31.139
      ----------configuration:(0/0)----------
      ----------System.out:(23/1755)----------
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fcc4a28b42a, pid=6953, tid=6966
      #
      # JRE version: Java(TM) SE Runtime Environment (14.0+24) (fastdebug build 14-ea+24-1104)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 14-ea+24-1104, compiled mode, sharing, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x5e042a] Arena::Arealloc(void*, unsigned long, unsigned long, AllocFailStrategy::AllocFailEnum)+0x3a
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/6e54f4af-e606-43b0-80ce-0a482a5988b6-S179/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5d6df22a-1097-4bf1-b008-0ee18c6a5dc9/runs/c1b6a9a1-94fa-4618-92ac-d6a56c6809e2/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/scratch/1/core.6953)
      #
      # An error report file with more information is saved as:
      # /opt/mach5/mesos/work_dir/slaves/6e54f4af-e606-43b0-80ce-0a482a5988b6-S179/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5d6df22a-1097-4bf1-b008-0ee18c6a5dc9/runs/c1b6a9a1-94fa-4618-92ac-d6a56c6809e2/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/scratch/1/hs_err_pid6953.log
      #
      # Compiler replay data is saved as:
      # /opt/mach5/mesos/work_dir/slaves/6e54f4af-e606-43b0-80ce-0a482a5988b6-S179/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5d6df22a-1097-4bf1-b008-0ee18c6a5dc9/runs/c1b6a9a1-94fa-4618-92ac-d6a56c6809e2/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/scratch/1/replay_pid6953.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      Current thread is 6966
      Dumping core ...
      ----------System.err:(0/0)----------
      ----------rerun:(46/5177)*----------

      Here's the crashing thread's stack:

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

      Current thread (0x00007fcc44350000): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=6966, stack(0x00007fcc287d1000,0x00007fcc288d2000)]


      Current CompileTask:
      C2: 23772 2983 b java.lang.invoke.StringConcatFactory::doStringConcat (526 bytes)

      Stack: [0x00007fcc287d1000,0x00007fcc288d2000], sp=0x00007fcc288cd330, free space=1008k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x5e042a] Arena::Arealloc(void*, unsigned long, unsigned long, AllocFailStrategy::AllocFailEnum)+0x3a
      V [libjvm.so+0x133a1f9] Node_Array::grow(unsigned int)+0x59
      V [libjvm.so+0x83025b] Unique_Node_List::push(Node*)+0x8b
      V [libjvm.so+0x999a1f] Compile::Optimize()+0x4df
      V [libjvm.so+0x99b5d4] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x1094
      V [libjvm.so+0x813b20] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x110
      V [libjvm.so+0x9a7e2c] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x2cc
      V [libjvm.so+0x9a8e18] CompileBroker::compiler_thread_loop()+0x4a8
      V [libjvm.so+0x1670726] JavaThread::thread_main_inner()+0x226
      V [libjvm.so+0x1675e06] Thread::call_run()+0xf6
      V [libjvm.so+0x13a804e] thread_native_entry(Thread*)+0x10e


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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dcubed Daniel Daugherty
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: