Skip to content
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

Memory limit violation throws fatal signal 11 #83

Closed
horvathgyozo opened this issue Jan 29, 2020 · 1 comment
Closed

Memory limit violation throws fatal signal 11 #83

horvathgyozo opened this issue Jan 29, 2020 · 1 comment

Comments

@horvathgyozo
Copy link

I have the following cpp program, which basically allocates memory all the time.

#include<bits/stdc++.h> 
  
int main() 
{ 
    while (true) 
      int *a = new int;  // allocating  
}

And running the following command gives Caught fatal signal 11:

isolate --init
g++ main.cpp -o main.bin
isolate --run -m 1000 -- /bin/bash ./main.bin

Tried in native environment, in Docker, both on Ubuntu.

Am I doing something wrong, or isolate has some problem?

@horvathgyozo
Copy link
Author

OK, from this in #5 I can see that there is no Out-of-memory message, just signal.
So I close this.

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

No branches or pull requests

1 participant