What are the files located in `/var/crash/`?

39,253

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

Share:
39,253

Related videos on Youtube

Hamed Kamrava
Author by

Hamed Kamrava

DevOps enthusiast

Updated on September 18, 2022

Comments

  • Hamed Kamrava
    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
    YoloTats.com about 10 years
    The Debian package corekeeper actually stores normal coredumps in subfolders of /var/crash.
  • Błażej Michalik
    Błażej Michalik about 8 years
    I think it would be worth to mention, that removing contents of /var/crash can make the System program problem detected popups go away on Ubuntu.
  • rogerdpack
    rogerdpack about 6 years
    So...it is or is not supported by Linux?
  • Ciro Santilli Путлер Капут 六四事
    Ciro Santilli Путлер Капут 六四事 about 6 years
    @rogerdpack I think more like its a distro dependent mess. Like everything else in userland.