JDK 1.8 crash in ciObjectFactory::create_new_metadata

Solution Unverified - Updated

Environment

  • Java 1.8.0_152

Issue

  • Our JVM crashed and the hs_err_pid file shows the following crash point in a compiler thread:
Current thread (0x00007f97e15f0000):  JavaThread "C1 CompilerThread2" daemon [_thread_in_vm, id=31636, stack(0x00007f97810fa000,0x00007f97811fa000)]

Stack: [0x00007f97810fa000,0x00007f97811fa000],  sp=0x00007f97811f79b0,  free space=1014k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x439787]  ciObjectFactory::create_new_metadata(Metadata*)+0x327
V  [libjvm.so+0x439bb5]  ciObjectFactory::get_metadata(Metadata*)+0x85
V  [libjvm.so+0x431887]  ciSpeculativeTrapData::translate_from(ProfileData const*)+0x67
V  [libjvm.so+0x431b98]  ciMethodData::load_extra_data()+0xa8
V  [libjvm.so+0x433d08]  ciMethodData::load_data()+0x268
V  [libjvm.so+0x426267]  ciMethod::ensure_method_data(methodHandle)+0xa7
V  [libjvm.so+0x4274b7]  ciMethod::ensure_method_data()+0xa7
V  [libjvm.so+0x371d95]  GraphBuilder::try_inline_full(ciMethod*, bool, Bytecodes::Code, Instruction*)+0x555
V  [libjvm.so+0x36e0df]  GraphBuilder::try_inline(ciMethod*, bool, Bytecodes::Code, Instruction*)+0x11f
V  [libjvm.so+0x36f322]  GraphBuilder::invoke(Bytecodes::Code)+0xcc2
V  [libjvm.so+0x36fcad]  GraphBuilder::iterate_bytecodes_for_block(int)+0x6ad
V  [libjvm.so+0x3717e2]  GraphBuilder::iterate_all_blocks(bool)+0xf2
V  [libjvm.so+0x372da7]  GraphBuilder::GraphBuilder(Compilation*, IRScope*)+0x527
V  [libjvm.so+0x37b7a7]  IRScope::IRScope(Compilation*, IRScope*, int, ciMethod*, int, bool)+0x1e7
V  [libjvm.so+0x37b8bf]  IR::IR(Compilation*, ciMethod*, int)+0x9f
V  [libjvm.so+0x359ceb]  Compilation::build_hir()+0xdb
V  [libjvm.so+0x35a0ae]  Compilation::compile_java_method()+0x6e
V  [libjvm.so+0x35a1de]  Compilation::compile_method()+0x4e
V  [libjvm.so+0x35a54e]  Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*)+0x25e
V  [libjvm.so+0x35b2f9]  Compiler::compile_method(ciEnv*, ciMethod*, int)+0xa9
V  [libjvm.so+0x4b0aea]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0xc9a
V  [libjvm.so+0x4b1a96]  CompileBroker::compiler_thread_loop()+0x5d6
V  [libjvm.so+0xa76833]  JavaThread::thread_main_inner()+0x103
V  [libjvm.so+0xa7697c]  JavaThread::run()+0x11c
V  [libjvm.so+0x927568]  java_start(Thread*)+0x108
C  [libpthread.so.0+0x7dd5]  start_thread+0xc5

Resolution

  • Apply the latest java update

Root Cause

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.