HP-UX HB v13.00 Ch-11 - Software Development

HP-UX Handbook Rev 13.00 Page 91 (of 101)
Chapter 11 Software Development
October 29, 2013
(gdb) bt
#0 0xc020a6d0 in kill+0x10 () from /usr/lib/libc.2
#1 0xc01a55cc in raise+0x24 () from /usr/lib/libc.2
#2 0xc01e59b0 in abort_C+0x160 () from /usr/lib/libc.2
#3 0xc01e5a0c in abort+0x1c () from /usr/lib/libc.2
#4 0xc455d468 in abort__2osSFb+0x108 () from
/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl
#5 0xc441f834 in report_error+0x5b4 () from
/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl
#6 0xc441ef8c in report_fatal+0x6c () from
/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl
#7 0xc47a9a0c in compute_compiled_exc_handler+0x1e4 () from /opt/java1
.4/jre/lib/PA_RISC2.0/server/libjvm.sl
#8 0xc47a9698 in handle_exception_C__11OptoRuntimeSFP10JavaThread+0x14
8 () from /opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl
#9 0x78f18108 in exception_stub frame ()
#10 0x795cf574 in compiled frame: java.lang.ClassLoader::defineClass (j
ava.lang.String, byte[], int, int, java.security.ProtectionDomain) ->ja
va.lang.Class ()
#11 0x790429f0 in compiled frame: com.borland.enterprise.module.reflect
ion.classes.custom.CustomClassLoader::findClassInternal (java.lang.Stri
ng) ->java.lang.Class ()
#12 0x7935e2b0 in compiled frame: com.borland.enterprise.module.reflect
ion.classes.custom.CustomClassLoader::findClass (java.lang.String) ->ja
va.lang.Class ()
#13 0x7959f460 in compiled frame: com.borland.enterprise.module.reflect
ion.classes.custom.CustomClassLoader::loadClass (java.lang.String, bool
ean) ->java.lang.Class ()
:
In the above example the frames #0-#9 are from native code, all others are methods compiled by
the hotspot compiler. Here we see that an exception was thrown in method
java.lang.ClassLoader::defineClass() which could not be caught.
Without using libjunwind.sl, the stacktrace would look like this:
$ gdb /opt/java1.4/bin/PA_RISC2.0/java core_1
:
(gdb) bt
#0 0xc020a6d0 in kill+0x10 () from /usr/lib/libc.2
#1 0xc01a55cc in raise+0x24 () from /usr/lib/libc.2
#2 0xc01e59b0 in abort_C+0x160 () from /usr/lib/libc.2
#3 0xc01e5a0c in abort+0x1c () from /usr/lib/libc.2
#4 0xc455d468 in abort__2osSFb+0x108 () from
/opt/java1.3/jre/lib/PA_RISC2.0/server/libjvm.sl
#5 0xc441f834 in report_error+0x5b4 () from
/opt/java1.3/jre/lib/PA_RISC2.0/server/libjvm.sl
#6 0xc441ef8c in report_fatal+0x6c () from
/opt/java1.3/jre/lib/PA_RISC2.0/server/libjvm.sl