DOMjudge / domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
709 stars 248 forks source link

output overflow should not trigger 'RUN-ERROR' #89

Closed eldering closed 10 years ago

eldering commented 10 years ago

When a team solution overflows the output limit, it will be terminated with a RUN-ERROR. It would be better if this just produces a wrong-answer or maybe timelimit.

Proposed solution: when output limit is N, filter with 'head -n N+1' and test and report output limit exceeded in jury interface.

eldering commented 10 years ago

Imported from trac issue 89. Created by eldering on 2012-01-21T12:18:31, last modified: 2012-04-07T23:13:19

eldering commented 10 years ago

Trac comment by eldering on 2012-01-21 22:17:29:

Output redirection currently occurs in the run script that is run within the runguard chroot environment; head need not be available there.

A possible solution is to redirect the submission std{out,err} through runguard and let runguard filter these a la head. Runguard is passed the filelimits anyways.

eldering commented 10 years ago

Trac comment by eldering on 2012-04-07 23:13:19:

Fixed in master up to [49c07d0558e1c72fba5649cea570c50015779e1a].

See also https://secure.a-eskwadraat.nl/archive/domjudge-devel/2012-April/000871.html for implementation details.