JDK-8014189 : JVM crash with SEGV in ConnectionGraph::record_for_escape_analysis()
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs24,hs25,6u45
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-05-08
  • Updated: 2013-06-26
  • Resolved: 2013-05-11
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 6 JDK 7 JDK 8 Other
6u60Fixed 7u40Fixed 8Fixed hs24Fixed
The process crashes with the following stack trace:
Stack: [0xffffffff77500000,0xffffffff77600000],  sp=0xffffffff775f9da0,  free
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native
V  [libjvm.so+0x551708]  void
V  [libjvm.so+0x54e89c]  bool ConnectionGraph::compute_escape()+0x22c
V  [libjvm.so+0x54e610]  void
V  [libjvm.so+0x246160]  void Compile::Optimize()+0x130
V  [libjvm.so+0x4c6da4]  
V  [libjvm.so+0x241360]  void
V  [libjvm.so+0x2420dc]  void
V  [libjvm.so+0x2b61fc]  void CompileBroker::compiler_thread_loop()+0x844
V  [libjvm.so+0x957c0c]  void JavaThread::thread_main_inner()+0x3c
V  [libjvm.so+0x866364]  java_start+0x164

The crash happens in this part of the code when the  adr_type returned by make_ptr is accessed. The  adr_type returned by make_ptr is NULL and that causes the crash.

     case Op_CompareAndSwapN:
2485     {
2486       const Type *adr_type = phase->type(n->in(MemNode::Address));
2487       adr_type = adr_type->make_ptr();
2488       if (adr_type->isa_oopptr()) {
2489         add_node(n, PointsToNode::UnknownType,
PointsToNode::UnknownEscape, false);
2490       } else {
2491         _processed.set(n->_idx);
2492         return;
2493       }
2494       break; 

Not reproducible. The fix is based on analysis of core file. Difficult to create regression test.