JDK-7112802 : jinfo fails to attach on MacOS X
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2011-11-17
  • Updated: 2012-06-05
  • Resolved: 2012-06-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 7
7u6Resolved
Related Reports
Relates :  
Relates :  
Description
During my baseline testing of the MacOS X port, I ran into
one SDK/JDK misc_tools test that failed consistently. The
failure doesn't show up via my ck_test_results script because
they are on the known fail_list due to other (unrelated issues).

The following test:

    sun/tools/jinfo/Basic.sh

failed with an error message like:

----------System.out:(8/486)----------
INFO: waiting for SimpleApplication to initialize...
INFO: SimpleApplication is process 14147
INFO: SimpleApplication output is in /Volumes/work/shared/test_results/jdk8/baseline/macosx-amd64/b12/sdk-misc_tools-prod-server-prod-mixed.macosx-amd64/JTwork/classes/sun/tools/jinfo/Application.out
-XX:-PrintGC
INFO: Port number of SimpleApplication: 49946
INFO: Connecting to port 49946 to shutdown SimpleApplication ...
INFO: done connecting to SimpleApplication.
INFO: waiting for 14147
----------System.err:(9/555)----------
Attaching to process ID 14147, please wait...
attach: task_for_pid(14147) failed (5)
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
Attaching to process ID 14147, please wait...
attach: task_for_pid(14147) failed (5)
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
Attaching to process ID 14147, please wait...
attach: task_for_pid(14147) failed (5)
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
result: Failed. Execution failed: exit code 1


test result: Failed. Execution failed: exit code 1

Comments
EVALUATION jinfo requires privilege on MacOS X in certain cases.
25-01-2012