Posts

Showing posts with the label Core Dump

Installing and configuring Crash utility for kernel dumps analysis on RHEL OR CentOS 7

Installing and configuring Crash utility for kernel dumps analysis on RHEL OR CentOS 7 What is Crash utility? Crash is a linux utility which analyses the core dump file created by kdump. Crash utility depends on the kdump and kexec utilities to obtain its input file. A linux kernel, when boots with the crashkernel argument, it reserves some memory space to capture kernel dump in panic conditions. In case kernel panic's, the kexec utility triggers a warm reboot into a dump kernel, where the memory contents of the panicked kernel get's backed up. Once the core dump copied to the configured location then system does cold reboot and loads up standard default kernel. Step 1. Install Crash utility and Kernel-debug package: # yum install crash OR You can download "Crash" source, compile it and install: # wget http://people.redhat.com/anderson/crash-7.2.5.tar.gz # tar -zxvf crash-7.2.5.tar.gz # cd crash-7.2.5 # make && make install ...

How to Enable/Generate/Debug Core Dump In Linux?

Today while browsing i came across to something interesting so thought to share with you all. Thanks to Gordon . What is Core Dump? If the running programs were terminated abnormal or crashed, the memory status of the program will be recorded by OS and saved in a file, this file is called “Core Dump” . We also can think of core dump as “memory snapshots”, but in fact, in addition to the memory core dump information, some crucial state of program will also be dump down, such as register information (including the program pointer, the stack pointer etc.), memory management information, other processor state. Core dump is very helpful for programmers to diagnose and debug the program, since some bugs are difficult to reproduce, such as pointer exception, and we can analyze the core dump file to reproduce that program bugs. How to generate Core Dump? Under what circumstances the program terminates abnormally or crashes would happen, if we use the command ...