crash-utility / crash

Linux kernel crash utility
https://crash-utility.github.io
837 stars 274 forks source link

crash: vmlinux and /var/tmp/ramdump_elf_RBGCZm do not match! #135

Closed wencun0310 closed 1 year ago

wencun0310 commented 1 year ago

I parser the qualcomm ramdump, the crash tool report does not match vmlinx, but RDP (Linux Ramdump parse for Qualcomm) can match. ./crash -v

crash 8.0.1 GNU gdb (GDB) 10.2

wencun0310 commented 1 year ago

Kernel 5.10

wencun0310 commented 1 year ago

How to confirm ARM64_VA_Bit ?

wencun0310 commented 1 year ago

root@DESKTOP-FFIVJQC:/mnt/h/Linux/crash/crash-8.0.1# ./crash ../vmlinux ../ramdump/DDRCS0_0.BIN@0x80000000,../ramdump/DDRCS1_0.BIN@0x800000000,../ramdump/DDRCS1_1.BIN@0x880000000 --kaslr 0x22c2a00000 -m vabits_actual=48

crash 8.0.1 Copyright (C) 2002-2022 Red Hat, Inc. Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation Copyright (C) 1999-2006 Hewlett-Packard Co Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited Copyright (C) 2006, 2007 VA Linux Systems Japan K.K. Copyright (C) 2005, 2011, 2020-2022 NEC Corporation Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc. Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. Copyright (C) 2015, 2021 VMware, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

NOTE: setting vabits_actual to: 48

GNU gdb (GDB) 10.2 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-pc-linux-gnu --target=aarch64-elf-linux". Type "show configuration" for configuration details. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/.

For help, type "help". Type "apropos word" to search for commands related to "word"...

crash: read error: kernel virtual address: ffffff883c144090 type: "IRQ stack pointer" crash: read error: kernel virtual address: ffffff883c165090 type: "IRQ stack pointer" crash: read error: kernel virtual address: ffffff883c186090 type: "IRQ stack pointer" crash: read error: kernel virtual address: ffffff883c1a7090 type: "IRQ stack pointer" crash: read error: kernel virtual address: ffffff883c1c8090 type: "IRQ stack pointer" crash: read error: kernel virtual address: ffffff883c1e9090 type: "IRQ stack pointer" crash: read error: kernel virtual address: ffffff883c20a090 type: "IRQ stack pointer" crash: read error: kernel virtual address: ffffff883c22b090 type: "IRQ stack pointer" crash: read error: kernel virtual address: ffffff883c254e00 type: "memory section root table"

wencun0310 commented 1 year ago

Setting the correct vabits_actual will not report an error.