Skip to content

Commit c5ef64a

Browse files
committed
more debug
1 parent f3035e9 commit c5ef64a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

judge/runguard.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,9 @@ int main(int argc, char **argv)
13531353

13541354
/* And execute child command. */
13551355
execvp(cmdname,cmdargs);
1356-
error(errno,"cannot start `%s'",cmdname);
1356+
struct rlimit limit;
1357+
getrlimit(RLIMIT_NPROC, &limit);
1358+
error(errno,"cannot start `%s', limit: %ld/%ld | ",cmdname, limit.rlim_cur, limit.rlim_max);
13571359

13581360
default: /* become watchdog */
13591361
verbose("child pid = %d", child_pid);

judge/testcase_run.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,10 @@ runcheck "$RUN_SCRIPT" $RUNARGS \
212212
--stderr=program.err --outmeta=program.meta -- \
213213
"$PREFIX/$PROGRAM" 2>runguard.err
214214

215-
logmsg $LOG_INFO "PSTREE"
216-
pstree -p >> $LOGFILE
215+
logmsg $LOG_INFO "PS1"
216+
ps -u domjudge >> $LOGFILE
217+
logmsg $LOG_INFO "PS2"
218+
ps -u domjudge-run-0 >> $LOGFILE
217219

218220
if [ "$CREATE_WRITABLE_TEMP_DIR" ]; then
219221
# Revoke access to the TMPDIR as security measure

0 commit comments

Comments
 (0)