HP (Hewlett-Packard) 5992-1918 TV Antenna User Manual


 
All source files (.java, .h, .c).
All .class files.
The command line used to run the application program. In this example, the StackTraceJob
script.
Now, use gdb to pack the core file.
$ gdb /opt/java1.4/bin/PA_RISC2.0/java core
HP gdb 5.5.7 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00 and target hppa1.1-hp-hpux11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.5.7 (based on GDB) is covered by the GNU General Public License. Type
"show copying" to see the conditions to change it and/or distribute copies. Type "show warranty"
for warranty/support.
..
warning: core file may not match specified executable file.
Core was generated by `java'.
Program terminated with signal 6, Aborted.
#0 0xc0214db0 in kill+0x10
warning: No debug info available - Trying to print as integer
() from /usr/lib/libc.2
(gdb) packcore
The core file has been added to packcore.tar and the core file has been removed.
(gdb) quit
The packcore command creates a compressed tar file named packcore.tar.Z. This file
contains the core file and a tar file that has all the libraries used in the application. Refer to
Section 3.4.2 for more details about the contents of the packcore.tar.Z file.
Now bundle all the files needed for debugging using jar. This also includes application files,
if any. Before bundling the files, copy the correct libjunwind library (see Section 3.4.2) to the
directory since this library needs to be included in the bundle.
$ cp /opt/java1.4/jre/lib/PA_RISC2.0/server/libjunwind.sl libjunwind.sl
$ jar cvf bundleit.jar packcore.tar.Z hs_err_pid28973.log \
libjunwind.sl
added manifest
adding: packcore.tar.Z(in = 12323556) (out= 11532742)(deflated 6%)
adding: hs_err_pid28973.log(in = 5328) (out= 2195)(deflated 58%)
adding: libjunwind.sl(in = 217088) (out= 58863)(deflated 72%)
$ ll bundleit.jar
-rw-rw-r-- 1 user1 lang 11595348 Mar 30 14:29 bundleit.jar
The following section shows the contents of the bundleit.jar file.
You can now delete packcore.tar.Z, hs_err_pid28973.log, and libjunwind.sl since
all these files are included in the bundleit.jar file.
4.6 Unpacking Files On Debugging System
Skip this section if you are debugging the core file on the same system where it was created.
Move the bundleit.jar file to the system where you will be analyzing the core file, and use
jar to extract the files.
$ jar xvf bundleit.jar
created: META-INF/
extracted: META-INF/MANIFEST.MF
extracted: core
extracted: modules.tar
extracted: hs_err_pid28973.log
extracted: libjunwind.sl
$
$ ll
drwxrwxr-x 2 user1 lang 4096 Mar 30 14:37 META-INF
-rw-rw-r-- 1 user1 lang 11595348 Mar 30 14:29 bundleit.jar
-rw-rw-r-- 1 user1 lang 5328 Mar 30 14:37 hs_err_pid28973.log
-rw-rw-r-- 1 user1 lang 217088 Mar 30 14:37 libjunwind.sl
66 Core File Analysis