← Back to topics
Topic

Hacking

a
adminModerator
I know that it might be interesting to try to hack z-trening grader. However any attempt to do so will result in a ban or deleted account.

Recently, someone discovered a bug in the grader, when the user program forks infinitely the grader forgets to kill all the children and eventually runs out of resources. This is now fixed, however the way the bug was discovered was not good.

i.e. someone sent the code that looks like this
while (1) for();


If you really think there is a possible bug in the grader, please send an email to me. And if you really really really want to try to send a program that might discover a bug and kill the grader servers then first email me and tell me what you plan to send.

a
adminModerator
the code should be

while(1) fork();
a
adminModerator
Also, use the link on the left side that says "Report a Bug"
i
iggy91
Well... fork() is, as much as I know, function for duplicating the parent process. It creates the new one exactly the same as process from it was calledjust with different PID.

How it can be possible to call Linux shell function from C++ program?

P.S. Sorry for dumb question, but Linux is not one of my stroger sides... :S
a
adminModerator
fork() is a system call, like printf() or scanf().