Analysis of Core file under UNIX

xiaoxiao2021-03-06  54

Recently produced some core files on the AIX operating system, view IBM's online documentation, found with the following Core analysis method:

1. LQueryPV -H Core file 6b1, you can check the name of the error in the Core file. For example: LQueryPV -H Core_20041210 6b1 Get the following results, you can see that the Core file of Core_20041210 is generated by the EXE_CUSTINFO executable:

000006B0 7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | ................ |

000006C0 00000000 000007D0 7FFFFFFFFFFFFFFFFFff | ................ |

000006d0 00120000 06DC7F50 00000000 0000000A | ....... P ........ |

000006E0 735F4375 73745365 72766572 00000000 | EXE_CUSTINFO ....

000006F0 0000000000000000 聽 | ................ |

00000000 0000000010 000,000 00000000 00 000261 | ............... A |

00000710 00000000 00000058 00000000 00000261 | ....... X ....... A |

00000720 00000000 聽 0000000 00000000 000346B7 | ............. F. |

00000730 00000000 001B70F0 00000000 00000000 | ...... P .........

00000740 00000000 00000000 00000000 00000001 | ................ |

0000000000 0000000000 00000000000000000000000000000000000000000000000000000000000000101 | ................ |

00000760 00000000 00000000 00000000 00000000 | ................ |

000000000000 0000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000- ................ |

0000000000 0000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000- ................ |

00000790 00000000 00000000 00000000 00000000 | ................ |

000007A0 0000000000000000000000000000000000002 | ................ |

2, use the file command, directly file core file

$ FILE core_20041210

CORE_20041210 AIX Core File Fulldump 32-bit, EXE_CUSTINFO

3, can use the strings command, directly remove all the garbage prompts in the core file, only useful information, such as: strings file | awk '{if (nr <= 5) Print $ 0}', you can see the second The line is an executable file that produces a Core file. as follows:

% s

EXE_CUSTINFO

Hhhhhh

,> EXE_CUSTINFO

4. ADB, DBX tools can be used under AIX.

5. GDB tools can be used under Linux.

转载请注明原文地址:https://www.9cbs.com/read-82076.html

New Post(0)