JDK-7175775 : Disable SA options in jinfo/Basic.java test until SA updated for new hash and String count/offset
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-06-10
  • Updated: 2014-01-15
  • Resolved: 2012-06-27
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 7 JDK 8
7u21Fixed 8 b45Fixed
Related Reports
Relates :  
Relates :  
Description
The jdk test sun/tools/jinfo/Basic.java is failing in JPRT jobs that run the tools tests and in TL nightly with a NullPointerException because SA hasn't been updated for the new hash code and also for the removal of the String offset/count fields. Attached is an example test failure.

The SA work is tracked by 7175133, this new bug proposes to temporarily skip the options that uses SA so that the test can run. Once SA has been updated then these options can be re-enabled again.

Test Results (version 2)
#Thu Jun 07 18:53:48 PDT 2012
#checksum:73561efe410366fc
#-----testdescription-----
$file=/export/home/aurora/sandbox/testbase/test/sun/tools/jinfo/Basic.sh
$root=/export/home/aurora/sandbox/testbase/test
keywords=bug6402766 shell
library=../common
run=USER_SPECIFIED build SimpleApplication ShutdownSimpleApplication\nUSER_SPECIFIED shell Basic.sh\n
source=Basic.sh
title=Unit test for jinfo utility

#-----environment-----

#-----testresult-----
description=file\:/export/home/aurora/sandbox/testbase/test/sun/tools/jinfo/Basic.sh
elapsed=5916 0\:00\:05.916
end=Thu Jun 07 18\:53\:48 PDT 2012
environment=regtest
execStatus=Failed. Execution failed\: exit code 1
hostname=jsn-gtwy-1
javatestOS=Linux 2.6.18-194.el5 (i386)
javatestVersion=4.4
jtregVersion=jtreg 4.1 fcs b04
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile shell
start=Thu Jun 07 18\:53\:43 PDT 2012
test=sun/tools/jinfo/Basic.sh
user.name=aurora
work=/export/home/aurora/sandbox/gresults/testoutput/jdk_tools2/JTwork/sun/tools/jinfo

#section:script_messages
----------messages:(4/219)----------
JDK under test: (/export/home/aurora/sandbox/jdk)
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-langtools-nightly-h251-20120607-b43-b00)
Java HotSpot(TM) Client VM (build 24.0-b12, mixed mode)

#section:build
----------messages:(3/175)----------
command: build SimpleApplication ShutdownSimpleApplication
reason: User specified action: run build SimpleApplication ShutdownSimpleApplication 
elapsed time (seconds): 0.052
result: Passed. Build successful

#section:compile
----------messages:(3/286)----------
command: compile /export/home/aurora/sandbox/testbase/test/sun/tools/jinfo/../common/SimpleApplication.java /export/home/aurora/sandbox/testbase/test/sun/tools/jinfo/../common/ShutdownSimpleApplication.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.05
result: Passed. Compilation successful

#section:shell
----------messages:(3/108)----------
command: shell Basic.sh []
reason: User specified action: run shell Basic.sh 
elapsed time (seconds): 5.863
----------System.out:(12/486)----------
INFO: waiting for SimpleApplication to initialize...
INFO: SimpleApplication is process 10332
INFO: SimpleApplication output is in /export/home/aurora/sandbox/gresults/testoutput/jdk_tools2/JTwork/classes/sun/tools/jinfo/Application.out
null = 
-XX:+UsePerfData
Java System Properties:

null = -XX:-PrintGC
INFO: Port number of SimpleApplication: 40733
INFO: Connecting to port 40733 to shutdown SimpleApplication ...
INFO: done connecting to SimpleApplication.
INFO: waiting for 10332
----------System.err:(44/2151)----------
error: "kernel.yama.ptrace_scope" is an unknown key
Attaching to process ID 10332, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 24.0-b12
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:474)
	at sun.tools.jinfo.JInfo.runTool(JInfo.java:97)
	at sun.tools.jinfo.JInfo.main(JInfo.java:71)
Caused by: java.lang.NullPointerException
	at java.util.Hashtable.hash(Hashtable.java:202)
	at java.util.Hashtable.get(Hashtable.java:404)
	at sun.jvm.hotspot.tools.SysPropsDumper.run(SysPropsDumper.java:43)
	at sun.jvm.hotspot.tools.JInfo.run(JInfo.java:84)
	at sun.jvm.hotspot.tools.Tool.start(Tool.java:221)
	at sun.jvm.hotspot.tools.JInfo.main(JInfo.java:128)
	... 6 more
Attaching to process ID 10332, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 24.0-b12
Attaching to process ID 10332, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 24.0-b12
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:474)
	at sun.tools.jinfo.JInfo.runTool(JInfo.java:97)
	at sun.tools.jinfo.JInfo.main(JInfo.java:71)
Caused by: java.lang.NullPointerException
	at java.util.Hashtable.hash(Hashtable.java:202)
	at java.util.Hashtable.get(Hashtable.java:404)
	at sun.jvm.hotspot.tools.SysPropsDumper.run(SysPropsDumper.java:43)
	at sun.jvm.hotspot.tools.JInfo$1.run(JInfo.java:69)
	at sun.jvm.hotspot.tools.JInfo.run(JInfo.java:84)
	at sun.jvm.hotspot.tools.Tool.start(Tool.java:221)
	at sun.jvm.hotspot.tools.JInfo.main(JInfo.java:128)
	... 6 more
result: Failed. Execution failed: exit code 1


test result: Failed. Execution failed: exit code 1

Comments
EVALUATION As per description, we will temporarily disable the SA usage in this test until SA is updated.
10-06-2012