使用GDB调试二进制炸弹时遇内存访问与进程创建错误求助
GDB调试二进制炸弹时的跨平台错误问题
我正尝试用GDB拆解二进制炸弹,但在两个环境下都遇到了错误:
Windows PowerShell环境
PS D:\binarybomb> gdb bomb GNU gdb (GDB) 13.2 Copyright (C) 2023 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-w64-mingw32". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://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"... warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration of GDB. Attempting to continue with the default i386:x86-64 settings. Reading symbols from bomb... (gdb) b phase_1 Breakpoint 1 at 0x1234 (gdb) r Starting program: D:\binarybomb\bomb Error creating process D:\binarybomb\bomb, (error 193: unknown win32 error (193))
Ubuntu(WSL)环境
kitsune@LAPTOP-MMDG3JER:/mnt/d/binarybomb$ gdb bomb GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1 Copyright (C) 2022 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: <https://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 bomb... (gdb) b phase_1 Breakpoint 1 at 0x1234 (gdb) r Starting program: /mnt/d/binarybomb/bomb warning: opening /proc/PID/mem file for lwp 29.29 failed: No such file or directory (2) Warning: Cannot insert breakpoint 1. Cannot access memory at address 0x800123
我已经尝试了多种解决方案但均无效,包括以管理员身份运行、禁用杀毒软件、使用sudo等。请问GDB出现这些错误的原因是什么?希望能得到帮助。
内容的提问来源于stack exchange,提问作者Minh Quan Dinh Cao
相关产品推荐
相关产品推荐

