有两种方法在core文件中找到core dump的程序:
# ls -l core
-rw-r--r-- 1 wzcj staff 552518815 Jan 16 10:18 core
1、 用strings 命令
#strings core |grep _=
_=/u2/wzcj/app/rtjf/bin/rprice_ticket
2、 用lquerypv命令
# lquerypv -h core 6b0 64
000006B0 7FFFFFFF FFFFFFFF 7FFFFFFF FFFFFFFF |................|
000006C0 00000000 000007D0 7FFFFFFF FFFFFFFF |................|
000006D0 00120000 418B6FC8 00000000 00000008 |....A.o.........|
000006E0 72707269 63655F74 69636B65 74000000 |rprice_ticket...|
000006F0 00000000 00000000 00000000 00000000 |................|
00000700 00000000 00000000 00000000 00000C1C |................|
00000710 00000000 00000039 00000000 00000C65 |.......9.......e|