Tools: Debugging Native and Java Code with WDB

Page 17
Tools for
Debugging
© 2001 Hewlett-Packard Company
gdb
Start the Java Process (no program)
(gdb) r
Starting program: /opt/java1.3/bin/PA_RISC2.0/native_threads/java
(no debugging symbols found)...(no debugging symbols found)…( …
Program received signal SIGSEGV, Segmentation fault.
0x6f8e69f0 in os_init_2 () from /opt/java1.3/jre/lib/PA_RISC2.0/server/libjvm.sl
(gdb)
The SIGSEGV signal is normal part of Java Virtual Machine initialization
Do a back trace
Continue
To not stop or print signals permanently use a ~/.gdbinit file with contents:
handle SIGFPE nostop noprint pass
Can also do the same for SIGSEGV and SIGBUS, if desired