[Crash-utility] Re: [PATCH] vmcoreinfo: read vmcoreinfo using 'vmcoreinfo_data' when unavailable in elf note

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Please ignore the previous 2 mails. Following is the updated analysis.
I have tested the patch and it is working perfectly fine for me!

*using crash tool without applying patch*:

# crash /usr/lib/debug/lib/modules/6.11.2-300.fc41.ppc64le/vmlinux ./sample.dump

crash 8.0.5-4.fc41
Copyright (C) 2002-2024  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.
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 "powerpc64le-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"...

crash: invalid kernel virtual address: 41000e41df41de49  type: "first vmlist addr"

Errors like the one above typically occur when the kernel and memory source
do not match.  These are the files being used:

      KERNEL: /usr/lib/debug/lib/modules/6.11.2-300.fc41.ppc64le/vmlinux
    DUMPFILE: ./sample.dump



*Using crash tool after applying patch*:

# /root/crash/crash /usr/lib/debug/lib/modules/6.11.2-300.fc41.ppc64le/vmlinux ./sample.dump

crash 8.0.5++
Copyright (C) 2002-2024  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.
WARNING: vmcoreinfo is empty, will read from symbols
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 "powerpc64le-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: /usr/lib/debug/lib/modules/6.11.2-300.fc41.ppc64le/vmlinux
    DUMPFILE: ./sample.dump  [PARTIAL DUMP]
        CPUS: 16
        DATE: Mon Oct  7 01:18:14 CDT 2024
      UPTIME: 01:04:55
LOAD AVERAGE: 31.05, 10.52, 3.81
       TASKS: 434
    NODENAME: sample.aus.stglabs.ibm.com
     RELEASE: 6.11.2-300.fc41.ppc64le
     VERSION: #1 SMP Fri Oct  4 16:30:24 UTC 2024
     MACHINE: ppc64le  (2750 Mhz)
      MEMORY: 260 GB
       PANIC: ""
         PID: 0
     COMMAND: "swapper/0"
        TASK: c000000003ca5380  (1 of 16)  [THREAD_INFO: c000000003ca5380]
         CPU: 0
       STATE: TASK_RUNNING
     WARNING: panic task not found

crash> bt
PID: 0        TASK: c000000003ca5380  CPU: 0    COMMAND: "swapper/0"
 #0 [c000000003ce3aa0] init_task at c000000003ca5380  (unreliable)
 #1 [c000000003ce3c50] __switch_to at c000000000020500
 #2 [c000000003ce3cc0] __schedule at c0000000015999b0
 #3 [c000000003ce3e00] schedule_idle at c00000000159af4c
 #4 [c000000003ce3e30] do_idle at c00000000020c2ec
 #5 [c000000003ce3ea0] cpu_startup_entry at c00000000020c700
 #6 [c000000003ce3ed0] rest_init at c0000000000113a4
 #7 [c000000003ce3f10] console_on_rootfs at c00000000300f204
 #8 [c000000003ce3fe0] start_here_common at c00000000000e998
crash>

I have tried the same patch with different kernel versions also and it is working without any issues.

Thanks,
Anushree Mathur
--
Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux