JDK-7142813 : sun/tools/jmap/Basic.sh failing on Mac OS X
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 7u4
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: generic
  • Submitted: 2012-02-05
  • Updated: 2019-08-16
  • 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 :  
Description
sun/tools/jmap/Basic.sh is failing in JPRT on Mac with builds of jdk7u-dev. A sample failure is below.

As SA is not working on Mac yet then a possible approach is to change this this test to not exercise these options on Mac. Currently this test doesn't exercise the SA dependent options on Windows and that should be looked at too because SA is on Windows since jdk7.


--------------------------------------------------
TEST: sun/tools/jinfo/Basic.sh
JDK under test: (/tmp/jprt/P1/190910.albatem/testproduct/macosx_x64_10.7-product/1.7.0.jdk/Contents/Home)
java version "1.7.0-internal"
Java(TM) SE Runtime Environment (build 1.7.0-internal-201202041909.albatem.jdk7u-dev-b00)
OpenJDK 64-Bit Server VM (build 23.0-b12, mixed mode)

ACTION: build -- Passed. Build successful
REASON: User specified action: run build SimpleApplication ShutdownSimpleApplication 
TIME:   0.03 seconds
messages:
command: build SimpleApplication ShutdownSimpleApplication
reason: User specified action: run build SimpleApplication ShutdownSimpleApplication 
elapsed time (seconds): 0.03

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.03 seconds
messages:
command: compile /private/tmp/jprt/P1/190910.albatem/source/jdk/test/sun/tools/jinfo/../common/SimpleApplication.java /private/tmp/jprt/P1/190910.albatem/source/jdk/test/sun/tools/jinfo/../common/ShutdownSimpleApplication.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.03

ACTION: shell -- Failed. Execution failed: exit code 1
REASON: User specified action: run shell Basic.sh 
TIME:   2.431 seconds
messages:
command: shell Basic.sh []
reason: User specified action: run shell Basic.sh 
elapsed time (seconds): 2.431
STDOUT:
INFO: waiting for SimpleApplication to initialize...
INFO: SimpleApplication is process 89234
INFO: SimpleApplication output is in /private/tmp/jprt/P1/190910.albatem/source/jdk/build/macosx-amd64/testoutput/jdk_tools2/JTwork/classes/sun/tools/jinfo/Application.out
-XX:-PrintGC
INFO: Port number of SimpleApplication: 65155
INFO: Connecting to port 65155 to shutdown SimpleApplication ...
INFO: done connecting to SimpleApplication.
INFO: waiting for 89234
STDERR:
Attaching to process ID 89234, please wait...
attach: task_for_pid(89234) failed (5)
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
Attaching to process ID 89234, please wait...
attach: task_for_pid(89234) failed (5)
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
Attaching to process ID 89234, please wait...
attach: task_for_pid(89234) failed (5)
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process

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

Comments
EVALUATION The key part of this failure mode is this line: > attach: task_for_pid(89234) failed (5) I'm using the following bug as the primary means of investigating the above failure mode: 7129704 2/2 MAC: No AttachProvider implemented for Mac OS X
06-02-2012