-
Notifications
You must be signed in to change notification settings - Fork 12.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
Trouble with pipe on OS X #8904
Comments
Can you try running |
Yeah I've been running into this too. The standard workaround is to increase the limit on the number of file descriptors, but I would prefer to put in a solution that didn't require that. Issue #7772 is most likely the issue that @alexcrichton was thinking of. (Its closed, but I'm not quite clear on whether it was closed because the bots had their file limits increased, or if the increase in the limits is masking the fact that this bug persists.)_ |
(Also, I've been thinking it would be nice to change the |
Ah yes, that was indeed the issue I was thinking of. It appears that the I think the fix here is to call |
Here's how I raised the limits based on http://superuser.com/questions/302754/increase-the-maximum-number-of-open-file-descriptors-in-snow-leopard echo 'kern.maxfiles=20480' | sudo tee -a /etc/sysctl.conf
echo -e 'limit maxfiles 8192 20480\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf
echo 'ulimit -n 4096' | sudo tee -a /etc/profile I had to reboot for the settings to take effect. |
Also see the section in the wiki. |
We already do this for libstd tests automatically, and compiletest runs into the same problems where when forking lots of processes lots of file descriptors are created. On OSX we can use specific syscalls to raise the limits, in this situation, though. Closes #8904
Today,
make check
fails like so:Running that command alone gives the error:
The code failing seems to be here in
os.rs
:It looks like
pipe
is failing here for some reason.The text was updated successfully, but these errors were encountered: