Core Dumps: Difference between revisions

From mylearnings
Jump to navigationJump to search
Line 3: Line 3:
* A core dump can be used to analyze the reason for the crash.
* A core dump can be used to analyze the reason for the crash.
* A core can come from User space programs or even kernel.
* 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''''')
::- 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 not 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.
* 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
::- In linux this is done using Kdump/Kexec
*

Revision as of 03:41, 2 July 2025

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 not 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