As for Linux, on HP-UX you can also use the GNU project debugger to see what is happening at the time of the crash. Run this debugger as follows:
# gdb ./ldapfwd /tmp/core-file |
For more information about the useful commands available with the gdb tool, see the gdb man page.