JDK-8175186 : C2 fails with "assert(i < _max) failed: oob: i=1, _max=1"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2017-02-17
  • Updated: 2017-02-17
  • Resolved: 2017-02-17
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
Duplicate :  
Description
The test runtime/Metaspace/FragmentMetaspace.java crashes on 32-bit Linux with:

Current CompileTask:
C2:  34079 8917       4       com.sun.tools.javac.jvm.ClassWriter::writeClassFile (1300 bytes)

Stack: [0xd2d7f000,0xd2e00000],  sp=0xd2dfd270,  free space=504k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x144c037]  VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned int)+0x137;;  VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned int)+0x137
V  [libjvm.so+0x144cd40]  VMError::report_and_die(Thread*, char const*, int, char const*, char const*, char*)+0x30;;  VMError::report_and_die(Thread*, char const*, int, char const*, char const*, char*)+0x30
V  [libjvm.so+0x922a40]  report_vm_error(char const*, int, char const*, char const*, ...)+0x60;;  report_vm_error(char const*, int, char const*, char const*, ...)+0x60
V  [libjvm.so+0x10d78e4]  Node::in(unsigned int) const [clone .isra.46]+0x64;;  Node::in(unsigned int) const [clone .isra.46]+0x64
V  [libjvm.so+0x10e15c4]  Node::dominates(Node*, Node_List&)+0x244;;  Node::dominates(Node*, Node_List&)+0x244
V  [libjvm.so+0x1015fad]  MemNode::all_controls_dominate(Node*, Node*)+0x31d;;  MemNode::all_controls_dominate(Node*, Node*)+0x31d
V  [libjvm.so+0x101c0d9]  InitializeNode::detect_init_independence(Node*, int&)+0xb9;;  InitializeNode::detect_init_independence(Node*, int&)+0xb9
V  [libjvm.so+0x10258cb]  InitializeNode::can_capture_store(StoreNode*, PhaseTransform*, bool) [clone .part.174]+0x18b;;  InitializeNode::can_capture_store(StoreNode*, PhaseTransform*, bool) [clone .part.174]+0x18b
V  [libjvm.so+0x102885a]  StoreNode::Ideal(PhaseGVN*, bool)+0x17a;;  StoreNode::Ideal(PhaseGVN*, bool)+0x17a
V  [libjvm.so+0x11bf534]  PhaseIterGVN::transform_old(Node*)+0xb4;;  PhaseIterGVN::transform_old(Node*)+0xb4
V  [libjvm.so+0x11bb6de]  PhaseIterGVN::optimize()+0x4e;;  PhaseIterGVN::optimize()+0x4e
V  [libjvm.so+0x8a0a33]  Compile::Optimize()+0x8f3;;  Compile::Optimize()+0x8f3
V  [libjvm.so+0x8a233a]  Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x106a;;  Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x106a
V  [libjvm.so+0x6e9efe]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x37e;;  C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x37e
V  [libjvm.so+0x8add1b]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x5bb;;  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x5bb
V  [libjvm.so+0x8aed87]  CompileBroker::compiler_thread_loop()+0x2e7;;  CompileBroker::compiler_thread_loop()+0x2e7
V  [libjvm.so+0x139f778]  compiler_thread_entry(JavaThread*, Thread*)+0x28;;  compiler_thread_entry(JavaThread*, Thread*)+0x28
V  [libjvm.so+0x13b22d0]  JavaThread::thread_main_inner()+0x220;;  JavaThread::thread_main_inner()+0x220
V  [libjvm.so+0x13b256a]  JavaThread::run()+0x1ca;;  JavaThread::run()+0x1ca
V  [libjvm.so+0x1124854]  thread_native_entry(Thread*)+0x124;;  thread_native_entry(Thread*)+0x124
C  [libpthread.so.0+0x6b2c]  start_thread+0xcc
C  [libc.so.6+0xf75fe]  clone+0x5e
Comments
This showed up before. Closing as duplicate of JDK-8164954.
17-02-2017

ILW = Assert in C2 (regression), fails in nightlies (only once), disable compilation = HMM = P2
17-02-2017