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

Kitchensink.java "fatal error: OutOfMemory encountered: Metaspace"

    Details

    • Type: Bug
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 16
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      The following test failed in the JDK16 CI:

      applications/kitchensink/Kitchensink.java

      Here's a snippet from the log file:

      [2020-07-31T14:16:45.337578Z] Gathering output for process 8119
      [2020-07-31T14:16:47.169483Z] Waiting for completion for process 8119
      [2020-07-31T14:16:47.169643Z] Waiting for completion finished for process 8119
      Output and diagnostic info for process 8119 was saved into 'pid-8119-output.log'
      [2020-07-31T14:16:47.174653Z] Gathering output for process 8121
      [2020-07-31T14:16:51.836868Z] Waiting for completion for process 8121
      [2020-07-31T14:16:51.837034Z] Waiting for completion finished for process 8121
      Output and diagnostic info for process 8121 was saved into 'pid-8121-output.log'
      [stress.process.out] #
      [stress.process.out] # A fatal error has been detected by the Java Runtime Environment:
      [stress.process.out] #
      [stress.process.out] # Internal Error (debug.cpp:339), pid=7983, tid=22787
      [stress.process.out] # fatal error: OutOfMemory encountered: Metaspace
      [stress.process.out] #
      [stress.process.out] # JRE version: Java(TM) SE Runtime Environment (16.0+8) (build 16-ea+8-309)
      [stress.process.out] # Java VM: Java HotSpot(TM) 64-Bit Server VM (16-ea+8-309, mixed mode, sharing, tiered, serial gc, bsd-amd64)
      [stress.process.out] # Core dump will be written. Default location: core.7983
      [stress.process.out] #
      [stress.process.out] # JFR recording file will be written. Location: /scratch/mesos/slaves/52628e90-e5e7-4ef3-af97-10d8776d10db-S1969/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/80272dd6-f743-4058-aaa7-1e7c9c6755a3/runs/13dc6e54-79ec-4f4a-a8e0-ff9df6996b18/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/hs_err_pid7983.jfr
      [stress.process.out] #
      [stress.process.out] Unsupported internal testing APIs have been used.
      [stress.process.out]
      [stress.process.out] # An error report file with more information is saved as:
      [stress.process.out] # /scratch/mesos/slaves/52628e90-e5e7-4ef3-af97-10d8776d10db-S1969/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/80272dd6-f743-4058-aaa7-1e7c9c6755a3/runs/13dc6e54-79ec-4f4a-a8e0-ff9df6996b18/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/hs_err_pid7983.log
      [stress.process.out] [thread 95775 also had an error]
      [stress.process.out] [thread 37379 also had an error]
      [stress.process.out] [thread 80423 also had an error]
      [stress.process.out] #
      [stress.process.out] # Compiler replay data is saved as:
      [stress.process.out] # /scratch/mesos/slaves/52628e90-e5e7-4ef3-af97-10d8776d10db-S1969/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/80272dd6-f743-4058-aaa7-1e7c9c6755a3/runs/13dc6e54-79ec-4f4a-a8e0-ff9df6996b18/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/replay_pid7983.log
      [stress.process.out] #
      [stress.process.out] # If you would like to submit a bug report, please visit:
      [stress.process.out] # https://bugreport.java.com/bugreport/crash.jsp
      [stress.process.out] #
      [2020-07-31T14:17:51.995414Z] Gathering output for process 8127
      [2020-07-31T14:17:51.998304Z] Waiting for completion for process 8127
      [2020-07-31T14:17:51.998415Z] Waiting for completion finished for process 8127
      Output and diagnostic info for process 8127 was saved into 'pid-8127-output.log'
      [2020-07-31T14:17:52.005896Z] Gathering output for process 8128
      [2020-07-31T14:17:52.346403Z] Waiting for completion for process 8128
      [2020-07-31T14:17:52.346560Z] Waiting for completion finished for process 8128
      Output and diagnostic info for process 8128 was saved into 'pid-8128-output.log'
      [2020-07-31T14:17:52.358450Z] Gathering output for process 8130
      [2020-07-31T14:17:55.121012Z] Waiting for completion for process 8130
      [2020-07-31T14:17:55.121160Z] Waiting for completion finished for process 8130
      Output and diagnostic info for process 8130 was saved into 'pid-8130-output.log'
      [2020-07-31T14:18:14.196091Z] Gathering output for process 8133
      [2020-07-31T14:18:14.312816Z] Waiting for completion for process 8133
      [2020-07-31T14:18:14.312961Z] Waiting for completion finished for process 8133
      Output and diagnostic info for process 8133 was saved into 'pid-8133-output.log'
      [2020-07-31T14:18:14.319375Z] Waiting for completion for process 8133
      [2020-07-31T14:18:14.319466Z] Waiting for completion finished for process 8133
      [2020-07-31T14:18:14.319554Z] Waiting for completion for process 8133
      [2020-07-31T14:18:14.319612Z] Waiting for completion finished for process 8133


      Stress process failed. See stress.process.err/stress.process.out files for details.


      Here's the crashing thread's stack:

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

      Current thread (0x00007ff9ce80ea10): JavaThread "C1 CompilerThread0" daemon [_thread_in_vm, id=22787, stack(0x000070000aa02000,0x000070000ab02000)]


      Current CompileTask:
      C1:1030932 59352 2 com.sun.org.apache.xalan.internal.xsltc.compiler.XPathParser::do_action (13 bytes)

      Stack: [0x000070000aa02000,0x000070000ab02000], sp=0x000070000ab00950, free space=1018k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x9eee56] _ZN7VMError14report_and_dieEiPKcS1_P13__va_list_tagP6ThreadPhPvS7_S1_im+0x696
      V [libjvm.dylib+0x9ef51b] _ZN7VMError14report_and_dieEP6ThreadPvPKciS4_S4_P13__va_list_tag+0x3b
      V [libjvm.dylib+0x2f7e46] _Z12report_fatalPKciS0_z+0xb6
      V [libjvm.dylib+0x2f80af] _Z25report_java_out_of_memoryPKc+0xaf
      V [libjvm.dylib+0x7b8159] _ZN9Metaspace20report_metadata_oomeEP15ClassLoaderDatamN12MetaspaceObj4TypeENS_12MetadataTypeEP6Thread+0x239
      V [libjvm.dylib+0x7b7ee1] _ZN9Metaspace8allocateEP15ClassLoaderDatamN12MetaspaceObj4TypeEP6Thread+0x1e1
      V [libjvm.dylib+0x7ce229] _ZN10MethodData8allocateEP15ClassLoaderDataRK12methodHandleP6Thread+0x39
      V [libjvm.dylib+0x7c539f] _ZN6Method29build_interpreter_method_dataERK12methodHandleP6Thread+0x7f
      V [libjvm.dylib+0x25e768] _ZN8ciMethod18ensure_method_dataERK12methodHandle+0x48
      V [libjvm.dylib+0x25e91b] _ZN8ciMethod18ensure_method_dataEv+0x14b
      V [libjvm.dylib+0x1b137e] _ZN12GraphBuilder15try_inline_fullEP8ciMethodbbN9Bytecodes4CodeEP11Instruction+0x10e
      V [libjvm.dylib+0x1a7c39] _ZN12GraphBuilder10try_inlineEP8ciMethodbbN9Bytecodes4CodeEP11Instruction+0x139
      V [libjvm.dylib+0x1a70d6] _ZN12GraphBuilder6invokeEN9Bytecodes4CodeE+0xb76
      V [libjvm.dylib+0x1aadae] _ZN12GraphBuilder27iterate_bytecodes_for_blockEi+0x47e
      V [libjvm.dylib+0x1ae614] _ZN12GraphBuilder18iterate_all_blocksEb+0x44
      V [libjvm.dylib+0x1b0223] _ZN12GraphBuilderC2EP11CompilationP7IRScope+0x643
      V [libjvm.dylib+0x1b7795] _ZN7IRScopeC2EP11CompilationPS_iP8ciMethodib+0x165
      V [libjvm.dylib+0x1b7f42] _ZN2IRC1EP11CompilationP8ciMethodi+0xa2
      V [libjvm.dylib+0x195efb] _ZN11Compilation9build_hirEv+0x15b
      V [libjvm.dylib+0x196ff0] _ZN11Compilation19compile_java_methodEv+0xf0
      V [libjvm.dylib+0x19747c] _ZN11Compilation14compile_methodEv+0x11c
      V [libjvm.dylib+0x197898] _ZN11CompilationC2EP16AbstractCompilerP5ciEnvP8ciMethodiP10BufferBlobbP12DirectiveSet+0x228
      V [libjvm.dylib+0x198eb1] _ZN8Compiler14compile_methodEP5ciEnvP8ciMethodibP12DirectiveSet+0x61
      V [libjvm.dylib+0x2d0222] _ZN13CompileBroker25invoke_compiler_on_methodEP11CompileTask+0x542
      V [libjvm.dylib+0x2cfaeb] _ZN13CompileBroker20compiler_thread_loopEv+0x32b
      V [libjvm.dylib+0x989b1f] _ZN10JavaThread17thread_main_innerEv+0xaf
      V [libjvm.dylib+0x986df1] _ZN6Thread8call_runEv+0x71
      V [libjvm.dylib+0x81d957] _ZL19thread_native_entryP6Thread+0x187
      C [libsystem_pthread.dylib+0x3661] _pthread_body+0x154
      C [libsystem_pthread.dylib+0x350d] _pthread_body+0x0
      C [libsystem_pthread.dylib+0x2bf9] thread_start+0xd


      I'm starting this bug off in hotspot/test since I don't know if
      this is an issue with Kitchensink.

      Here's the test task's description:

      Run test applications/kitchensink/Kitchensink.java with macosx-x64 with -XX:+CreateCoredumpOnCrash -XX:+UseSerialGC -XX:-UseCompressedOops

      So we have an OOM in a C1 thread where -XX:+UseSerialGC
      and -XX:-UseCompressedOops are specified. Lots of possibilities
      for where this analysis should start...

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: