Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Crash log is a log file automatically created on Set top boxes when a crash occurs. This information is useful for offline debugging. core dump files generated after an uncaught signal in a process (as a SIGSEGV or SIGQUIT), are generated in the base directory where the program was executed, and named as “core” or “core.PID”.

How to generate a core file?

By default size of the core will be zero, To generate the core, we need to set the size of the core to unlimited. 

...

  • ulimit -c unlimited

By default, core will be generated in the current directory with the file name "core". We can change the core generating directory from current directory to another by editing the kernel configuration file core pattern(/proc/sys/kernel/core_pattern)  in the kernel.

...

  • echo

...

  • "newpattern"

...

  • >

...

  • /proc/sys/kernel/core_pattern

Core pattern is helpful in the case if there are couple of core dumps files in one directory  and you don't know which program caused it.