Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Sandbox missing #15

Open
ritesh-nitw opened this issue Jan 17, 2013 · 2 comments
Open

Sandbox missing #15

ritesh-nitw opened this issue Jan 17, 2013 · 2 comments
Labels

Comments

@ritesh-nitw
Copy link

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
Copy link
Owner

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

@devenbhooshan
Copy link
Contributor

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

ulimit -v

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants