eteran / edb-debugger

edb is a cross-platform AArch32/x86/x86-64 debugger.
GNU General Public License v2.0
2.7k stars 326 forks source link

edb 1.0.0 - error: Failed to open and attach to process: #673

Closed GeorgeSolti closed 6 years ago

GeorgeSolti commented 6 years ago

When open binary file to debug, it reports error below:

Failed to open and attach to process: execv() failed: No such file or directory

(a) OS: RHEL7.2 (b) no this issue for same binary file with edb-0.9.20 (c) run /bin/ls is no issue (d) debug file and error snap as attached.

GeorgeSolti commented 6 years ago

Seems attached failed, please get the debug binary file and error snap as: https://pan.baidu.com/s/1proX_PxmuZzIjEIfdt8iLQ

eteran commented 6 years ago

Does the testbin file have execute permissions on your system?

eteran commented 6 years ago

Actually, there seems to be something weird about this binary:

(gdb) run
Starting program: /home/eteran/Downloads/debug/testbin 
/bin/bash: /home/eteran/Downloads/debug/testbin: No such file or directory
During startup program exited with code 127.

and

$ chmod +x testbin
$ ./testbin
bash: ./testbin: No such file or directory

This doesn't appear to be an edb thing...

10110111 commented 6 years ago

Hint:

$ readelf -l testbin | grep interpreter
      [Requesting program interpreter: /lib64/ld-lsb-x86-64.so.3]
eteran commented 6 years ago

Indeed I do not have the file, and it seems that perhaps the OP doesn't either?

GeorgeSolti commented 6 years ago

Dear Eteran,

Sorry, yes, that should be OS issue, testbin can be run on RHEL6, but failed on RHEL7.

Thanks for your time and trouble. I'll study and try to make edb run on RHEL6.

Thanks again.

eteran commented 6 years ago

No worries, glad we were able to sort it out!