Hexcles / Eevee

Eevee is a local OI(and perhaps ACM in the future) judger for Linux. It currently only works in X86 (32-bit).
BSD 2-Clause "Simplified" License
74 stars 14 forks source link

PROGRAM path CANNOT be absolute path #6

Open mingc00 opened 11 years ago

mingc00 commented 11 years ago

When program path is absolute path, an error occured.

$ ./caretaker /tmp/a.out
./caretaker: Error executing(forgot to link statically?).
fanzeyi commented 11 years ago

Confirmed this bug on Ubuntu 12.04.2 x86-64

cc @Hexcles @lx75249

Hexcles commented 11 years ago

Confirmed this bug.

Reason: I assumed the prgfileName is just the "filename" of the program, without path. And the following actions are based on this assumption: create tmpfile, move prgfile, run prgfile(after chroot, thus cannot include original path name). I'll try to fix this later.