问题描述
在运行一个C程序,它说的(核心转储)的,但我不能看到当前路径下的任何文件。
While running a C program, It says "(core dumped)" but I can't see any files under current path.
我已经设置并验证了的ulimit
:
ulimit -c unlimited
ulimit -a
我也试图找到一个名为核心的文件,但没有得到核心转储文件?结果
任何帮助,哪里是我的核心文件?
I also tried to find file named "core", but didn't get the core dumped file?
Any help, where is my core file?
推荐答案
读/usr/src/linux/Documentation/sysctl/kernel.txt.
[/ PROC / SYS /内核/] core_pattern用于指定一个核心转储文件模式的名称。
- 如果模式的第一个字符是'|',内核将视
图案作为命令的其余部分来运行。核心转储会
写入到该程序的标准输入,而不是一个文件。
而不是写核心转储到磁盘,您的系统被配置为发送到 ABRT
程序来代替。 可能是没有记录的,因为它的上...
Instead of writing the core dump to disk, your system is configured to send it to the abrt
program instead. Automated Bug Reporting Tool is possibly not as documented as it should be...
在任何情况下,快速的回答是,你应该能够找到你的核心文件的/ var /缓存/ ABRT
,其中 ABRT
商店在调用之后。同样地,使用可能松鼠远芯等系统的/ var /崩溃
,等
In any case, the quick answer is that you should be able to find your core file in /var/cache/abrt
, where abrt
stores it after being invoked. Similarly, other systems using Apport may squirrel away cores in /var/crash
, and so on.
这篇关于核心转储 - 但核心文件不在当前目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!