crash-utility / crash

Linux kernel crash utility
https://crash-utility.github.io
788 stars 266 forks source link

bt command issue and don't know how to handle section `. relr. dyn' [0x13] #181

Open zslxiu opened 1 week ago

zslxiu commented 1 week ago

The same kernel 4.19 dump, version 7.3.0 uses the bt instruction to not print the call stack, version 7.3.1 uses the bt instruction to print the call stack, and version 7.3.2 uses the bt instruction to exit directly, displaying segment errors (core has been dumped) May I ask why this is? Does this error message not affect load dump? Thank you for your guidance! 'don't know how to handle section `. relr. dyn' [0x13]

crash 7.3.0 Copyright (C) 2002-2021 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-2021 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.

BFD: vmlinux: don't know how to handle section .relr.dyn' [0x 13] BFD: vmlinux: don't know how to handle section.relr.dyn' [0x 13] 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 "--host=x86_64-unknown-linux-gnu --target=aarch64-elf-linux"... BFD: /home/zsl/share/vmlinux: don't know how to handle section `.relr.dyn' [0x 13]

WARNING: kernel relocated [155538MB]: patching 134840 gdb minimal_symbol values

  KERNEL: vmlinux                                                  
DUMPFILE: SYS_COREDUMP
    CPUS: 8 [OFFLINE: 7]
    DATE: Mon Jan  8 18:15:43 CST 2024
  UPTIME: 00:20:48

LOAD AVERAGE: 11.70, 11.75, 8.80 TASKS: 3995 NODENAME: localhost RELEASE: 4.19.191-perf-g83c73e79c1c5 VERSION: #1 SMP PREEMPT Fri Jan 5 08:09:13 UTC 2024 MACHINE: aarch64 (unknown Mhz) MEMORY: 3.7 GB PANIC: "-(1)[7694:sh]Kernel panic - not syncing: sysrq triggered crash" PID: 7694 COMMAND: "sh" TASK: ffffffea85f81d00 [THREAD_INFO: ffffffea85f81d00] CPU: 1 STATE: TASK_RUNNING (PANIC)

crash> bt PID: 7694 TASK: ffffffea85f81d00 CPU: 1 COMMAND: "sh" bt: WARNING: cannot determine starting stack frame for task ffffffea85f81d00

crash 7.3.1 Copyright (C) 2002-2021 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-2021 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.

BFD: vmlinux: don't know how to handle section .relr.dyn' [0x 13] BFD: vmlinux: don't know how to handle section.relr.dyn' [0x 13] 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 "--host=x86_64-unknown-linux-gnu --target=aarch64-elf-linux"... BFD: /home/zsl/share/vmlinux: don't know how to handle section `.relr.dyn' [0x 13]

WARNING: kernel relocated [155538MB]: patching 134840 gdb minimal_symbol values

  KERNEL: vmlinux  [TAINTED]                                       
DUMPFILE: SYS_COREDUMP
    CPUS: 8 [OFFLINE: 7]
    DATE: Mon Jan  8 18:15:43 CST 2024
  UPTIME: 00:20:48

LOAD AVERAGE: 11.70, 11.75, 8.80 TASKS: 3995 NODENAME: localhost RELEASE: 4.19.191-perf-g83c73e79c1c5 VERSION: #1 SMP PREEMPT Fri Jan 5 08:09:13 UTC 2024 MACHINE: aarch64 (unknown Mhz) MEMORY: 3.7 GB PANIC: "-(1)[7694:sh]Kernel panic - not syncing: sysrq triggered crash" PID: 7694 COMMAND: "sh" TASK: ffffffea85f81d00 [THREAD_INFO: ffffffea85f81d00] CPU: 1 STATE: TASK_RUNNING (PANIC)

crash> bt PID: 7694 TASK: ffffffea85f81d00 CPU: 1 COMMAND: "sh"

0 [ffffff8012aa3b90] ipanic at ffffffa601b40b18

1 [ffffff8012aa3bb0] atomic_notifier_call_chain at ffffffa6012e23dc

2 [ffffff8012aa3c70] panic at ffffffa6012b5b6c

3 [ffffff8012aa3cc0] sysrq_handle_crash at ffffffa601789c4c

4 [ffffff8012aa3cd0] __handle_sysrq at ffffffa60178986c

5 [ffffff8012aa3d10] write_sysrq_trigger at ffffffa60178a744

6 [ffffff8012aa3d30] proc_reg_write at ffffffa60150991c

7 [ffffff8012aa3dc0] __vfs_write at ffffffa6014787a4

8 [ffffff8012aa3de0] vfs_write at ffffffa601478b40

9 [ffffff8012aa3e30] ksys_write at ffffffa601478d54

10 [ffffff8012aa3e60] __arm64_sys_write at ffffffa601478dcc

11 [ffffff8012aa3e70] el0_svc_common at ffffffa60129abfc

12 [ffffff8012aa3eb0] el0_svc_handler at ffffffa60129ab4c

13 [ffffff8012aa3ff0] el0_svc at ffffffa601283d04

 PC: 0000007047902bb8   LR: 0000005609c38c40   SP: 0000007fc2e6f1a0
X29: 0000007fc2e6f220  X28: 0000007fc2e6f1e0  X27: 0000005609c5f8e8
X26: 0000007049965000  X25: 0000000000000000  X24: b400007047405399
X23: 0000005609c5f6f8  X22: 0000007fc2e6f200  X21: 0000007fc2e6f1f8
X20: b40000704740b3c8  X19: 0000000000000002  X18: 000000704a3b6000
X17: 0000007047902bb0  X16: 0000007047929b50  X15: 0000000000000020
X14: 000000000005c880  X13: 000000000005c890  X12: 000000704740166c
X11: 0000000000000001  X10: 0000007047400250   X9: b40000704740b3c8
 X8: 0000000000000040   X7: 0000000000000000   X6: 0000000000000063
 X5: b40000704740538a   X4: ffffffffffffffff   X3: ffffffffffffffff
 X2: 0000000000000002   X1: b40000704740b3c8   X0: 0000000000000001
ORIG_X0: 0000000000000001  SYSCALLNO: 40  PSTATE: 00001000

crash 7.3.2 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. 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.

BFD: vmlinux: don't know how to handle section .relr.dyn' [0x 13] BFD: vmlinux: don't know how to handle section.relr.dyn' [0x 13] 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 "--host=x86_64-unknown-linux-gnu --target=aarch64-elf-linux"... BFD: /home/zsl/share/vmlinux: don't know how to handle section `.relr.dyn' [0x 13]

WARNING: kernel relocated [155538MB]: patching 134840 gdb minimal_symbol values

WARNING: cpu 0: cannot find NT_PRSTATUS note
WARNING: cpu 2: cannot find NT_PRSTATUS note WARNING: cpu 3: cannot find NT_PRSTATUS note WARNING: cpu 4: cannot find NT_PRSTATUS note WARNING: cpu 5: cannot find NT_PRSTATUS note WARNING: cpu 6: cannot find NT_PRSTATUS note WARNING: cpu 7: cannot find NT_PRSTATUS note KERNEL: vmlinux [TAINTED] DUMPFILE: SYS_COREDUMP CPUS: 8 [OFFLINE: 7] DATE: Mon Jan 8 18:15:43 CST 2024 UPTIME: 00:20:48 LOAD AVERAGE: 11.70, 11.75, 8.80 TASKS: 3995 NODENAME: localhost RELEASE: 4.19.191-perf-g83c73e79c1c5 VERSION: #1 SMP PREEMPT Fri Jan 5 08:09:13 UTC 2024 MACHINE: aarch64 (unknown Mhz) MEMORY: 3.7 GB PANIC: "-(1)[7694:sh]Kernel panic - not syncing: sysrq triggered crash" PID: 7694 COMMAND: "sh" TASK: ffffffea85f81d00 [THREAD_INFO: ffffffea85f81d00] CPU: 1 STATE: TASK_RUNNING (PANIC)

crash> bt PID: 7694 TASK: ffffffea85f81d00 CPU: 1 COMMAND: "sh" 段错误 (核心已转储)