gdb python script lx command error

From: Josef
Date: Tue Apr 27 2021 - 12:25:01 EST


Hi,

the lx commands(like lx-symbols) were failing in gdb with the following error:
loading vmlinux
Python Exception <class 'gdb.MemoryError'> Cannot access memory at
address 0xffffffff828da7a0:
Error occurred in Python: Cannot access memory at address 0xffffffff828da7a0

the python script is loaded in gdb
(/home/jo/linux-5.12/vmlinux-gdb.py) the CONFIG_RANDOMIZE_BASE is
disabled and CONFIG_FRAME_POINTER is enabled

kernel config:
https://gist.githubusercontent.com/1Jo1/0d455013f31bb42ec68715ac7ff10db7/raw/7501b404abdfb6949d13df97216f4cace3192f2e/qemu-kernel-gdb-debugging

I followed these instructions
https://www.kernel.org/doc/html/latest/dev-tools/gdb-kernel-debugging.html

I have the same issue with older kernels, probably I missed something?

--
Josef