Bug 1427466
Summary: | [RHEV7.4] dump-guest-memory failed due to Python Exception <class 'gdb.error'> Attempt to extract a component of a value that is not a (null). | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | hachen <hachen> |
Component: | qemu-kvm-rhev | Assignee: | Marc-Andre Lureau <marcandre.lureau> |
Status: | CLOSED ERRATA | QA Contact: | hachen <hachen> |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | 7.4 | CC: | aliang, chayang, choma, coli, drjones, hachen, juzhang, knoel, marcandre.lureau, michen, mrezanin, ngu, pingl, shuang, virt-maint, xfu, xutian, xuwei |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.9.0-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 23:44:45 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
hachen
2017-02-28 09:44:16 UTC
reproduced, looking at it patch on qemu ML "[PATCH] scripts/dump-guest-memory.py: fix int128_get64 on recent gcc" Test on: qemu-kvm-rhev-2.9.0-1.el7.x86_64 Host: kernel-debuginfo-3.10.0-656.el7.x86_64 kernel-3.10.0-656.el7.x86_64 kernel-debuginfo-common-x86_64-3.10.0-656.el7.x86_64 Guest: kernel-debuginfo-3.10.0-656.el7.x86_64 kernel-3.10.0-656.el7.x86_64 kernel-debuginfo-common-x86_64-3.10.0-656.el7.x86_64 Got expected result, bug verified (gdb) dump-guest-memory /tmp/vmcore X86_64 guest RAM blocks: target_start target_end host_addr message count ---------------- ---------------- ---------------- ------- ----- 0000000000000000 00000000000a0000 00007fecafe00000 added 1 00000000000a0000 00000000000b0000 00007fecae800000 added 2 00000000000c0000 00000000000ca000 00007fecafec0000 added 3 00000000000ca000 00000000000cd000 00007fecafeca000 joined 3 00000000000cd000 00000000000ec000 00007fecafecd000 joined 3 00000000000ec000 00000000000f0000 00007fecafeec000 joined 3 00000000000f0000 0000000000100000 00007fecafef0000 joined 3 0000000000100000 00000000c0000000 00007fecaff00000 joined 3 00000000fc000000 00000000fd000000 00007fecae800000 added 4 00000000fffc0000 0000000100000000 00007fecafc00000 added 5 0000000100000000 0000000240000000 00007fed6fe00000 added 6 dumping range at 00007fecafe00000 for length 00000000000a0000 dumping range at 00007fecae800000 for length 0000000000010000 dumping range at 00007fecafec0000 for length 00000000bff40000 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Hi Lureau: Can you help me have a look this? Maybe there is some thing wrong in my step. After core.xxx file was created, I was trying to load the extension. (gdb) source /usr/share/qemu-kvm/dump-guest-memory.py Traceback (most recent call last): File "/usr/share/qemu-kvm/dump-guest-memory.py", line 21, in <module> UINTPTR_T = gdb.lookup_type("uintptr_t") gdb.error: No type named uintptr_t. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/share/qemu-kvm/dump-guest-memory.py", line 23, in <module> raise gdb.GdbError("Symbols must be loaded prior to sourcing dump-guest-memory.\n" gdb.GdbError: Symbols must be loaded prior to sourcing dump-guest-memory. Symbols may be loaded by 'attach'ing a QEMU process id or by 'load'ing a QEMU binary. (gdb) Can you have a loop this issue. Thank you for your help. (In reply to Michael from comment #14) > gdb.GdbError: Symbols must be loaded prior to sourcing dump-guest-memory. > Symbols may be loaded by 'attach'ing a QEMU process id or by 'load'ing a > QEMU binary. Just do what the exception error text is telling you to do. For example, this should work: $ gdb path/to/qemu (gdb) source path/to/dump-guest-memory.py Or, as the error text states, attach to a running QEMU's PID first. Hi (In reply to Andrew Jones from comment #15) > > Just do what the exception error text is telling you to do. For example, > this should work: > > $ gdb path/to/qemu > (gdb) source path/to/dump-guest-memory.py > > Or, as the error text states, attach to a running QEMU's PID first. Hi Andrew: I can execute the command on the RHEL7. Fail on RHEL8. I open a new Bug to track it. Please see the detail in the new Bug 1730691. https://bugzilla.redhat.com/show_bug.cgi?id=1730691 Thanks. |