JDK-6923675 : JVM dumps core in C2 compiled code when -XX:+OptimizeStringConcat is used
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 6u18
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2010-02-05
  • Updated: 2010-07-29
  • Resolved: 2010-02-05
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
6u18Resolved
Related Reports
Duplicate :  
Description
JVM 6u18 repeatedly dumped core when -XX:+OptimizeStringConcat was used.
The compiled Java method affected was always:
   
J  java.lang.Throwable.printStackTrace(Ljava/io/PrintWriter;)V


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (nmethod.cpp:1836), pid=10048, tid=59
#  Error: guarantee(cont_offset != 0,"unhandled implicit exception in compiled code")
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode solaris-sparc )
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

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

Current thread (0x01ea1000):  JavaThread "TP-Processor4" daemon [_thread_in_Java, id=59, stack(0xb1580000,0xb1600000)]

Stack: [0xb1580000,0xb1600000], sp=0xb15fb670, free space=1edfee3b5e4k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x84badc] void VMError::report_and_die()+0x764
V [libjvm.so+0x445b1c] void report_fatal(const char*,int,const char*)+0x2c
V [libjvm.so+0x22d680] unsigned char*nmethod::continuation_for_implicit_exception(unsigned char*)+0x5c
V [libjvm.so+0x20f990] unsigned char*SharedRuntime::continuation_for_implicit_exception(JavaThread*,unsigned char*,SharedRuntime::ImplicitExceptionKind)+0x2a0
V [libjvm.so+0x1c079c] JVM_handle_solaris_signal+0x5fc
C [libc.so.1+0xc01e4] __sighndlr
C [libc.so.1+0xb52dc] call_user_handler
J java.lang.Throwable.printStackTrace(Ljava/io/PrintWriter;)V
j org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep()[Ljava/lang/String;+43
j org.apache.log4j.spi.LoggingEvent.getThrowableStrRep()[Ljava/lang/String;+13
j org.apache.log4j.WriterAppender.subAppend(Lorg/apache/log4j/spi/LoggingEvent;)V+26
j org.apache.log4j.DailyRollingFileAppender.subAppend(Lorg/apache/log4j/spi/LoggingEvent;)V+54
j org.apache.log4j.WriterAppender.append(Lorg/apache/log4j/spi/LoggingEvent;)V+10
j org.apache.log4j.AppenderSkeleton.doAppend(Lorg/apache/log4j/spi/LoggingEvent;)V+106
j org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Lorg/apache/log4j/spi/LoggingEvent;)I+41
j org.apache.log4j.Category.callAppenders(Lorg/apache/log4j/spi/LoggingEvent;)V+26
j org.apache.log4j.Category.forcedLog(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V+14
j org.apache.log4j.Category.error(Ljava/lang/Object;Ljava/lang/Throwable;)V+37
[ ... ]

Comments
EVALUATION This shows the same signature as 6920293 where access to a strings fields are missing a null check and the check can be seen later in the code.
05-02-2010

EVALUATION Could be duplicate of 6920293.
05-02-2010