compilers icon indicating copy to clipboard operation
compilers copied to clipboard

unable to execute code with isolate

Open aniketsaurav18 opened this issue 1 year ago • 0 comments

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?

aniketsaurav18 avatar Mar 01 '24 18:03 aniketsaurav18