What are the files located in `/var/crash/`?
Solution 1
No, they are crash dumps of the kernel, i.e. files that contains useful information to recover the state of the kernel when it was crashing. These files are for your kernel what core dumps are for ordinary executables. There exists an utility that can be used to analyze those files : crash.
Solution 2
Filesystem Hierarchy Standard (FHS) quote
For directory function questions for Linux, you should also check the FHS: /var/crash : System crash dumps (optional) | linuxfoundation.org
It specifies /var/crash
as:
/var/crash : System crash dumps (optional)
This directory holds system crash dumps. As of the date of this release of the standard, system crash dumps were not supported under Linux but may be supported by other systems which may comply with the FHS.
But as others mentioned, Debian has extended the standard for user space crashes as well via corekeeper.
Apport
In Ubuntu 14.04, it is Apport | Ubuntu Wiki instead of corekeeper that puts user space crashes there (corekeeper is not installed by default, but available on the repositories). Apport is the cause for the (in)famous "System problem detected" startup popup generated by the Apport program: System always start with "System program problem detected" dialog | Ask Ubuntu
Related videos on Youtube
![Hamed Kamrava](https://i.stack.imgur.com/wEKf5.png?s=256&g=1)
Comments
-
Hamed Kamrava almost 2 years
I know when a program crashes, some files creating in
/var/crash/
. But I don't know what these files are!Is that error logs?
-
YoloTats.com about 10 yearsThe Debian package
corekeeper
actually stores normal coredumps in subfolders of/var/crash
. -
Błażej Michalik about 8 yearsI think it would be worth to mention, that removing contents of
/var/crash
can make theSystem program problem detected
popups go away on Ubuntu. -
rogerdpack about 6 yearsSo...it is or is not supported by Linux?
-
Ciro Santilli Путлер Капут 六四事 about 6 years@rogerdpack I think more like its a distro dependent mess. Like everything else in userland.