Coder Social home page Coder Social logo

Comments (6)

virusdefender avatar virusdefender commented on August 18, 2024

你好,两个的操作系统是否一致,分别是什么系统?我之前有注意过不同系统之间的差异。

from judger.

messyidea avatar messyidea commented on August 18, 2024

i5的是arch 64,core的是debian8 32

from judger.

virusdefender avatar virusdefender commented on August 18, 2024

@messyidea 嗯,不同系统的话那就正常了。我测试的系统调用都是在Ubuntu上,所以会出现这个问题,之前还遇到过CentOS系统调用的差异。因为docker是通用内核的,所以docker貌似不能解决这个内核系统调用差异的问题。

我能想到的方案就是将系统调用白名单作为参数传递过去,在已有的白名单的基础上也可以不修改代码就自定义配置。如果有其他更加通用的方案,也欢迎一起讨论。

from judger.

messyidea avatar messyidea commented on August 18, 2024

原来是不同系统的问题。我去查查相关的资料看看。谢谢

from judger.

messyidea avatar messyidea commented on August 18, 2024

是不是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.

virusdefender avatar virusdefender commented on August 18, 2024

@messyidea 32和64肯定有差异,比如你上面的mmap2fstat64应该是32位下面的。

当时没考虑32位的原因是因为需要在docker中执行,32位无法安装docker。

from judger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.