Comments (6)
你好,两个的操作系统是否一致,分别是什么系统?我之前有注意过不同系统之间的差异。
from judger.
i5的是arch 64,core的是debian8 32
from judger.
@messyidea 嗯,不同系统的话那就正常了。我测试的系统调用都是在Ubuntu上,所以会出现这个问题,之前还遇到过CentOS系统调用的差异。因为docker是通用内核的,所以docker貌似不能解决这个内核系统调用差异的问题。
我能想到的方案就是将系统调用白名单作为参数传递过去,在已有的白名单的基础上也可以不修改代码就自定义配置。如果有其他更加通用的方案,也欢迎一起讨论。
from judger.
原来是不同系统的问题。我去查查相关的资料看看。谢谢
from judger.
是不是x86和x64的问题?可以看看ACDream的judge
https://github.com/KIDx/Judger/tree/master/judge
里面的okcall_x86和okcall_x64, x64是用mmap的,x86是用mmap2的。
不知道你当时的Centos是x86的还是x64的?
如果只是x86或者x64的差别的话,直接在开头判断一下就好了
from judger.
@messyidea 32和64肯定有差异,比如你上面的mmap2
和fstat64
应该是32位下面的。
当时没考虑32位的原因是因为需要在docker中执行,32位无法安装docker。
from judger.
Related Issues (20)
- Judger的文档网站挂了 HOT 1
- M1 无法正常运行沙盒 HOT 4
- 运行demo时,result=4,请问大佬有解决办法么? HOT 2
- 你好,这个 OJ 要怎么用? HOT 1
- 有没有办法可以给远程进程安装seccomp-filter? HOT 2
- Tip: use native executable with Java JNI
- Wrong Answer because of last blank in the printf HOT 2
- 一个用go调用judger.so的第三方库
- Run judger on alpine linux container (for cloud environments) HOT 3
- Question: Do we really need root user privileges to run this Judger?
- 对于 python 文件运行,有没有对应的规则程序,现在使用c_cpp会报"signal": 31
- 关于rusage的值
- 如果你正在被设置seccomp所困扰 HOT 1
- libseccomp seems to be not working as expected
- 编译报错 HOT 3
- Problem while building module in nodejs HOT 3
- Import pandas, scipy, numpy
- Arm64 需要额外的系统调用 HOT 1
- Stack Trace is missing for Result- 4 [Runtime Error] for C and CPP languages HOT 1
- go 语言沙箱编译资源报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from judger.