JDK-6295064 : JCK6.0: api/java_lang/instrument/Instrumentation/index.html test failes with VM crash
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-07-08
  • Updated: 2011-01-19
  • Resolved: 2005-08-29
Related Reports
Relates :  
Relates :  
Description
The following JCK6.0-b03 test: 
  api/java_lang/instrument/Instrumentation/index.html
fails with a VM crash on Solaris-sparc.
The crash can be reproduced always on the following machine: sqeel

To reproduce the failure, please use the script below:
------- runme.sh ---------
QATOOLS=/java/jct/internal-releases/QATools/1.1/latest/binaries/QATools-1.1
JCK=/java/re/jck/6.0/promoted/beta/b03/binaries/JCK-runtime-60
GENERALJAVA=/java/re/jdk/1.4.2/latest/binaries/solaris-sparc/bin/java
TESTEDJAVA=/java/re/jdk/1.6.0/promoted/all/b42/binaries/solaris-sparc/bin/java
WORKDIR=/home/yg153347/temp/workdir
REPORTDIR=/home/yg153347/temp/report
DEFFILE=/java/jck-dev/workspaces/JCK60-beta/common/build/Defs.SFBay.mk
TEST="api/java_lang/instrument/Instrumentation/index.html"

$QATOOLS/bin/run-jck.sh \
  -jck $JCK -gj $GENERALJAVA -tj $TESTEDJAVA \
  -workdir $WORKDIR -reportdir $REPORTDIR -concurrency 1 \
  -deffile $DEFFILE -nosound -tests $TEST
------- runme.sh ---------


Test output:
-----------
----------messages:(1/1228)----------
command: com.sun.jck.lib.ExecJCKTestOtherJVMCmd LD_LIBRARY_PATH=/java/re/jck/6.0/promoted/beta/b03/binaries/JCK-runtime-60/lib DISPLAY=sqeel:0.0 HOME=/home/yg153347 /java/re/jdk/1.6.0/promoted/all/b42/binaries/solaris-sparc/bin/java -client -Xmixed -Xms32m -Xmx192m -Xfuture -classpath /net/jre.sfbay/p/v10/jck/6.0/beta/b03/binaries/JCK-runtime-60/classes -javaagent:/net/jre.sfbay/p/v10/jck/6.0/beta/b03/binaries/JCK-runtime-60/lib/agent1.jar=file:///net/jre.sfbay/p/v10/jck/6.0/beta/b03/binaries/JCK-runtime-60/tests/,opt1 -javaagent:/net/jre.sfbay/p/v10/jck/6.0/beta/b03/binaries/JCK-runtime-60/lib/agent2.jar=file:///net/jre.sfbay/p/v10/jck/6.0/beta/b03/binaries/JCK-runtime-60/tests/,opt2 -Djava.security.policy=/net/jre.sfbay/p/v10/jck/6.0/beta/b03/binaries/JCK-runtime-60/lib/jck.policy -Djava.rmi.activation.port=57689 javasoft.sqe.tests.api.java.lang.instrument.Instrumentation.InstrumentationTests -TestURL file:///net/jre.sfbay/p/v10/jck/6.0/beta/b03/binaries/JCK-runtime-60/tests/api/java_lang/instrument/Instrumentation/index.html#Instrumentation -TestCaseID ALL -TestURL file:///net/jre.sfbay/p/v10/jck/6.0/beta/b03/binaries/JCK-runtime-60/tests/api/java_lang/instrument/Instrumentation/index.html#Instrumentation
----------out1:(0/0)----------
----------out2:(11/428)----------
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  Internal Error (4A564D54493245444546494E45234C41535345530E4350500160 01), pid=25420, tid=1
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-ea-b42 mixed mode)
# An error report file with more information is saved as /tmp/hs_err_pid25420.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
result: Failed. unexpected exit code: exit code 6


Error report file is attached in log.tar.gz file.

Additional info:
----------------
uname: SunOS sqeel 5.9 Generic_117171-12 sun4u sparc SUNW,Ultra-Enterprise




###@###.### 2005-07-08 18:32:14 GMT

Comments
EVALUATION I'm pursuing the failure mode using 6305655 since I know how to run NSK tests. It is entirely likely that once I fix the problem for the NSK tests, then the problem will also be fixed for the JCK test. Can someone provide me with a script or instructions on how to reproduce the failure with this JCK test? I'd like to test my fix when I'm finished with it.
04-08-2005

EVALUATION This Error (4A564D54493245444546494E45234C41535345530E4350500160 01) code maps to jvmtiRedefineClasses.cpp, line 352 i.e: default: { // leave a breadcrumb jbyte bad_value = scratch_cp->tag_at(scratch_i).value(); ==> ShouldNotReachHere(); } break; Either it is new constant pool flag or a bad one. Dan will investigate this further. I am changing the state to accept state.
25-07-2005