JDK-6875530 : CTW fails: /hotspot/src/share/vm/code/exceptionHandlerTable.cpp:92
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs16
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: x86
  • Submitted: 2009-08-25
  • Updated: 2011-01-19
  • Resolved: 2010-12-15
Related Reports
Relates :  
Description
Failed on linux-i586, solaris-i586/amd64, passed on solaris-sparc. 
C1 specific.


To reproduce:
-->/net/vmsqe.russia/export/jdk/re/6u18/promoted/ea/b01/binaries/solaris-i586/fastdebug/bin/java   -client  -XX:-ShowMessageBoxOnError     -Xverify:all  -XX:+CompileTheWorld -Xbootclasspath/p:/net/vmsqe.russia/export/testbase/ctw/build/../jars/ctw/jarfiles/DataProxy.jar
VM option '-ShowMessageBoxOnError'
VM option '+CompileTheWorld'
Warning:  Cannot open log file: hotspot.log
Warning:  Forcing option -XX:LogFile=/tmp//hs_pid4692.log
CompileTheWorld : Compiling all classes in /net/vmsqe.russia/export/testbase/ctw/jars/ctw/jarfiles/DataProxy.jar

CompileTheWorld (1) : Skipping DataProxyPlugin
CompileTheWorld (2) : com/sun/plugins/i18n/a
CompileTheWorld (3) : com/sun/plugins/i18n/b
CompileTheWorld (4) : com/sun/plugins/i18n/c
CompileTheWorld (5) : com/sun/javaload/contrib/DataProxy/JDBCCommon/JDBCMap
CompileTheWorld (6) : com/sun/javaload/contrib/DataProxy/JDBCCommon/JDBCMap$MapEntry
CompileTheWorld (7) : com/sun/javaload/contrib/DataProxy/JDBC/JCallableStatement
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/exceptionHandlerTable.cpp:92
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/export0/BUILD_AREA/jdk6_18/hotspot/src/share/vm/code/exceptionHandlerTable.cpp:92), pid=4692, tid=7
#  Error: assert(entry_for(catch_pco, handler_bcis->at(i), scope_depth)->pco() == handler_pcos->at(i),"entry not added correctly (1)")
#
# JRE version: 6.0_18-b01
# Java VM: Java HotSpot(TM) Client VM (16.0-b08-fastdebug mixed mode solaris-x86 )
# An error report file with more information is saved as:
# /tmp/hs_err_pid4692.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Current thread is 7
Dumping core ...
Abort

Comments
EVALUATION This appears to have been connected to having the unwind handler exist at the java level as it is no longer reproducible after the fix for 6939930 which removed it.
15-12-2010

EVALUATION This is a benign bug in the logic for builing exception handler tables that's been around since 1.6. It's caused by overlapping exception tables that dispatch to the same bci: 0 5 25 Class com/sun/plugins/i18n/c 1 6 25 Class com/sun/plugins/i18n/c 2 7 25 Class com/sun/plugins/i18n/c The code generation will be correct in product mode so execution will be correct.
25-08-2009