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

OOM for setting rlimit #11

Open
htfy96 opened this issue Jan 16, 2018 · 1 comment
Open

OOM for setting rlimit #11

htfy96 opened this issue Jan 16, 2018 · 1 comment
Labels

Comments

@htfy96
Copy link
Contributor

htfy96 commented Jan 16, 2018

Current rlimit implementation is:

rlimit.preHook() // set rlimit
cmd.start() // fork and exec
rlimit.postHook() // restore rlimit

Internally Golang will start a new coroutine waiting on this thread in line 2. However, it is possible that allocation in the creation of coroutine will lead to OOM since rlimit of current process is also set.

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

No branches or pull requests

1 participant