Skip to main content
Crash utility is an open-source tool to debug kernel using a gdb-based command-line interface over RAM dumps.

Prerequisites

  • kaslr_offset and kimage_voffset values By default, the Qualcomm Linux build has the Kernel Address Space Layout Randomization (KASLR) feature enabled. For the crash utility to work on a KASLR-enabled kernel, you need the values of the kaslr_offset and kimage_voffset parameters, which you can extract from the dmesg_TZ.txt RAMparser output file. The following is an excerpt from the sample RAMparser output file, dmesg_TZ.txt, providing the kaslr_offset and kimage_voffset values. The kaslr_offset extracted is: 0x340c3d320000 … The kimage_voffset extracted is: ffffb40bbf600000
  • Base address of the kernel binaries (DDRCS*.BIN) When you use PCAT to capture the RAM dump, it also captures the dump_info.txt and load.cmm files. These files contain the base address of the kernel binaries (DDRCS*.BIN).

Download and build the crash utility tool on Linux host

  • To download and build the crash utility, run the following commands:
For more information, see crash/README at master · crash-utility/crash· GitHub.

Run the crash utility tool

The following is the sample command to run the crash utility on an Ubuntu host:
  • Replace <PATH> with the vmlinux RAM dump path.
  • Extract kimage_voffset, and kaslr from the dmesg_TZ.txt RAMparser output file.
  • Extract the DDR offsets such as 0x80000000 from the dump_info.txt file available in the RAM dump collected using PCAT.
Sample output:
Sample command:
Sample output:
Sample command:
Sample output:
Sample command:
Sample output:
For more information about the crash utility, see the following: