1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
aarch64: crash failed to analyze vmcore of dump-guest-memory
Description of problem:
```
1、 dump guest memory
virsh qemu-monitor-command 3 --hmp "dump-guest-memory /home/ecs3.kdump"
2、crash kdump failed
[root@ceasphere-node-1 home]# ./crash ./vmlinux ./ecs3.kdump
crash 7.2.9-2.el8
Copyright (C) 2002-2020 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 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, 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: read error: kernel virtual address: ffff000010e0ba48 type: "vabits_user"
GNU gdb (GDB) 7.6
Copyright (C) 2013 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 "aarch64-unknown-linux-gnu"...
crash: read error: kernel virtual address: ffff000011a609b8 type: "possible"
WARNING: cannot read cpu_possible_map
crash: read error: kernel virtual address: ffff000011a60bb8 type: "present"
WARNING: cannot read cpu_present_map
crash: read error: kernel virtual address: ffff000011a607b8 type: "online"
WARNING: cannot read cpu_online_map
crash: read error: kernel virtual address: ffff000011a60db8 type: "active"
WARNING: cannot read cpu_active_map
crash: read error: kernel virtual address: ffff0000123da120 type: "shadow_timekeeper xtime_sec"
crash: read error: kernel virtual address: ffff000011a6a6ac type: "init_uts_ns"
crash: ./vmlinux and ./ecs3.kdump do not match!
Usage:
crash [OPTION]... NAMELIST MEMORY-IMAGE[@ADDRESS] (dumpfile form)
crash [OPTION]... [NAMELIST] (live system form)
Enter "crash -h" for details.
```
Steps to reproduce:
1. virsh create vm.xml
2. virsh qemu-monitor-command 3 --hmp "dump-guest-memory /home/ecs3.kdump"
3. crash ./vmlinux ./ecs3.kdump
Additional information:
The vmcore by 'echo c > /proc/sysrq-trigger' in guest is ok, crash work.
```
[root@ceasphere-node-1 home]# crash ./vmlinux ./vmcore
crash 8.0.3-1.el9
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.
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 "aarch64-unknown-linux-gnu".
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"...
KERNEL: ./vmlinux
DUMPFILE: ./vmcore [PARTIAL DUMP]
CPUS: 4
DATE: Wed Aug 30 09:06:01 CST 2023
UPTIME: 00:01:08
LOAD AVERAGE: 0.91, 0.34, 0.12
TASKS: 158
NODENAME: localhost
RELEASE: 4.18.0-305.3.1.el8.aarch64
VERSION: #1 SMP Tue Jun 1 16:22:50 UTC 2021
MACHINE: aarch64 (unknown Mhz)
MEMORY: 16 GB
PANIC: "sysrq: SysRq : Trigger a crash"
PID: 1310
COMMAND: "bash"
TASK: ffff8003d47d3200 [THREAD_INFO: ffff8003d47d3200]
CPU: 1
STATE: TASK_RUNNING (SYSRQ)
crash>
```
|