-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Compiler failed to spawn thread, "Resource temporarily unavailable" on hello-world; Ubuntu VM. #69140
Comments
Root cause seems to be #46345 |
Temporary Workaround: EDIT Nevermind, Bug still can happen - although less frequently - with nr of build threads = 1. |
@Datarecovery09 Your setup is likely slightly atypical as most Rust users don't see this error. Mind reporting back the results of these commands next time you see this error to shed some light on what might be causing this? ps -AL --no-headers | wc -l
cat /proc/meminfo
ulimit -Sa
ulimit -Ha
cat /proc/sys/kernel/threads-max
cat /proc/sys/vm/max_map_count
cat /proc/sys/kernel/pid_max
systemctl --version
systemctl status user-$UID.slice
cat /proc/sys/vm/overcommit_* Are there any ways you're aware of that your setup might be atypical? My best guess is low total RAM, which would lead to low If that is indeed the case, you could try the steps outlined here as well as |
@alecmocatta Thanks for the fast reply! Here is the information on the system: ps -AL --no-headers | wc -l cat /proc/meminfo
ulimit -Sa
ulimit -Ha
cat /proc/sys/kernel/threads-max cat /proc/sys/vm/max_map_count cat /proc/sys/kernel/pid_max systemctl --version
systemctl status user-$UID.slice
cat /proc/sys/vm/overcommit_*
I hope this is helpful. |
This definitely means that something is not working right with your system, since even bash fails to spawn another process. |
Echoing @jonas-schievink, something's definitely not right with your machine if bash's |
Hi, |
@Datarecovery09 did you solve this issue? I also got the same problem when I run some containers. I have a few of them running but now I can not start anymore new containers. And I think we are discussing about the same "host", perhaps Strato. :) |
(Closing since this is not a Rust issue) |
Hi @vioan , |
Seemingly random bug; cannot reproduce reliably. Tends to vanish for some time when I reboot the system, but always comes back after some time. CPU and RAM are barely used when it occurs.
System
Code
Meta
Bug occurs in nightly and stable versions.
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: