eteran/edb-debugger

Error: Failed to open and attach to process: execv() failed: permission denied

yanbrasiliano opened this issue · 5 comments

Hello there!
I am trying to open an .exe file in my edb but the following error returns:

Failed to open and attach to process: execv() failed: permission denied

image

System: Kubuntu 20.4
Kernel: 5.8.0-50 generic

Windows executables in Linux normally run via Wine, so direct execution via execve won't work. I don't think EDB will work in this case. You might try starting the process without EDB, and then attaching to it, if your use case allows this.

in this case, compiling the source code on Linux would you be able to open it?

compiling the source code on Linux

The main point is to compile for Linux, not necessarily on it. If you compile it for Linux, then yes, EDB should run it.

Closing since I believe the issue is identified. Windows executables are not executable under Linux (outside of things like wine). Since EDB doesn't itself run executables and just asks the OS to run the target, EDB cannot debug those directly either.

It is possible in principle to debug a Windows executable by running it in wine, and then attaching to that instance of wine... but I doubt the experience would be pleasant.

Also, since this has come up a few times before, I've added a new FAQ section to the WIKI.

https://github.com/eteran/edb-debugger/wiki/FAQ

@10110111 Feel free to clarify the language on it if you think it can be explained better :-)