Core Dumps

From mylearnings
Revision as of 03:42, 2 July 2025 by Pristal (talk | contribs) (What is a Core Dump ?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

What is a Core Dump ?

  • A core dump is a snapshot of the programs memory mappings and state when it crashed.
  • A core dump can be used to analyze the reason for the crash.
  • A core can come from User space programs or even kernel.
- Core get generated when the user space program receives certain signal like (For detail check man 7 signal)
- For a core to get dumped properly (without any truncation/corruption), limits of the process need to be set properly using ulimit(if bash is used).
- ulimit -a => To check the limit (For details check man bash as ulimit is a builtin command)
- As a side note we can see all the builtin commands by typing help in bash.
  • Kernel is having special mechanism for booting a secondary kernel and collect the core for primary kernal.
- In linux this is done using Kdump/Kexec