Questo contenuto non è disponibile nella lingua selezionata.
46.3. Analyzing the Core Dump
Note
To analyze the
vmcore
dump file, you must have the crash and kernel-debuginfo packages installed. To do so, type the following at a shell prompt as root
:
yum install --enablerepo=rhel-debuginfo crash kernel-debuginfo
~]# yum install --enablerepo=rhel-debuginfo crash kernel-debuginfo
Refer to Part II, “Package Management” for more information on how to install new packages in Red Hat Enterprise Linux.
To determine the cause of the system crash, you can use the
crash
utility. This utility allows you to interactively analyze a running Linux system as well as a core dump created by netdump
, diskdump
, xendump
, or kdump
. When started, it presents you with an interactive prompt very similar to the GNU Debugger (GDB).
To start the utility, type the command in the following form at a shell prompt:
crash /var/crash/timestamp/vmcore /usr/lib/debug/lib/modules/kernel/vmlinux
crash /var/crash/timestamp/vmcore /usr/lib/debug/lib/modules/kernel/vmlinuxcrash /var/crash/timestamp/vmcore /usr/lib/debug/lib/modules/kernel/vmlinuxcrash /var/crash/timestamp/vmcore /usr/lib/debug/lib/modules/kernel/vmlinuxcrash /var/crash/timestamp/vmcore /usr/lib/debug/lib/modules/kernel/vmlinuxcrash /var/crash/timestamp/vmcore /usr/lib/debug/lib/modules/kernel/vmlinux
Note that the kernel version should be the same as the one that was captured by
kdump
. To find out which kernel you are currently running, use the uname -r
command.
Example 46.2. Running the crash
utility
To exit the interactive prompt and terminate
crash
, type exit
.
46.3.1. Displaying the Message Buffer Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
To display the kernel message buffer, type the
log
command at the interactive prompt.
Example 46.3. Displaying the kernel message buffer
Type
help log
for more information on the command usage.