PowerPC: core file option not available with serviceability tools

Maynard Johnson maynardj at us.ibm.com
Thu Jul 3 19:04:10 UTC 2014


Hi, all,
On my Intel laptop, I note that certain jdk9 serviceability tools -- jstack, jmap, jsadebugd -- have an option to pass a core file instead of a process ID; for example:

	$ jstack -h
	Usage:
	    jstack [-l] <pid>
	        (to connect to running process)
	    jstack -F [-m] [-l] <pid>
        	(to connect to a hung process)
	    jstack [-m] [-l] <executable> <core>
        	(to connect to a core file)
	    jstack [-m] [-l] [server_id@]<remote server IP or hostname>
        	(to connect to a remote debug server)

But on my PowerLinux box, the core file option is missing from the usage output.  I see that jdk9-dev/jdk/src/share/classes/sun/tools/jstack/JStack.java requires the existence of sun.jvm.hotspot.tools.JStack for the core file option to be made available.  On my Intel system, the sun.jvm.hotspot.tools.JStack class is packaged in sa-jdi.jar in <jdk9Dev-install>/jvm/openjdk-1.9.0-internal/lib/.  But the sa-jdi.jar is missing on PowerPC.  Is there a technical reason for this or is it an oversight?

The jsadebugd tool does not run at all on PowerLinux; it gets the following error:

	Error: Could not find or load main class sun.jvm.hotspot.jdi.SADebugServer

On my Intel system, the SADebugServer class is packaged in the sa-jdi.jar mentioned above.

I've spent the past day or so looking at makefiles until I'm cross-eyed, but haven't yet found where the issue might be.  Any tips would be appreciated.

Thanks.
-Maynard



More information about the ppc-aix-port-dev mailing list