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

karel.js won't run under omegajail on WSL #30

Open
frcepeda opened this issue Apr 27, 2022 · 0 comments
Open

karel.js won't run under omegajail on WSL #30

frcepeda opened this issue Apr 27, 2022 · 0 comments

Comments

@frcepeda
Copy link
Member

frcepeda commented Apr 27, 2022

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.
@frcepeda frcepeda changed the title Missing policy file? Can't generate .pngs from omegaUp-deploy anymore Apr 27, 2022
@frcepeda frcepeda changed the title Can't generate .pngs from omegaUp-deploy anymore karel.js won't run under omegajail anymore Apr 27, 2022
@frcepeda frcepeda changed the title karel.js won't run under omegajail anymore karel.js won't run under omegajail on WSL Apr 27, 2022
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