Skip to content
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

unable to execute code with isolate #18

Open
aniketsaurav18 opened this issue Mar 1, 2024 · 0 comments
Open

unable to execute code with isolate #18

aniketsaurav18 opened this issue Mar 1, 2024 · 0 comments

Comments

@aniketsaurav18
Copy link

I am trying to compile a basic c++ code inside the conatiner using the command:
isolate --cg -s -b 0 -M /var/local/lib/isolate/0 /box/metadata.txt --stderr-to-stdout -i /dev/null -t 1 -x 0 -w 5 -E HOME=/tmp -E path=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\" -E LANG -E LANGUAGE -E LC_ALL -E JUDGE0_HOMEPAGE -E JUDGE0_SOURCE_CODE -E JUDGE0_MAINTAINER -E JUDGE0_VERSION -d /etc:noexec --run -- /bin/bash $(basename /var/local/lib/isolate/0/box/compile.sh) > /var/local/lib/isolate/0/box/compileoutput.txt

It exited with code 11. upon looking in the metadata.txt
time:0.002 time-wall:0.028 max-rss:1268 csw-voluntary:4 csw-forced:3 cg-mem:580 exitsig:11 status:SG message:Caught fatal signal 11

I tried compiling the code using this command only /bin/bash $(basename /var/local/lib/isolate/0/box/compile.sh) it works fine.
what am I missing here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant