JDK-8136707 : metaspace/stressDictionary hit assert(Universe::heap()->is_in_reserved(obj)) failed: sanity check
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • Submitted: 2015-09-17
  • Updated: 2016-06-09
  • Resolved: 2016-06-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Relates :  
Relates :  
Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/jprt/T/P1/010447.jenkins/s/hotspot/src/share/vm/runtime/jniHandles.cpp:57), pid=25615, tid=0x000000000000645b
#  assert(Universe::heap()->is_in_reserved(obj)) failed: sanity check
#
# JRE version: Java(TM) SE Runtime Environment (9.0) (build 1.9.0-internal-fastdebug-20150917010447.jenkins.workspace-b00)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-internal-fastdebug-20150917010447.jenkins.workspace-b00, compiled mode, tiered, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e" (or dumping to /export/local/aurora/sandbox/results/ResultDir/stressDictionary/core.25615)
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

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

Command Line: -Xcomp -ea -esa -Xcomp metaspace.stressDictionary.StressDictionary

Host: scaaa101, Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz, 32 cores, 252G, Oracle Linux Server release 6.3
Time: Thu Sep 17 02:00:45 2015 UTC elapsed time: 33 seconds (0d 0h 0m 33s)

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

Current thread (0x00007f7938727800):  JavaThread "C1 CompilerThread10" daemon [_thread_in_vm, id=25691, stack(0x00007f77ef75f000,0x00007f77ef860000)]


Current CompileTask:
C1:  33167 12395    b  2       java.nio.file.Files$$Lambda$88/496436999::run (8 bytes)

Stack: [0x00007f77ef75f000,0x00007f77ef860000],  sp=0x00007f77ef85e350,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x1208521]  VMError::report_and_die()+0x151
V  [libjvm.so+0x839f8b]  report_vm_error(char const*, int, char const*, char const*)+0x7b
V  [libjvm.so+0xbd2a24]  JNIHandles::make_local(Thread*, oop)+0x54
V  [libjvm.so+0x69ec59]  ciInstanceKlass::ciInstanceKlass(KlassHandle)+0x199
V  [libjvm.so+0x6cb663]  ciObjectFactory::create_new_metadata(Metadata*)+0x163
V  [libjvm.so+0x6c9f85]  ciObjectFactory::get_metadata(Metadata*)+0x115
V  [libjvm.so+0x6cb6f2]  ciObjectFactory::create_new_metadata(Metadata*)+0x1f2
V  [libjvm.so+0x6c9f85]  ciObjectFactory::get_metadata(Metadata*)+0x115
V  [libjvm.so+0x68be48]  ciEnv::get_method_from_handle(Method*)+0x98
V  [libjvm.so+0x7bd659]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x329
V  [libjvm.so+0x7be4d8]  CompileBroker::compiler_thread_loop()+0x408
V  [libjvm.so+0x11815a4]  JavaThread::thread_main_inner()+0x1d4
V  [libjvm.so+0x11818c8]  JavaThread::run()+0x298
V  [libjvm.so+0xf2ec4a]  java_start(Thread*)+0xca
C  [libpthread.so.0+0x7851]
Comments
I have also not seen newer instances of the failure. We can close the bug as "Not and Issue", unless there objections (or suggestions on how to proceed differently).
07-06-2016

This issue is very likely to be related to JDK-8131153: That bug also happened because some VM-internal data was corrupted. Also, the test that triggers this problem is the same in both cases.
24-03-2016

indeed, it happened 2 times before on builds w/o jvmci.
25-09-2015

Why do you think this is related to JVMCI? Did this bug happen again?
22-09-2015