gbd 分析core文件_HPUX GDB 分析core文件

本文介绍了如何使用GDB分析HPUX系统中的Core文件,包括通过`file core`命令查看生成Core文件的进程,利用`gdb '服务名' core`启动调试,以及`where`命令定位问题代码行。根据调试信息,Core文件的产生通常与内存泄露或变量使用错误有关。
摘要由CSDN通过智能技术生成

1、file core;

进入core文件所在目录执行如上的命令;

返回如下内容:

Core was generated by `Edr2'.

自重Edr2服务就是产生core的tuxedo serverices服务名;

2、gdb '服务名' core

执行以上命令格式返回如下:

$ gdb Query core

HP gdb 5.9 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.

Copyright 1986 - 2001 Free Software Foundation, Inc.

Hewlett-Packard Wildebeest 5.9 (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.

..

Core was generated by `Edr2'.

Program terminated with signal 11, Segmentation fault.

SEGV_MAPERR - Address not mapped to object

#00xc00000000012ac30:0 in pthread_mutex_lock+0x750 ()

from /usr/lib/hpux64/libpthread.so.1

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值