omegaup/omegajail

karel.js won't run under omegajail on WSL

frcepeda opened this issue · 0 comments

Al correr un programa de karel.js en WSL da este error.

[2022-04-27T05:42:19Z ERROR omegajail::jail] child execution failed: pidfd_open(14): Function not implemented (os error 38)
[2022-04-27T05:42:19Z ERROR omegajail::jail] setup child failed: receive seccomp pidfd: 0 bytes read
[2022-04-27T05:42:19Z ERROR omegajail::jail::child_init] run child failed: setup_seccomp_bpf: seccomp_set_mode_filter_with_listener: seccomp(SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC|SECCOMP_FILTER_FLAG_NEW_LISTENER|SECCOMP_FILTER_FLAG_TSYNC_ESRCH): Invalid argument (os error 22)
[2022-04-27T05:42:19Z ERROR omegajail::jail] read waitid status message: read size: failed to fill whole buffer
Error: jail did not exit cleanly: WaitidStatus { status: Signaled(Pid(13), SIGKILL), user_time: 0ns, system_time: 0ns, wall_time: 783.4µs, max_rss: 0 }

Traceback (most recent call last):
  File "./utils/generateresources.py", line 234, in <module>
    _main()
  File "./utils/generateresources.py", line 227, in _main
    if not all(future.result()
  File "./utils/generateresources.py", line 227, in <genexpr>
    if not all(future.result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result
    return self.__get_result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "./utils/generateresources.py", line 99, in _generateImages
    with container.Compile(sourcePath=solutionPath, ci=ci) as c:
  File "/mnt/c/Users/me/Code/OMI-2022/utils/container.py", line 90, in __enter__
    self.run_command([
  File "/mnt/c/Users/me/Code/OMI-2022/utils/container.py", line 157, in run_command
    subprocess.run(
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['docker', 'exec', '--interactive', '297c5d8be2123e4c549a7470523df0904a4c1c80214ad9ac10fcac52105ed23e', '/var/lib/omegajail/bin/omegajail', '--root', '/var/lib/omegajail', '--homedir', '/src', '--homedir-writable', '--compile', 'kp', '--compile-source', 'Main.kp', '--compile-target', 'Main']' returned non-zero exit status 1.