codejudge icon indicating copy to clipboard operation
codejudge copied to clipboard

Sandbox missing

Open ritesh-nitw opened this issue 12 years ago • 2 comments

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.

ritesh-nitw avatar Jan 17 '13 20:01 ritesh-nitw

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

ngsankha avatar Jan 17 '13 20:01 ngsankha

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

ulimit -v

devenbhooshan avatar Jul 30 '13 22:07 devenbhooshan