ioi / isolate

Sandbox for securely executing untrusted programs
Other
1.05k stars 157 forks source link

Program finishing but isolate times out on wall clock? #104

Closed tomsharratt closed 1 year ago

tomsharratt commented 2 years ago

command:

isolate --cg -b 1 -t 3 -x 4 -w 6 -p4 -k 1000 -f 1000 -M a --cg-timing -d /app/packages -E "PATH=/app/packages/node/16.3.0/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:." --run -- /bin/bash run index.js

the run script is node "$@"

Manifest:

status:TO
message:Time limit exceeded (wall clock)
killed:1
time:0.008
time-wall:6.071
max-rss:884
csw-voluntary:4
csw-forced:0
cg-mem:1608

Why is it running in 0.008 but hanging for 6 seconds and being killed by the time wall? Also, if I don't set a time wall it just hangs indefinitely.

gollux commented 2 years ago

Can you try to strace it as root to see what's happening?

Does the problem occur without --cg?

gollux commented 1 year ago

Since nobody replied and I am unable to reproduce the problem, I am closing the issue. Feel free to re-open it.