When using a debugger such as GDB or WinDbg to
diagnose problems in JNI code, you might want to disable the signal
handler of the Java™ runtime
so that any signals received are handled by the operating system.
Using the -Xrs command-line option
prevents the Java runtime handling
exception signals such SIGSEGV and SIGABRT.
When the Java runtime signal
handler is disabled, a SIGSEGV or GPF crash does
not call the JVM dump agents. Instead, dumps are produced depending
on the operating system.
Disabling dump agents in AIX
AIX produces a core file called
core in
the working directory when a process crashes. The file can be processed
with
jextract and analyzed with tools such as
jdmpview and
DTFJ.
For the dump to be useful, configure your AIX® environment to produce full core dumps. See
Setting up and checking your AIX environment for
more details.