Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6890984
Votes 0
Synopsis Comparison of 2 arrays could cause VM crash.
Category hotspot:compiler2
Reported Against
Release Fixed hs17(b04), 7(b75) (Bug ID:2184792)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 6827605 , 6892738
Submit Date 13-OCT-2009
Description
These 2 tests crash on the solaris x86 & windows, they fail on the linux and pass on the solaris-sparc. It looks the their failure have same reason. They fails during array comparison for the hs 17 b03 in the jdk7b74 only. The server & Xcomp should be used to reproduce failures.

The tests are:
java/lang/annotation/UnitTest.java
java/util/Arrays/ArrayObjectMethods.java

Here is the link to the failures in this PIT:
http://sqeweb.sfbay.sun.com/nfs/results/vm/gtee/HSX/PIT/VM/17/b03/jdk7b74/product_01/

Here is the message:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xf9501629, pid=8721, tid=2
#
# JRE version: 7.0-b73
# Java VM: Java HotSpot(TM) Server VM (17.0-b03-2009-10-09-222614.et151817.hs17b03-fastdebug compiled mode solaris-x86 )
# Problematic frame:
# J  sun.reflect.annotation.AnnotationInvocationHandler.memberValueEquals(Ljava/lang/Object;Ljava/lang/Object;)Z
#
# An error report file with more information is saved as:
# /net/peter-home1.russia/export/home1/29/lm153972/ws/bugs/b74/hs_err_pid8721.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Current thread is 2
Dumping core ...
Abort (core dumped)
Posted Date : 2009-10-13 13:58:04.0
Work Around
N/A
Evaluation
This appears to be caused by the fix for 6827605.  The Arrays.equals code changed and it seems to be the cause of the failure.  Grabbing the regression test test/java/lang/annotation/UnitTest.java from the jdk workspace and running this reproduces it:

java -server -Xcomp -XX:CompileOnly=sun/reflect/annotation/AnnotationInvocationHandler.memberValueEquals UnitTest

I think it's not handling the bounds properly.
Posted Date : 2009-10-14 00:25:46.0

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/d40f03b57795
Posted Date : 2009-10-15 00:55:25.0

Note: the problem exists only in HS17 (from b03) which has full fix for 6827605 with aassembler code rearrangment.
Posted Date : 2009-10-15 01:17:06.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang