当我使用gdb附加到正在运行的进程时,gdb输出“Unknown error 18446744073709551615”:
gdb attach 13334
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <gnu link>
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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see: <gnu link>.
Find the GDB manual and other documentation resources online at: <gnu link>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
attach: No such file or directory.
Attaching to process 13334
"target:****the bin file full path***": could not open as an executable file: Unknown error 18446744073709551615.
我已在How to attach a process in gdb
检查了类似的用法然而,当我附上它时:
gdb path_to_exe pid
报告更多错误:
映射共享库部分时出错:
无法打开target:/lib64/tls/libpthread.so.0' as an executable file: Unknown error 18446744073709551615
Error while mapping shared library sections:
Could not open
target:/lib64/libuuid.so.1'作为可执行文件:未知错误18446744073709551615
映射共享库部分时出错:
无法打开target:/usr/lib64/libz.so.1' as an executable file: Unknown error 18446744073709551615
Error while mapping shared library sections:
Could not open
目标:/usr/lib64/libglib-2.0.so.0'作为可执行文件:未知错误18446744073709551615
映射共享库部分时出错:
无法打开target:/lib64/libcrypto.so.4' as an executable file: Unknown error 18446744073709551615
Error while mapping shared library sections:
Could not open
目标:/ usr / lib64 / libstdc ++。so.6'作为可执行文件:未知错误18446744073709551615
....
任何提示?