Hi~
I encountered a crash: cannot get vm layout error while trying to parse the original memory image vmcore_riscv.elf using the crash tool under the Riscv architecture. Is there any way to fix it? Among them, vmcore_riscv.elf is obtained through the following method:
**@Ubuntu01:~/qemu/DPU/shared$ telnet 127.0.0.1 55552
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
QEMU 9.1.93 monitor - type 'help' for more information
(qemu) dump-guest-memory vmcore_riscv.elf
The crash parsing error is as follows:
[root@cl-pc riscv]# ./crash vmlinux vmcore_riscv.elf
crash 9.0.0
Copyright (C) 2002-2025 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-2024 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.
crash: cannot get vm layout
Hi~
I encountered a crash: cannot get vm layout error while trying to parse the original memory image vmcore_riscv.elf using the crash tool under the Riscv architecture. Is there any way to fix it? Among them, vmcore_riscv.elf is obtained through the following method:
**@Ubuntu01:~/qemu/DPU/shared$ telnet 127.0.0.1 55552
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
QEMU 9.1.93 monitor - type 'help' for more information
(qemu) dump-guest-memory vmcore_riscv.elf
The crash parsing error is as follows:
[root@cl-pc riscv]# ./crash vmlinux vmcore_riscv.elf
crash 9.0.0
Copyright (C) 2002-2025 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-2024 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.
crash: cannot get vm layout