19.2. Running and exiting the crash utility


The crash utility is a powerful tool for analyzing kdump. By running crash on a crash dump file, you can gain insights into the system’s state at the time of the crash, identify the root cause of the issue, and troubleshoot kernel-related problems.

Prerequisites

  • Identify the currently running kernel (for example 6.12.0-55.9.1.el10_0.x86_64).

Procedure

  1. To start the crash utility, two necessary parameters need to be passed to the command:

    • The debug-info (a decompressed vmlinuz image), for example /usr/lib/debug/lib/modules/6.12.0-55.9.1.el10_0.x86_64/vmlinux provided through a specific kernel-debuginfo package.
    • The actual vmcore file, for example /var/crash/127.0.0.1-2021-09-13-14:05:33/vmcore

      The resulting crash command then looks:

      # crash /usr/lib/debug/lib/modules/6.12.0-55.9.1.el10_0.x86_64/vmlinux /var/crash/127.0.0.1-2021-09-13-14:05:33/vmcore

      Use the same <kernel> version that was captured by kdump.

  2. Running the crash utility.

    The following example shows analyzing a core dump created using the 6.12.0-55.9.1.el10_0.x86_64 kernel.

    ...
    WARNING: kernel relocated [202MB]: patching 90160 gdb minimal_symbol values
    
          KERNEL: /usr/lib/debug/lib/modules/6.12.0-55.9.1.el10_0.x86_64/vmlinux
        DUMPFILE: /var/crash/127.0.0.1-2021-09-13-14:05:33/vmcore  [PARTIAL DUMP]
            CPUS: 2
            DATE: Mon Sep 13 14:05:16 2021
          UPTIME: 01:03:57
    LOAD AVERAGE: 0.00, 0.00, 0.00
           TASKS: 586
        NODENAME: localhost.localdomain
         RELEASE: 6.12.0-55.9.1.el10_0.x86_64
         VERSION: #1 SMP Wed Aug 29 11:51:55 UTC 2018
         MACHINE: x86_64  (2904 Mhz)
          MEMORY: 2.9 GB
           PANIC: "sysrq: SysRq : Trigger a crash"
             PID: 10635
         COMMAND: "bash"
            TASK: ffff8d6c84271800  [THREAD_INFO: ffff8d6c84271800]
             CPU: 1
           STATE: TASK_RUNNING (SYSRQ)
    
    crash>
  3. To exit the interactive prompt and stop crash, type exit or q.

    crash> exit
    ~]#
注意

The crash command is also utilized as a powerful tool for debugging a live system. However, you must use it with caution to avoid system-level issues.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部