-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Low nproc ulimit causes compiler to crash #76452
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
Comments
Solved. Problem was a low nproc ulimit (100). Either raising the limit or compiling with --j1 to remove parallelism both fix the issue. I'll leave the issue for someone else to close - I'm not sure what ulimit rustc expects to support (in parallel) without panicking. If 100 is unsupported, feel free to close the issue. |
AFAIK, it shouldn't panic, however low ulimit is. It should exit cleanly with some non-zero exit code and a helpful message. So the bug is in its place. |
Assigning |
nm I just had to drop ulimit -u even lower. 🤷 Get "error during codegen phase." |
Yea I believe its related to the size of the project vs the number of threads |
System
edit: I believe the core problem
CentOS Linux release 7.7.1908 (Core)
Code
Fresh project, failing to build with dependency
mini-redis = "0.2.0"
edit: this happens on any medium sized project.
I've tried this fix from #69140 to no avail
Meta
rustc --version --verbose
:Error output
Full error log (there's a lot of these errors https://pastebin.com/raw/j884m0Y9)
Backtrace
Full backtrace https://pastebin.com/raw/nAKJNY44
The text was updated successfully, but these errors were encountered: