第 19 章 Analyzing a core dump
To identify the cause of the system crash, you can use the crash utility, which provides an interactive prompt similar to the GNU Debugger (GDB). By using crash, you can analyze a core dump created by kdump, netdump, diskdump, or xendump and a running Linux system. Alternatively, you can use the Kernel Oops Analyzer or the Kdump Helper tool.
19.1. Installing the crash utility 复制链接链接已复制到粘贴板!
With the provided information, understand the required packages and the procedure to install the crash utility. The crash utility might not be installed by default on your Red Hat Enterprise Linux 10 systems. crash is a tool to interactively analyze a system’s state while it is running or after a kernel crash occurs and a core dump file is created. The core dump file is also known as the vmcore file.
Procedure
Enable the relevant repositories:
# subscription-manager repos --enable baseos repository# subscription-manager repos --enable appstream repository# subscription-manager repos --enable rhel-10-for-x86_64-baseos-debug-rpmsInstall the
crashpackage:# dnf install crashInstall the
kernel-debuginfopackage:# dnf install kernel-debuginfoThe package
kernel-debuginfowill correspond to the running kernel and provides the data necessary for the dump analysis.