gpt4 book ai didi

linux-kernel - lx-符号 : Python Exception Cannot access memory at address 0xff

转载 作者:行者123 更新时间:2023-12-04 11:41:03 46 4
gpt4 key购买 nike

我正在尝试加载 lx-符号从内核。但它不断向我显示以下错误:

(gdb) lx-symbols
loading vmlinux
Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0xffffffff824fb470:
Error occurred in Python command: Cannot access memory at address 0xffffffff824fb470

现在我成功加载了 lx-符号之前来自同一个版本(不确定这是否是正确的术语)但不知道为什么我可以再加载它。

现在,当我第一次通过 gdb 连接到远程机器时,它用来显示构建跟踪,如下所示:
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
Copyright (C) 2018 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
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"...
Reading symbols from ./vmlinux...done.
(gdb) target remote: 1235
Remote debugging using : 1235
native_safe_halt ()
at /build/linux-hwe-22QmxS/linux-hwe-5.3.0/arch/x86/include/asm/irqflags.h:61
61 /build/linux-hwe-22QmxS/linux-hwe-5.3.0/arch/x86/include/asm/irqflags.h: No such file or directory.

现在,当我连接到远程内核时,它只向我显示:
(gdb) target remote :1235
Remote debugging using :1235
0xffffffff81a98522 in __irqentry_text_end ()

我注意到构建跟踪 /build/linux-hwe-22QmxS/linux-hwe-5.3.0/arch/x86/include/asm/irqflags.h:61
61
消失(我没有对配置或设置进行任何更改)。

这是 第二次 我面临同样的问题。第一次,我以为我不小心做了一些更改,但随着问题再次出现,这次我很确定我没有做任何更改。

我有我的 .gdbinit 文件路径正确。
add-auto-load-safe-path /../../ubuntu-bionic/debian/build/build-generic/vmlinux-gdb.py

我使用以下命令检查源是否正确加载:
(gdb) source /home/../../ubuntu-bionic/debian/build/build-generic/vmlinux-gdb.py

它没有给我任何错误。所以,我猜源正在正确加载。我只是不知道还能做什么。请帮忙。

最佳答案

尝试添加到内核启动参数“nokaslr”和/或使用 CONFIG_RANDOMIZE_BASE=n 构建

关于linux-kernel - lx-符号 : Python Exception <class 'gdb.MemoryError' > Cannot access memory at address 0xff,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60045698/

46 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com