unix系统后台返回服务错误产生core错误文件的处理

查看方式如记录:

 

$ 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连接函数存在问题引起,产生服务返回错误.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值