A glance of core dump

jarodwang, 20 September 2008, 1 comment
Categories: Linux, Programming

在平时的测试工作中经常碰到程序产生core dump的情况,什么是core dump?下面是摘自Wikipedia的core dump的定义:

A core dump is the recorded state of the working memory of a computer program at a specific time, generally when the program has terminated abnormally. In practice, other key pieces of program state are usually dumped at the same time, including the processor registers, which may include the program counter and stack pointer, memory management information, and other processor and operating system flags and information. The name comes from the once-standard core memory technology. Core dumps are often used to diagnose or debug errors in computer programs.

简单来说,core dump是在程序异常终止的时候对其所使用的内存内容和程序状态的一个记录。

Comments

One Response, Leave a Reply
  1. ricky
    20 September 2008, 15:49

    maybe you can give some example how to check it in different platform. like gdb, dbx and so on….
    that would be helpful.

Leave a Reply:

Name *

Mail (hidden) *

Website