hustoj icon indicating copy to clipboard operation
hustoj copied to clipboard

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

Open damnit1989 opened this issue 2 years ago • 7 comments

描述问题

在测试并发答题时 (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 还是不行 。

damnit1989 avatar Nov 24 '22 07:11 damnit1989

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

zhblue avatar Nov 24 '22 07:11 zhblue

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

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

damnit1989 avatar Nov 24 '22 08:11 damnit1989

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

zhblue avatar Nov 24 '22 08:11 zhblue

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

damnit1989 avatar Nov 24 '22 08:11 damnit1989

+QQ 10982766

zhblue avatar Nov 24 '22 08:11 zhblue

+QQ 10982766

已加

damnit1989 avatar Nov 24 '22 08:11 damnit1989

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

zhblue avatar Nov 24 '22 12:11 zhblue