Java Troubleshooting Guide for HP-UX Systems
gcore is shipped with HP-UX 11i v3 (11.31). For an HP-UX 11i v2 (11.23) version, contact HP
support (response center or WTEC).
1.5 gdb
Java stack unwind enhancements have been added to enable it to support unwinding across Java
frames and provide an effective way to examine stack traces containing mixed language frames
(Java and C/C++) of both live Java processes and core files. This has been implemented by adding
subcommands for Java VM debugging to gdb.
The following table shows which Java versions on PA-RISC and Integrity systems have the stack
unwind and the gdb Java subcommands features. These features are available in gdb version
4.5 and later versions.
Table 1-8 Java Version Information for gdb Java VM Debugging Features
GDB VersionJava SubcommandsStack Unwind
Enhancements
Platform
4.5+SDK 1.4.1.05+SDK 1.3.1.02+PA-RISC 32-bit
-pa11 (PA_RISC)
4.5+SDK 1.4.1.05+SDK 1.3.1.02+PA-RISC 32-bit
(PA_RISC2.0)
4.5+SDK 1.4.1.05+SDK 1.4.1.01+PA-RISC 64-bit
(PA_RISC2.0W)
4.5–5.2SDK 1.4.1.05+SDK 1.3.1.06+Integrity 32-bit
(IA64N)
4.5–5.2SDK 1.4.1.05+SDK 1.4.0.01+Integrity 64-bit
(IA64W)
*5.3+SDK 1.4.2.10+SDK 1.4.2.10+Integrity 32
(IA64N), 64-bit
(IA64W)
*5.3+JDK 1.5.0.03+JDK 1.5.0.03+Integrity 32
(IA64N), 64-bit
(IA64W)
* gdb version 5.3 requires SDK 1.4.2.10 and later versions or JDK 1.5.0.03 and later versions in
order to use the Java VM debugging features.
To use this functionality, the GDB_JAVA_UNWINDLIB environment variable must be set to the
path name of the Java unwind library. The following list contains the default locations of the
Java unwind libraries on various systems. The examples are for SDK 1.4; if you are using JDK
1.5, substitute /opt/java1.5 for /opt/java1.4.
/opt/java1.4/jre/lib/PA_RISC/server/libjunwind.sl
/opt/java1.4/jre/lib/PA_RISC2.0/server/libjunwind.sl
/opt/java1.4/jre/lib/PA_RISC2.0W/server/libjunwind.sl
/opt/java1.4/jre/lib/IA64N/server/libjunwind.so
/opt/java1.4/jre/lib/IA64W/server/libjunwind.so
The following examples show how to set the GDB_JAVA_UNWINDLIB environment variable. If
you are using ksh on a PA-RISC machine, this is how you set the environment variable for a
32–bit Java application:
$ export GDB_JAVA_UNWINDLIB=/opt/java1.4/jre/lib/PA_RISC2.0/server/libjunwind.sl
Additionally, this is how you set the environment variable on an Integrity machine for a 32–bit
Java application:
$ export GDB_JAVA_UNWINDLIB=/opt/java1.4/jre/lib/IA64N/server/libjunwind.so
1.5 gdb 19