채점 중 예외가 발생했습니다.
익셉션:
스택 트레이스:
Traceback (most recent call last):
File "judge/tasks.py", line 138, in judge_submission
sandbox_env = sandbox.get_sandbox()
File "judge/sandbox.py", line 62, in get_sandbox
return Sandbox(SETTINGS["USER"], SETTINGS["FILESYSTEMSIZE"])
File "judge/sandbox.py", line 76, in __init__
self.isolate_filesystem(fs_size, home_type)
File "judge/sandbox.py", line 137, in isolate_filesystem
self.mount("none", self.workdir, "tmpfs", "size=%d" % (fs_size << 20))
File "judge/sandbox.py", line 123, in mount
ret = execute(cmd)
File "judge/sandbox.py", line 37, in execute
popen = subprocess.Popen(command, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1223, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
lovepk
채점실패는 무엇이 문제인가요?
답안 번호 #543957
채점 중 예외가 발생했습니다.
익셉션:
스택 트레이스:
Traceback (most recent call last):
File "judge/tasks.py", line 138, in judge_submission
sandbox_env = sandbox.get_sandbox()
File "judge/sandbox.py", line 62, in get_sandbox
return Sandbox(SETTINGS["USER"], SETTINGS["FILESYSTEMSIZE"])
File "judge/sandbox.py", line 76, in __init__
self.isolate_filesystem(fs_size, home_type)
File "judge/sandbox.py", line 137, in isolate_filesystem
self.mount("none", self.workdir, "tmpfs", "size=%d" % (fs_size << 20))
File "judge/sandbox.py", line 123, in mount
ret = execute(cmd)
File "judge/sandbox.py", line 37, in execute
popen = subprocess.Popen(command, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1223, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
6년 전