ejudge-contests-cmd submit-run

Обсуждение вопросов, связанных с системой проведения турниров ejudge.
Post Reply
vk
Posts:165
Joined:24 August 2007, 13:44
Location:Ханты-Мансийск
Contact:
ejudge-contests-cmd submit-run

Post by vk » 11 June 2012, 01:21

Здравствуйте
Отправляю на проверку решение:

ejudge-contests-cmd 27 submit-run --ip=xxx.xxx.xxx.xxx --session 37d1390a79b39xxx A 0 /tmp/RUNQnBM0p

проверка падает в CF:
Invalid number of arguments: 3 instead of 4

При этом, если сделать rejudge данного решения, то оно проходит.
Почему так происходит?

Problem type: select-one
Use answer files: No
Use test info files: No
Use tgz files: No

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: ejudge-contests-cmd submit-run

Post by cher » 11 June 2012, 11:47

Это происходит в какой момент? В каких логах? Можно фрагмент лог файла?

vk
Posts:165
Joined:24 August 2007, 13:44
Location:Ханты-Мансийск
Contact:

Re: ejudge-contests-cmd submit-run

Post by vk » 11 June 2012, 21:42

ej-super-run.log:

Code: Select all

packet: <<# -*- coding: utf-8 -*-

contest_id = 27
judge_id = 1
run_id = 20
reply_spool_dir = "/var/lib/ejudge/000027/var/run/000027/status"
reply_report_dir = "/var/lib/ejudge/000027/var/run/000027/report"
reply_packet_name = "000020"
priority = 0
variant = 0
arch = ""
enable_memory_limit_error = 1
user_id = 2
user_login = "vk"
score_system = "KIROV"
max_file_length = 64K
max_line_length = 4K
max_cmd_length = 256
mime_type = 0
ts1 = 1339022423
ts1_us = 548335
ts2 = 1339022423
ts2_us = 548335
ts3 = 1339022423
ts3_us = 548335
ts4 = 1339022423
ts4_us = 548335
lang_time_limit_adj_ms = 0
exe_sfx = ""

[problem]

type = "select-one"
id = 1
real_time_limit_ms = 0
time_limit_ms = 0
full_score = 50
full_user_score = 0
test_score = 1
tests_to_accept = 1
min_tests_to_accept = 0
checker_real_time_limit_ms = 30000
short_name = "A"
long_name = ""
test_dir = "/var/lib/ejudge/000027/conf/../tests/A"
input_file = "input"
output_file = "output"
interactor_time_limit_ms = 0
test_pat = "%03d"
corr_pat = "%03d"
info_pat = "%03d.inf"
tgz_pat = "%03d.tgz"
tgzdir_pat = "%03d.dir"
max_vm_size = 0
max_data_size = 0
max_stack_size = 0
max_core_size = -1
max_file_size = -1
max_open_file_count = 0
max_process_count = 0

[tester]

name = "tst_dflt_1_1"
priority_adjustment = 0
arch = ""
memory_limit_type = "default"
secure_exec_type = "static"
no_core_dump = 1
enable_memory_limit_error = 1
kill_signal = "KILL"
clear_env = 1
time_limit_adjustment_ms = 0
error_file = "error"
start_env = "PATH=/usr/local/bin:/usr/bin:/bin"
start_env = "HOME"
>>
Thu Jun  7 04:40:23 2012:info:Copy: /var/lib/ejudge/super-run/var/exe/G000KVN2NNGF -> /var/run/ejudge/super-run/work/host_7453/000020
task_Start: execv(3): (null) /var/lib/ejudge/000027/conf/../tests/A/001 /var/run/ejudge/super-run/work/host_7453/000020 0</dev/null 1>>/var/run/ejudge/super-run/work/host_7453/checkout_1.txt 2>&1
Thu Jun  7 04:40:23 2012:reuse:error:task_Start: process not started: 109, execv() failed: 2, No such file or directory
Thu Jun  7 04:40:23 2012:info:reading file /var/run/ejudge/super-run/work/host_7453/000020
Thu Jun  7 04:40:23 2012:info:reading file /var/run/ejudge/super-run/work/host_7453/checkout_1.txt
Thu Jun  7 04:40:23 2012:error:generic_file_size: stat failed on `/var/run/ejudge/super-run/work/host_7453/messages'
Thu Jun  7 04:40:23 2012:info:Copy: /var/run/ejudge/super-run/work/host_7453/report -> /var/lib/ejudge/000027/var/run/000027/report/000020
Thu Jun  7 04:40:23 2012:info:writing file /var/lib/ejudge/000027/var/run/000027/status/in/7453_host_000020
Thu Jun  7 04:40:23 2012:info:Move: /var/lib/ejudge/000027/var/run/000027/status/in/7453_host_000020 -> /var/lib/ejudge/000027/var/run/000027/status/dir/000020
Thu Jun  7 04:40:23 2012:info:clear_directory: /var/run/ejudge/super-run/work/host_7453 cleared
Report:

Code: Select all

====== Test #1 =======
--- Output ---
1

--- Checker output ---


run: failed to start checker (null)

vk
Posts:165
Joined:24 August 2007, 13:44
Location:Ханты-Мансийск
Contact:

Re: ejudge-contests-cmd submit-run

Post by vk » 11 June 2012, 21:56

Если же выбрать standard_checker, то получится следующее:

ej-super-run.log:

Code: Select all

...
[problem]
...
input_file = "input"
output_file = "output"
standard_checker = "cmp_file"
interactor_time_limit_ms = 0
test_pat = "%03d"
corr_pat = "%03d"
info_pat = "%03d.inf"
tgz_pat = "%03d.tgz"
tgzdir_pat = "%03d.dir"
...
Thu Jun  7 05:29:08 2012:info:Copy: /var/lib/ejudge/super-run/var/exe/G000LVPU4G14 -> /var/run/ejudge/super-run/work/host_7453/000021
task_Start: execv(3): /usr/lib/ejudge/checkers/cmp_file /var/lib/ejudge/000027/conf/../tests/A/001 /var/run/ejudge/super-run/work/host_7453/000021 0</dev/null 1>>/var/run/ejudge/super-run/work/host_7453/checkout_1.txt 2>&1
Thu Jun  7 05:29:08 2012:info:process 26205 is exited with code 6
Thu Jun  7 05:29:08 2012:info:reading file /var/run/ejudge/super-run/work/host_7453/000021
Thu Jun  7 05:29:08 2012:info:reading file /var/run/ejudge/super-run/work/host_7453/checkout_1.txt
Thu Jun  7 05:29:08 2012:error:generic_file_size: stat failed on `/var/run/ejudge/super-run/work/host_7453/messages'
Thu Jun  7 05:29:08 2012:info:Copy: /var/run/ejudge/super-run/work/host_7453/report -> /var/lib/ejudge/000027/var/run/000027/report/000021
Thu Jun  7 05:29:08 2012:info:writing file /var/lib/ejudge/000027/var/run/000027/status/in/7453_host_000021
Thu Jun  7 05:29:08 2012:info:Move: /var/lib/ejudge/000027/var/run/000027/status/in/7453_host_000021 -> /var/lib/ejudge/000027/var/run/000027/status/dir/000021
Thu Jun  7 05:29:08 2012:info:clear_directory: /var/run/ejudge/super-run/work/host_7453 cleared
Report:

Code: Select all

====== Test #1 =======
--- Output ---
4

--- Checker output ---
Invalid number of arguments: 3 instead of 4

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: ejudge-contests-cmd submit-run

Post by cher » 11 June 2012, 23:41

Спасибо.

Задачи типа "select-one" неправильно обрабатываются при отсылке из командной строки. Будет исправлено в ближайшее время.

vk
Posts:165
Joined:24 August 2007, 13:44
Location:Ханты-Мансийск
Contact:

Re: ejudge-contests-cmd submit-run

Post by vk » 11 June 2012, 23:49

cher wrote:Спасибо.

Задачи типа "select-one" неправильно обрабатываются при отсылке из командной строки. Будет исправлено в ближайшее время.
Так и думал, спасибо Вам.

Post Reply