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

Possible FD leakage in OS X #87

Open
camlspotter opened this issue Mar 8, 2017 · 7 comments
Open

Possible FD leakage in OS X #87

camlspotter opened this issue Mar 8, 2017 · 7 comments

Comments

@camlspotter
Copy link
Contributor

I got the following error when I run omake -P and recompile many things in OS X:

omake: "omake_shell_spawn_posix/open" failed: Too many open files
@camlspotter
Copy link
Contributor Author

camlspotter commented Mar 8, 2017

Tried omake.0.10.2 + the patch of #86 . #86 is not likely the cause of this issue since it does not change any file I/O.

@camlspotter
Copy link
Contributor Author

I see lots of fds for omake....divert left open in the Activity Monitor.

@gerdstolpmann
Copy link
Collaborator

Tried to reproduce this, but no success. All descriptors were closed (I was watching with dtruss while triggering recompilations).

Does increasing the max number of descriptors help? On mac the limit is only 256 by default (ulimit -n).

@camlspotter
Copy link
Contributor Author

omake.0.9.8.6-0.rc1 compiled with the same OCaml 4.04.0 in the same OS X never leaks FDs for omake.*.divert files. I guess this was introduced in 0.10.x.

@gerdstolpmann
Copy link
Collaborator

This is possible. I'll double-check the code.

@camlspotter
Copy link
Contributor Author

Ping. If there is no immediate plan to fix, I have to roll all my omake uses back to 0.9.8.6-0.rc1...

@gerdstolpmann
Copy link
Collaborator

I cannot fix something without being able to reproduce it.

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

2 participants