-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
vm: node crashes if timeout is set and nofile limit is reached #8555
Labels
vm
Issues and PRs related to the vm subsystem.
Comments
Thanks for reporting this! I can reproduce the issue on Mac OS with Node 6.6.0 and on Ubuntu with current master 2a2ec9d. |
fhinkel
added a commit
to fhinkel/node
that referenced
this issue
Sep 20, 2016
Add an error message in watchdog if we abort because uv_loop_init fails. Fixes nodejs#8555
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a timeout is given to one of
vm
's methods, and the nofile limit is reached, the node process crashes. It can be easily reproduced (on both v4.5.0 and v.6.6.0) with this 2-liner:It seems that
node::Watchdog
tries to create a libuv thread to implement the timeout.uv_loop_init
fails due to the nofile limit, causing this assertion to fail. The correct behaviour would be to throw some meaningful exception.The text was updated successfully, but these errors were encountered: