JDK-6903416 : SIGSEGV in PhaseIdealLoop::build_loop_late_post
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs16,hs17
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2009-11-20
  • Updated: 2015-04-21
  • Resolved: 2009-11-23
Related Reports
Duplicate :  
Duplicate :  
Description
Tomcat instrumented with jcov crashes. hs_err is attached.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xfea82328, pid=19755, tid=9
#
# JRE version: 7.0-b76
# Java VM: Java HotSpot(TM) Server VM (17.0-b05 mixed mode solaris-sparc )
# Problematic frame:
# V  [libjvm.so+0x682328]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Stack trace:
Instructions: (pc=0xfea82328)
0xfea82318:   de 02 20 1c c2 06 22 d0 85 2b e0 02 de 00 40 02
0xfea82328:   ee 03 e0 04 c6 05 e0 00 80 a0 e0 00 32 40 00 11
;; 00000000fea82318 de 02 20 1c c2 06 22 d0 85 2b e0 02 de 00 40 02
;; ---------------
;; 00000000fea82328 ee 03 e0 04             ld  [ %o7 + 4 ], %l7
;; 00000000fea8232c c6 05 e0 00             ld  [ %l7 ], %g3
;; 00000000fea82330 80 a0 e0 00             cmp  %g3, 0
;; 00000000fea82334 32 40 00 11             bne,a,pn   %icc, 0x00000000fea82378
;;
Stack: [0xbb800000,0xbb880000],  sp=0xbb87dac8,  free space=1f6fea82328k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x682328];;  void PhaseIdealLoop::build_loop_late_post(Node*)+0x558
V  [libjvm.so+0x67fbe8];;  void PhaseIdealLoop::build_and_optimize(bool)+0xb8c
V  [libjvm.so+0x1bf6d4];;  void Compile::Optimize()+0x32c
V  [libjvm.so+0x3e957c];;  Compile::Compile(ciEnv*,C2Compiler*,ciMethod*,int,bool,bool)+0xce0
V  [libjvm.so+0x1ba44c];;  void C2Compiler::compile_method(ciEnv*,ciMethod*,int)+0xc0
V  [libjvm.so+0x1bae04];;  void CompileBroker::invoke_compiler_on_method(CompileTask*)+0x588
V  [libjvm.so+0x22ad5c];;  void CompileBroker::compiler_thread_loop()+0x728
V  [libjvm.so+0x7bfa7c];;  void JavaThread::thread_main_inner()+0x50
V  [libjvm.so+0x6faecc];;  java_start+0x174


Current CompileTask:
C2:  2%     com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read([CII)I @ 209 (2324 bytes)

Comments
EVALUATION I should have added that "SIGSEGV in PhaseIdealLoop::build_loop_late_post" occurs in the product vm, and was invoked by the code "legal = idom(legal)". Apparently, dominator tree is broken.
23-11-2009

EVALUATION fastdebug vm will invoke the following assert: Internal Error (/BUILD_AREA/jdk7/hotspot/src/share/vm/opto/parse1.cpp:1613), pid=1285, tid=21 # Error: assert(n != top() || r->in(pnum) == top(),"live value must not be garbage") So it is a duplicate of 6892079. I have also verified that this is a regression introduced into hs16 b10 by the fix of 6854812. I am closing this bug as duplicate of 6892079. We need to backport the fix of 6892079 to hs16 (and 6u18).
23-11-2009