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

M1 无法正常运行沙盒 #57

Open
helsonxiao opened this issue Apr 22, 2021 · 4 comments
Open

M1 无法正常运行沙盒 #57

helsonxiao opened this issue Apr 22, 2021 · 4 comments

Comments

@helsonxiao
Copy link

helsonxiao commented Apr 22, 2021

在 amd64 机器上正常运行的代码,换到 M1 arm64 后报错,不是特别熟悉这边涉及的内容,忙着处理业务需求,暂时抽不出时间做这个调整,希望有人可以帮忙一起解决。

目前临时解决方案:因为实际服务器都是 amd64 的,我把 rules 目录中的 seccomp_rules 校验全关了,直接 return 0 来支持本地开发。

@momomom123
Copy link

我也是运行demo时,result=4,请问大佬有解决办法么?

@momomom123
Copy link

在 x86 amd64 机器上正常运行的代码,换到 M1 arm64 后报错,result 是 4(运行时错误),log 以后发现 signal 不正常,不是特别熟悉这边涉及的内容,忙着处理业务需求,暂时抽不出时间做这个调整,希望有人可以帮忙一起解决。

p.s. 我在两个平台上把 JudgeServer & Judger 的测试都跑了一遍,在 x86 上都正常的。

在 x86 amd64 机器上正常运行的代码,换到 M1 arm64 后报错,result 是 4(运行时错误),log 以后发现 signal 不正常,不是特别熟悉这边涉及的内容,忙着处理业务需求,暂时抽不出时间做这个调整,希望有人可以帮忙一起解决。

p.s. 我在两个平台上把 JudgeServer & Judger 的测试都跑了一遍,在 x86 上都正常的。

我也是运行demo时,result=4,请问大佬有解决办法么?

@helsonxiao
Copy link
Author

我也是运行demo时,result=4,请问大佬有解决办法么?

暂时没在 arm 架构的机器上开发/部署了,底层的变动我也不清楚怎么处理。

@helsonxiao
Copy link
Author

我也是运行demo时,result=4,请问大佬有解决办法么?

目前临时解决方案:因为实际服务器都是 amd64 的,我把 rules 目录中的 seccomp_rules 校验全关了,直接 return 0 来支持本地开发。修改后需要重新 build JudgeServer 的镜像。

这是我 fork 后改动的地方,有时间我会再调试开启校验。
https://github.com/helsonxiao/Judger/commit/71682821ed36961ab3413fd7f68eb9b3016bd455

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

2 participants