JDK-8001118 : sun/tools/jcmd/jcmd-f.sh and sun/tools/jcmd/jcmd-help-help.sh failing
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 7u40
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-10-18
  • Updated: 2013-09-04
  • Resolved: 2012-11-28
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
7u40 b01Fixed
Related Reports
Relates :  
Relates :  
Description
These two tests are failing in jdk7u/jdk7u-dev at this time, possibly because JDK-7183753 was back-ported to jdk7u without the hotspot changes.

Here is an example failure:

--------------------------------------------------
TEST: sun/tools/jcmd/jcmd-f.sh
JDK under test: (/tmp/jprt/P1/081148.albatem/testproduct/linux_i586_2.6-product)
java version "1.7.0-internal"
Java(TM) SE Runtime Environment (build 1.7.0-internal-201210180811.albatem.jdk7u-dev-b00)
Java HotSpot(TM) Client VM (build 23.6-b03, mixed mode, sharing)

ACTION: build -- Passed. All files up to date
REASON: User specified action: run build SimpleApplication ShutdownSimpleApplication 
TIME:   0.0 seconds
messages:
command: build SimpleApplication ShutdownSimpleApplication
reason: User specified action: run build SimpleApplication ShutdownSimpleApplication 
elapsed time (seconds): 0.0

ACTION: shell -- Failed. Execution failed: exit code 1
REASON: User specified action: run shell jcmd-f.sh 
TIME:   1.484 seconds
messages:
command: shell jcmd-f.sh []
reason: User specified action: run shell jcmd-f.sh 
elapsed time (seconds): 1.484
STDOUT:
INFO: waiting for SimpleApplication to initialize...
INFO: SimpleApplication is process 3211
INFO: SimpleApplication output is in /tmp/jprt/P1/081148.albatem/s/jdk/build/linux-i586/testoutput/jdk_tools2/JTwork/classes/sun/tools/jcmd/Application.out
jcmd.out
4c4
< Impact: Low: 
---
> Impact: Low 
Output of jcmd [pid] -f dcmd-script.txt  differ from expected output. Failed.
INFO: Port number of SimpleApplication: 41182
INFO: Connecting to port 41182 to shutdown SimpleApplication ...
INFO: done connecting to SimpleApplication.
INFO: waiting for 3211
STDERR:

TEST RESULT: Failed. Execution failed: exit code 1
--------------------------------------------------

Comments
Initially Hotspot changes in src/share/vm/services/diagnosticCommand.hpp were integrated to hs24 b16 via 7178703. This fix caused these two tests to fail as the output changed, and the issue was addressed by 7183753. The problem appeared in jdk7u/jdk7u-dev once again because 7183753 was integrated to 7u10 and 7178703 wasn't. Finally, Hotspot changes are on their way to 7u12 by 8002661/8002662.
28-11-2012