-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGABORT reported as signal 11 #141
Comments
This is a known bug (feature?) of the sandbox. The only two signals that may exit the process are 11 and possibly SIGFPE (IIRC). Is this a major issue? Or could it remain documented behaviour? The cause for this is that the sandboxed process runs inside a PID namespace with PID 1. PID 1 traditionally cannot receive any signals. The code for abort() sends a SIGABRT to the process (which is ignored because it is PID 1), and then abort() executes an undefined instruction which causes the signal 11. |
Well, the question reduces to "Do we want the contestants to know what signal killed their program, or not?" If we do, then it's a major issue, otherwise we shoud change that "Execution killed with signal 11" with a "Execution killed with some signal" or something like that... |
I've no strong opinion here. I'm happy for others to weigh in. It's been suggested in the past giving more than "program crashed" could allow competitors to easily reverse engineer the test data. |
Yes, that was because mo-box let solutions be "killed" with an arbitrary 32bit integer (#58, by the way i think this should be closed now) |
After thinking a bit, i think this should be the best compromise between giving useful information to contestants and making most cheating attempts unfeasible:
We could also treat differently SIGABORT, but I don't see any reason for a signal other than FPE, KILL, SEGV or ABORT to ever appear in a contest environement, so we could merge them. |
Il 06/04/2013 00:03, veluca93 ha scritto:
Personally I prefer avoid interpreting: it is reasonable to give a Giovanni.Giovanni Mascellani [email protected] Web: http://poisson.phc.unipi.it/~mascellani |
Moved to cms-dev/isolate#9. |
While testing this solution
the sandbox reports "Execution killed with signal 11.", which is not the case.
The text was updated successfully, but these errors were encountered: