core dump
来源:互联网 发布:超级基因优化液下载 编辑:程序博客网 时间:2024/06/02 05:44
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 (crashed). 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 memory technology core memory. Core dumps are often used to diagnose or debug errors in computer programs.
On many operating systems, a fatal error in a program automatically triggers a core dump, and by extension the phrase "to dump core" has come to mean, in many cases, any fatal error, regardless of whether a record of the program memory is created.
static void sub(void)
{
int *p = NULL;
/* derefernce a null pointer, expect core dump. */
printf("%d", *p);
}
Segmentation fault 【所谓的Segmentation Fault(段错误)就是指访问的内存超出了系统所给这个程序的内存空间】
在程序不寻常退出时,内核会在当前工作目录下生成一个core文件(是一个内存映像,同时加上调试信息)。使用gdb来查看core文件,可以指示出导致程序出错的代码所在文件和行数
- Core Dump
- Core Dump
- Core Dump?!
- Core Dump?!
- Core Dump?!
- core dump
- core dump
- Core Dump
- core dump
- Core dump
- core dump
- Core Dump
- core dump
- core dump
- Core Dump
- core dump
- Core Dump
- core dump
- SMB协议
- Handler: 主线程如何通知子线程
- WinMain - application entry point(windows图形编程入门)
- 在comPort发送事件中获取返回数据
- 未能从程序集“System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加载类型
- core dump
- android不能格式化错误,不能运行
- java加密解密研究2、Bouncy Castle和Commons Codec加密组件
- Android增长速度放缓 前景让人堪忧
- 嵌入式系统开发学习步骤(Linux高级编程学习顺序)
- linux下进程名和进程id的转换
- C语言程序调用SQLite
- android上传文件到服务器(这里使用php)
- ubuntu apache2配置(转载)