Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Aug 26, 2024
1 parent f3035e9 commit c5ef64a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion judge/runguard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,9 @@ int main(int argc, char **argv)

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

default: /* become watchdog */
verbose("child pid = %d", child_pid);
Expand Down
6 changes: 4 additions & 2 deletions judge/testcase_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ runcheck "$RUN_SCRIPT" $RUNARGS \
--stderr=program.err --outmeta=program.meta -- \
"$PREFIX/$PROGRAM" 2>runguard.err

logmsg $LOG_INFO "PSTREE"
pstree -p >> $LOGFILE
logmsg $LOG_INFO "PS1"
ps -u domjudge >> $LOGFILE
logmsg $LOG_INFO "PS2"
ps -u domjudge-run-0 >> $LOGFILE

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

0 comments on commit c5ef64a

Please sign in to comment.