United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8027756 : assert(!hr->isHumongous()) failed: code root in humongous region?

Details
Type:
Bug
Submit Date:
2013-11-04
Status:
Resolved
Updated Date:
2013-12-09
Project Name:
JDK
Resolved Date:
2013-11-07
Component:
hotspot
OS:
Sub-Component:
gc
CPU:
Priority:
P2
Resolution:
Fixed
Affected Versions:
hs25
Fixed Versions:
hs25 (b59)

Related Reports
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/jprt/T/P1/152837.amurillo/s/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp:6659), pid=8812, tid=140642794587904
#  assert(!hr->isHumongous()) failed: code root in humongous region?
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b114) (build 1.8.0-ea-fastdebug-b114)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b57-internal-201311011528.amurillo.hs25-b57-snapshot-fastdebug mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

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

Current thread (0x00007fea441fb800):  JavaThread "C1 CompilerThread2" daemon [_thread_in_vm, id=8832, stack(0x00007fe9f3bfc000,0x00007fe9f3cfd000)]

Stack: [0x00007fe9f3bfc000,0x00007fe9f3cfd000],  sp=0x00007fe9f3cfa740,  free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xf5e88a]  VMError::report_and_die()+0x2da
V  [libjvm.so+0x6deff4]  report_vm_error(char const*, int, char const*, char const*)+0x84
V  [libjvm.so+0x7d3677]  RegisterNMethodOopClosure::do_oop(oop*)+0x247
V  [libjvm.so+0xc9c945]  nmethod::oops_do(OopClosure*, bool)+0x1d5
V  [libjvm.so+0x7b8315]  G1CollectedHeap::register_nmethod(nmethod*)+0x45
V  [libjvm.so+0xca0490]  nmethod::nmethod(Method*, int, int, int, CodeOffsets*, int, DebugInformationRecorder*, Dependencies*, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, int)+0x630
V  [libjvm.so+0xca086f]  nmethod::new_nmethod(methodHandle, int, int, CodeOffsets*, int, DebugInformationRecorder*, Dependencies*, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, int)+0x21f
V  [libjvm.so+0x570a8a]  ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, int, bool, bool)+0x72a
V  [libjvm.so+0x44d398]  Compilation::install_code(int)+0x158
V  [libjvm.so+0x44f66c]  Compilation::compile_method()+0x20c
V  [libjvm.so+0x44fa18]  Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*)+0x398
V  [libjvm.so+0x450ff2]  Compiler::compile_method(ciEnv*, ciMethod*, int)+0x132
V  [libjvm.so+0x665a9e]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0xace
V  [libjvm.so+0x6669b4]  CompileBroker::compiler_thread_loop()+0x5d4
V  [libjvm.so+0xee2341]  JavaThread::thread_main_inner()+0x221
V  [libjvm.so+0xee263d]  JavaThread::run()+0x2ad
V  [libjvm.so+0xcf5088]  java_start(Thread*)+0x108


Current CompileTask:
C1:    417   14 %     1       ReadAfterWrite$WriteA::run @ 9 (32 bytes)

                                    

Comments
URL:   http://hg.openjdk.java.net/hsx/hsx25/hotspot/rev/28674af341ac
User:  amurillo
Date:  2013-11-15 18:50:51 +0000

                                     
2013-11-15
URL:   http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/28674af341ac
User:  tschatzl
Date:  2013-11-07 15:26:33 +0000

                                     
2013-11-07
Changes introduced in JDK-7145569
                                     
2013-11-05
vm_options: -XX:+UseG1GC
vm_version:
java version "1.8.0-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.8.0-ea-fastdebug-b114)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b57-internal-201311011528.amurillo.hs25-b57-snapshot-fastdebug, mixed mode)

Java HotSpot(TM) 64-Bit Server VM (25.0-b57-internal-201311011528.amurillo.hs25-b57-snapshot-fastdebug) for linux-amd64 JRE (1.8.0), built on Nov  1 2013 10:09:29 by "jprtadm" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

                                     
2013-11-04
test: JT_HS:closed/runtime/4827353
                                     
2013-11-04
Both client and server VMs are afftected.
attached s_err_pid, replay_pid:
  - client: 12721
  - server non-tiered: 10678
  - server tiered, stopAtLevel=1: 8812
                                     
2013-11-04
@Igor: could you please add information about the failed test case for reproduction purposes?
                                     
2013-11-04
I believe this assert (and another one with the same condition/text) is simply incorrect.

While it is unlikely (that's probably the reason for adding this assert) that code may embed a reference to a large object, it is possible.
                                     
2013-11-04
$ jtreg -jdk:$JDK -dir:$GAMMADIR/test -v1 -vmoptions:'-XX:+UseG1GC'  -ovm closed/runtime/4827353
                                     
2013-11-04
Thomas, it's a jtreg test 'closed/runtime/4827353' from hotspot/test.
                                     
2013-11-04



Hardware and Software, Engineered to Work Together