查看方式如记录:
$ gdb -c core
Detected 64-bit corefile.
Invoking /opt/langtools/bin/gdb64.
HP gdb 3.2 for PA-RISC 2.0 (wide), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.2 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
Reading symbols from Recvpay5...done.
Core was generated by `Recvpay5'.
Program terminated with signal 11, Segmentation fault.
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
warning: section .data not found in /informix/lib/esql/libifglx.sl
#0 0xc00000000016faa0 in strcat+0x10 () from /usr/lib/pa20_64/libc.2
(gdb) where
#0 0xc00000000016faa0 in strcat+0x10 () from /usr/lib/pa20_64/libc.2
#1 0x40000000007fc0e8 in gfGetLowBranch+0x7c0 ()
#2 0x4000000000386e48 in sfMakeSqlCond+0xb0 ()
#3 0x4000000000386c5c in sfGetSubsPrmPayByCond+0x74 ()
#4 0x40000000002d57d4 in xcsfGetSubsPrmPayByCond+0x51c ()
#5 0x400000000028d394 in srvsfGetSubsPrmPayByCond (ApiInfo=0x8000000100412c38) at recv_pay5.ec:2018
#6 0xc0000001dc36d840 in _tmsvcdsp+0xce0 () from /tuxedo/tuxedo8.1/lib/libtux.sl
#7 0xc0000001dc38fae4 in _tmrunserver+0x1dc () from /tuxedo/tuxedo8.1/lib/libtux.sl
#8 0xc0000001dc36c668 in _tmstartserver+0x1e8 () from /tuxedo/tuxedo8.1/lib/libtux.sl
#9 0x4000000000282288 in main+0x50 ()
分析从下到上查看,调用的交易及函数.最终确定是strcat连接函数存在问题引起,产生服务返回错误.