Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Try dump guest memory with various formats by qmp command, there are three formats can't loading in crash which is lzo snappy and zlib.
This could be a bug of crash, but I'm not very sure about it.
Version-Release number of selected component (if applicable):
Host:
3.10.0-462.el7.ppc64le
qemu-kvm-rhev-2.6.0-11.el7.ppc64le
crash-7.1.5-1.el7.ppc64le
Guest:
3.10.0-462.el7.ppc64le
How reproducible:
100%
Steps to Reproduce:
1.Boot guest and dump guest memory:
{"execute": "dump-guest-memory", "arguments": { "paging": false, "protocol": "file:/home/dump.zlib", "format": "kdump-zlib"}}
{"timestamp": {"seconds": 1467956988, "microseconds": 623110}, "event": "STOP"}
{"timestamp": {"seconds": 1467957018, "microseconds": 754681}, "event": "DUMP_COMPLETED", "data": {"result": {"total": 2164260864, "status": "completed", "completed": 2164260864}}}
{"timestamp": {"seconds": 1467957018, "microseconds": 755788}, "event": "RESUME"}
{"return": {}}
{"execute": "dump-guest-memory", "arguments": { "paging": false, "protocol": "file:/home/dump.lzo", "format": "kdump-lzo"}}
{"timestamp": {"seconds": 1467957147, "microseconds": 884762}, "event": "STOP"}
{"timestamp": {"seconds": 1467957153, "microseconds": 122147}, "event": "DUMP_COMPLETED", "data": {"result": {"total": 2164260864, "status": "completed", "completed": 2164260864}}}
{"timestamp": {"seconds": 1467957153, "microseconds": 122578}, "event": "RESUME"}
{"return": {}}
{"execute": "dump-guest-memory", "arguments": { "paging": false, "protocol": "file:/home/dump.snappy", "format": "kdump-snappy"}}
{"timestamp": {"seconds": 1467957311, "microseconds": 795600}, "event": "STOP"}
{"timestamp": {"seconds": 1467957315, "microseconds": 278356}, "event": "DUMP_COMPLETED", "data": {"result": {"total": 2164260864, "status": "completed", "completed": 2164260864}}}
{"timestamp": {"seconds": 1467957315, "microseconds": 278762}, "event": "RESUME"}
{"return": {}}
2. Analyze dump file by crash.
# crash /usr/lib/debug/lib/modules/`uname -r`/vmlinux dump.zlib
crash 7.1.5-1.el7
Copyright (C) 2002-2016 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.
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 "powerpc64le-unknown-linux-gnu"...
please wait... (gathering module symbol data)
WARNING: cannot access vmalloc'd module memory
crash: cannot determine idle task addresses from init_tasks[] or runqueues[]
crash: cannot resolve "init_task_union"
lzo and snappy got the same problem, only elf format can be load.
3.
Actual results:
Can not load dump file.
Expected results:
Can be load.
Additional info:
x86 can't hit this problem.
Note: Bug 1240497 ("virsh dump --memory-only --format kdump-[zlib|lzo|snappy]" creates invalid compressed dumpfile header on ppc64) might be related to this one, or maybe it's even a duplicate.
(In reply to Thomas Huth from comment #2)
> Note: Bug 1240497 ("virsh dump --memory-only --format
> kdump-[zlib|lzo|snappy]" creates invalid compressed dumpfile header on
> ppc64) might be related to this one, or maybe it's even a duplicate.
This bug is indeed a duplicate of Bug 1240497: even though
the error message is different, I've verified that everything
else is the same, in particular the mismatch in block_size
between a dump created with format "kdump-zlib" and one
initially created with format "elf" and later compressed using
the makedumpfile utility.
Furthermore, I've verified that the dumps created using "virsh
dump" (as in Bug 1240497) and those created using the
"dump-guest-memory" QMP command (as in this bug) behave exactly
the same, and that libvirt itself is doing nothing but set up
a file descriptor and call the QMP command.
So I'm closing this bug as a duplicate and reassign Bug 1240497
from libvirt to QEMU; I'll add more information in the other
bug.
*** This bug has been marked as a duplicate of bug 1240497 ***
Description of problem: Try dump guest memory with various formats by qmp command, there are three formats can't loading in crash which is lzo snappy and zlib. This could be a bug of crash, but I'm not very sure about it. Version-Release number of selected component (if applicable): Host: 3.10.0-462.el7.ppc64le qemu-kvm-rhev-2.6.0-11.el7.ppc64le crash-7.1.5-1.el7.ppc64le Guest: 3.10.0-462.el7.ppc64le How reproducible: 100% Steps to Reproduce: 1.Boot guest and dump guest memory: {"execute": "dump-guest-memory", "arguments": { "paging": false, "protocol": "file:/home/dump.zlib", "format": "kdump-zlib"}} {"timestamp": {"seconds": 1467956988, "microseconds": 623110}, "event": "STOP"} {"timestamp": {"seconds": 1467957018, "microseconds": 754681}, "event": "DUMP_COMPLETED", "data": {"result": {"total": 2164260864, "status": "completed", "completed": 2164260864}}} {"timestamp": {"seconds": 1467957018, "microseconds": 755788}, "event": "RESUME"} {"return": {}} {"execute": "dump-guest-memory", "arguments": { "paging": false, "protocol": "file:/home/dump.lzo", "format": "kdump-lzo"}} {"timestamp": {"seconds": 1467957147, "microseconds": 884762}, "event": "STOP"} {"timestamp": {"seconds": 1467957153, "microseconds": 122147}, "event": "DUMP_COMPLETED", "data": {"result": {"total": 2164260864, "status": "completed", "completed": 2164260864}}} {"timestamp": {"seconds": 1467957153, "microseconds": 122578}, "event": "RESUME"} {"return": {}} {"execute": "dump-guest-memory", "arguments": { "paging": false, "protocol": "file:/home/dump.snappy", "format": "kdump-snappy"}} {"timestamp": {"seconds": 1467957311, "microseconds": 795600}, "event": "STOP"} {"timestamp": {"seconds": 1467957315, "microseconds": 278356}, "event": "DUMP_COMPLETED", "data": {"result": {"total": 2164260864, "status": "completed", "completed": 2164260864}}} {"timestamp": {"seconds": 1467957315, "microseconds": 278762}, "event": "RESUME"} {"return": {}} 2. Analyze dump file by crash. # crash /usr/lib/debug/lib/modules/`uname -r`/vmlinux dump.zlib crash 7.1.5-1.el7 Copyright (C) 2002-2016 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. 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 "powerpc64le-unknown-linux-gnu"... please wait... (gathering module symbol data) WARNING: cannot access vmalloc'd module memory crash: cannot determine idle task addresses from init_tasks[] or runqueues[] crash: cannot resolve "init_task_union" lzo and snappy got the same problem, only elf format can be load. 3. Actual results: Can not load dump file. Expected results: Can be load. Additional info: x86 can't hit this problem.