Skip to content

测试并发答题时,其他编程语言都运行正常,就C#语言总是运行错误 #886

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

Open
damnit1989 opened this issue Nov 24, 2022 · 7 comments

Comments

@damnit1989
Copy link

描述问题

在测试并发答题时 (10个学生同一时间作答同一道题),其他编程语言都运行正常,就C#语言老是运行错误。

题目: A+B
程序:

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.IO; 
namespace ConsoleApplication3 {
    class Program { 
        static void Main(string[] args) 
        { 
            string s ; 
            for (; ; ) 
            { 
                s = Console.ReadLine(); 
                if (s == null) break; 
                string[] words = new string[2]; 
                words = s.Split(new char[] { ' ' }); 
                Console.WriteLine("{0}", int.Parse(words[0]) + int.Parse(words[1])); 
            } 
        } 
    } 
}

系统信息
Linux 805e17d0dec9 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

错误信息

/1736/sample.in:[ERROR] solution_id:2806 called a Forbidden system call:62 [62]
TO FIX THIS , ask admin to add the CALLID into corresponding LANG_XXV[] located at okcalls32/64.h ,
and recompile judge_client.
if you are admin and you don't know what to do ,
chinese explaination can be found on https://zhuanlan.zhihu.com/p/24498599

/1736/sample.in:[ERROR] solution_id:2806 called a Forbidden system call:62 [62]
TO FIX THIS , ask admin to add the CALLID into corresponding LANG_XXV[] located at okcalls32/64.h ,
and recompile judge_client.
if you are admin and you don't know what to do ,
chinese explaination can be found on https://zhuanlan.zhihu.com/p/24498599

/1736/sample.in:Killed
/1736/加法用例-1.in:[ERROR] solution_id:2806 called a Forbidden system call:62 [62]
TO FIX THIS , ask admin to add the CALLID into corresponding LANG_XXV[] located at okcalls32/64.h ,
and recompile judge_client.
if you are admin and you don't know what to do ,
chinese explaination can be found on https://zhuanlan.zhihu.com/p/24498599

/1736/加法用例-1.in:[ERROR] solution_id:2806 called a Forbidden system call:62 [62]
TO FIX THIS , ask admin to add the CALLID into corresponding LANG_XXV[] located at okcalls32/64.h ,
and recompile judge_client.
if you are admin and you don't know what to do ,
chinese explaination can be found on https://zhuanlan.zhihu.com/p/24498599

/1736/加法用例-1.in:Killed
/1736/加法用例-2.in:[ERROR] solution_id:2806 called a Forbidden system call:62 [62]
TO FIX THIS , ask admin to add the CALLID into corresponding LANG_XXV[] located at okcalls32/64.h ,
and recompile judge_client.
if you are admin and you don't know what to do ,
chinese explaination can be found on https://zhuanlan.zhihu.com/p/24498599

/1736/加法用例-2.in:[ERROR] solution_id:2806 called a Forbidden system call:62 [62]
TO FIX THIS , ask admin to add the CALLID into corresponding LANG_XXV[] located at okcalls32/64.h ,
and recompile judge_client.
if you are admin and you don't know what to do ,
chinese explaination can be found on https://zhuanlan.zhihu.com/p/24498599

/1736/加法用例-2.in:Killed

按错误消息中的提示,在okcalls32.h中加了 62 还是不行 。

@zhblue
Copy link
Owner

zhblue commented Nov 24, 2022

加那个62,需要重新编译judge_client,并设置judge.conf中的OJ_INTERNAL_CLIENT=0

@damnit1989
Copy link
Author

加那个62,需要重新编译judge_client,并设置judge.conf中的OJ_INTERNAL_CLIENT=0

我按这个操作了,结果还是一样,还是提示上面的错误。很奇怪,其他编程语言都是正常的,唯独 C# 运行异常,C#语言是做了什么特殊处理吗 ?

@zhblue
Copy link
Owner

zhblue commented Nov 24, 2022

重启judged生效
sudo pkill -9 judged
sudo judged

@damnit1989
Copy link
Author

@zhblue ,也都重启啦,貌似还是不行
image

@zhblue
Copy link
Owner

zhblue commented Nov 24, 2022

+QQ 10982766

@damnit1989
Copy link
Author

+QQ 10982766

已加

@zhblue
Copy link
Owner

zhblue commented Nov 24, 2022

本系统不建议在docker里使用,请仔细看首页说明。

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