drgn fails to analyze a vmcore captured from s390x or ppc64le systems with the error: could not read memory from kdump
Issue
-
drgn
fails to analyze a vmcore captured froms390x
orppc64le
systems with the error: could not read memory from kdump -
Attempts to analyze vmcore files from
s390x
orppc64le
systems using thedrgn
debugger result in the following error:
# drgn -c vmcore -s /usr/lib/debug/lib/modules/6.12.0-55.9.1.el10_0.s390x/vmlinux
drgn 0.0.29 (using Python 3.12.9, elfutils 0.192, with libkdumpfile)
warning: missing some debugging symbols (see https://drgn.readthedocs.io/en/latest/getting_debugging_symbols.html):
kernel modules (could not find loaded kernel modules: could not read memory from kdump: Cannot get page I/O address: No way to translate: 0x3dd03a1c698)
For help, type help(drgn).
>>> import drgn
>>> from drgn import FaultError, NULL, Object, alignof, cast, container_of, execscript, implicit_convert, offsetof, reinterpret, sizeof, stack_trace
>>> from drgn.helpers.common import *
>>> from drgn.helpers.linux import *
>>>
>>> stack_trace(1)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib64/python3.12/site-packages/drgn/__init__.py", line 286, in stack_trace
return get_default_prog().stack_trace(thread)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_drgn.FaultError: could not read memory from kdump: Cannot get page I/O address: No way to translate: 0x3dd03a07b58
# drgn -c vmcore -s /usr/lib/debug/lib/modules/6.12.0-55.9.1.el10_0.s390x/vmlinux
drgn 0.0.29 (using Python 3.12.9, elfutils 0.192, with libkdumpfile)
warning: missing some debugging symbols (see https://drgn.readthedocs.io/en/latest/getting_debugging_symbols.html):
kernel modules (could not find loaded kernel modules: could not read memory from kdump: Cannot get page I/O address: No way to translate: 0x3dd03a1c698)
For help, type help(drgn).
>>> import drgn
>>> from drgn import FaultError, NULL, Object, alignof, cast, container_of, execscript, implicit_convert, offsetof, reinterpret, sizeof, stack_trace
>>> from drgn.helpers.common import *
>>> from drgn.helpers.linux import *
>>>
>>> print(prog['linux_banner'].to_bytes_())
Traceback (most recent call last):
File "<console>", line 1, in <module>
TypeError: cannot read object with incomplete array type
Environment
- Red Hat Enterprise Linux 10
drgn
s390x
,ppc64le
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.