-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
execve is throwing "No such file or directory" for a statically-linked executable #63
Comments
You should place the executable in the sandbox directory instead,
that is the directory printed by `isolate --init`.
|
I ran the command above from the sandbox directory. |
When you mention "sandbox directory", is it the directory
printed by "isolate --init"?
|
Yes. |
Actually, I ran |
If you still experience the problem, please send me the executable file with which it fails. |
Here I am bundling the source code and the executable itself.
|
/var/local/lib/isolate/0 should contain a "box" subdirectory
(created by isolate --init), where you should put your executable.
|
Okay, problem solved. Thank you very much for your support. But, however. (You may have seen that the source code contains only an infinite loop.)
It's there for over 2 seconds. |
```
# isolate --run -- a --time=1 --wall-time=1
```
This passes the options to the executable inside the sandbox.
For options to apply to isolate itself, you must specify them
before the "--" separator.
|
Okay, the program stopped now. Thank you very much! I wanted to ask for a long time but it seems like digging through the source code was kinda too tedious. :) |
_I wanted to ask for a long time but it seems like digging through the source code was kinda too tedious. :)_
Digging in the manual would suffice ;)
|
Sorry, my fault. Have a nice day ;)
|
Running statically compiled C programs failed.
The source code of the program is a simple
while(1){};
wrapped inint main()
, compiled withgcc -static -no-pie
.The existence of the
a
executable in the directoryisolate
was invoked can be confirmed.The text was updated successfully, but these errors were encountered: