While running a C program, It says "(core dumped)" but I can't see any files under the current path.
I have set and verified the ulimit
:
ulimit -c unlimited
ulimit -a
I also tried to find a file named "core", but didn't get the core dumped file?
Any help, where is my core file?
Best Answer
Read /usr/src/linux/Documentation/sysctl/kernel.txt.
Instead of writing the core dump to disk, your system is configured to send it to the
abrt
(meaning: Automated Bug Reporting Tool, not "abort") program instead. Automated Bug Reporting Tool is possibly not as documented as it should be...In any case, the quick answer is that you should be able to find your core file in
/var/cache/abrt
, whereabrt
stores it after being invoked. Similarly, other systems using Apport may squirrel away cores in/var/crash
, and so on.