Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
32.3. Analyzing the Core Dump
To determine the cause of the system crash, you can use the crash utility, which provides an interactive prompt very similar to the GNU Debugger (GDB). This utility allows you to interactively analyze a running Linux system as well as a core dump created by
netdump
, diskdump
, xendump
, or kdump
.
Important
To analyze the
vmcore
dump file, you must have the crash and kernel-debuginfo packages installed. To install the crash package in your system, type the following at a shell prompt as root
:
yum install crash
yum install crash
To install the kernel-debuginfo package, make sure that you have the yum-utils package installed and run the following command as
root
:
debuginfo-install kernel
debuginfo-install kernel
Note that in order to use this command, you need to have access to the repository with debugging packages. If your system is registered with Red Hat Subscription Management, enable the
rhel-6-variant-debug-rpms
repository as described in Section 8.4.4, “Viewing the Current Configuration”. If your system is registered with RHN Classic, subscribe the system to the rhel-architecture-variant-6-debuginfo
channel as documented here: https://access.redhat.com/site/solutions/9907.
32.3.1. Running the crash Utility Link kopierenLink in die Zwischenablage kopiert!
Link kopierenLink in die Zwischenablage kopiert!
To start the utility, type the command in the following form at a shell prompt:
crash /usr/lib/debug/lib/modules/kernel/vmlinux /var/crash/timestamp/vmcore
crash /usr/lib/debug/lib/modules/kernel/vmlinux/usr/lib/debug/lib/modules/kernel/vmlinux/usr/lib/debug/lib/modules/kernel/vmlinux /var/crash/timestamp/vmcore/var/crash/timestamp/vmcore/var/crash/timestamp/vmcore
Note that the kernel version should be the same that was captured by
kdump
. To find out which kernel you are currently running, use the uname -r
command.
Example 32.2. Running the crash utility