ngsankha / codejudge

host coding competitions anywhere, anytime
http://sankhs.com/codejudge
MIT License
90 stars 53 forks source link

Sandbox missing #15

Open ritesh-nitw opened 11 years ago

ritesh-nitw commented 11 years ago

Firstly, I must say your online judge project is amazing. I learned the concept. But when I ran your project, it crashed my system.

When I ran the following code:

#include<iostream>
using namespace std;
int main() {
  int test,i;
  while(test--) { //Didn't take the value of testcase.so infinite loop
    cin >> i;
    i = i * (i + 1) / 2;
    cout << i;
  }
  return 0;
}

The stage folder for the above running occupied 12.4 GB of file. Since the above code filled the out.txt file with i values.

So, how can I overcome it?

Also, how can I use sandbox with your project? I have no idea at all about integrating sandbox to your online judge.

Plus,What if I run a fork infinite time on your online judge.The Computer that runs compiler server will definitely crash due to infinite number of process created.So, try to overcome this issue too.

ngsankha commented 11 years ago

Thanks for filing the issue @ritesh-nitw. I have made minor edits to your report. I will take a look into it soon.

devenbhooshan commented 11 years ago

Can't we use ? This command can easily serve the purpose.

ulimit -v