For faster navigation, this Iframe is preloading the Wikiwand page for 核心转储.

核心转储

此条目需要补充更多来源。 (2017年4月1日)请协助补充多方面可靠来源改善这篇条目无法查证的内容可能会因为异议提出而被移除。致使用者:请搜索一下条目的标题(来源搜索:"核心转储"网页新闻书籍学术图像),以检查网络上是否存在该主题的更多可靠来源(判定指引)。
早期电脑中使用的磁芯内存

核心文件(core file),也称磁芯倾印(core dump)[1],是操作系统进程收到某些信号而终止运行时,将此时进程地址空间的内容以及有关进程状态的其他资讯写入一个磁碟文件。这种资讯往往用于调试

背景

[编辑]

核心文件一词来源于磁芯内存(core memory),1950-1970年代的主要的随机存取存储介质。

使用

[编辑]

核心文件通常在系统收到特定的信号时由操作系统生成。信号可以由程序执行过程中的异常触发,也可以由外部程序发送。动作的结果一般是生成一个某个进程的内存转储的文件,文件包含了此进程当前的运行堆栈资讯。有时程序并未经过彻底测试,这使得它在执行的时候一不小心就会遭到破坏。这可能会导致核心转储(core dump)。现在的UNIX系统极少会面临这样的问题。即使遇到,程序员可以通过核心映像调试程序来找到错误原因。

分析

[编辑]

程序自身产生的coredump文件一般可以用来分析程序运行到哪里出错了。

Linux平台常用的coredump文件分析工具是gdb;Solaris平台用pstack和pflags;Windows平台用userdump和windbg。

外部程序触发的dump一般用来分析进程的运行情况,比如分析内存使用/线程状态等。

Solaris的常用内存分析工具umem就是需要先通过gcore pid得到coredump的文件然后继续分析内存情况。

别名

[编辑]

因一个翻译错误,它也被戏称为吐核[2]

参考文献

[编辑]
  1. ^ core dump - 磁心倾印页面存档备份,存于互联网档案馆)国家教育研究院双语词汇
  2. ^ 会“吐核”的终端,才是好终端!. I'm TualatriX. [2017-03-29]. (原始内容存档于2017-03-30). 
{{bottomLinkPreText}} {{bottomLinkText}}
核心转储
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?