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


 
"(I)Ljava/lang/String;");
(*env)->ExceptionDescribe(env);
(*env)->ExceptionClear(env);
if(methodid == NULL) {
return (*env)->NewStringUTF(env, "JNI GetStaticMethodID failed!");
}
return (*env)->CallStaticObjectMethod(env, classid, methodid, intarg);
}
4.2 Building the Application
The StackTraceJob script can be used on PA-RISC systems to compile, build, and execute the
application resulting in a core dump. Before executing this script, review the Core File Checklist
in the previous chapter to make sure your system is correctly configured to save complete core
files.
This script can be used on an Integrity system if you make the changes described in the Note in
the “StackTraceJob” section; that is, rename libstacktrace.sl to libstacktrace.so.
NOTE: There are instructions in stacktrace.c describing how to eliminate the errors so you
can see how the corrected application will run.
Execute theStackTraceJob script. You will see output similar to the following:
$ StackTraceJob
Compile java code
Create header file
[Search path = /opt/java1.4/jre/lib/rt.jar:/opt/java1.4/jre/lib/i18n.jar:
/opt/java1.4/jre/lib/sunrsasign.jar:/opt/java1.4/jre/lib/jsse.jar:
/opt/java1.4/jre/lib/jce.jar:/opt/java1.4/jre/lib/charsets.jar:
/opt/java1.4/jre/classes:.]
[Loaded ./StackTrace.class]
[Loaded /opt/java1.4/jre/lib/rt.jar(java/lang/Object.class)]
[Creating file StackTrace.h]
Compile c code
Create shared library
Run StackTrace program
Calling method1()
Calling method2()
Calling method3()
Calling methodMakeCall()
Call dumpCore to convert 757 to a binary string!
In dumpCore
Stack_Trace: error while unwinding stack
( 0) 0xc41452ac report_and_die__7VMErrorFv + 0x4c
[/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 1) 0xc40463e4 JVM_handle_hpux_signal__Q2_2os4HpuxSFiP9__siginfoPvT1 + 0x2bc
[/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 2) 0xc40419dc signalHandler__Q2_2os4HpuxSFiP9__siginfoPv + 0x4c
[/opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl]
( 3) 0xc0213f90 _sigreturn [/usr/lib/libc.2]
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (11) at pc=c3ed2ec8, pid=28973, tid=1 # # Java VM: Java HotSpot(TM) Server VM
# (1.4.2 1.4.2.10-060112-16:07-PA_RISC2.0 PA2.0 (aCC_AP) mixed mode)
# Problematic frame:
# V [libjvm.sl+0x6d2ec8]
#
# An error report file with more information is saved as hs_err_pid28973.log
# Please report this error to HP customer support.
#
The following files are created as a result of running this script:
StackTrace.class—the class file
StackTrace.h—the header file for class StackTrace
core—the core file
hs_err_pid28973.log—the error log file
64 Core File Analysis