-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/go: pthread_create failed: Resource temporarily unavailable #51678
Comments
This problem went away by itself after doing a fresh login to the bare metal server, so I closed the issue. The only thing that changed was that ansible altered some things on the server, but it isn't obvious why those changes could result in this issue. Any ideas what to look for or how to debug? |
This is much more likely to be a problem with your machine's setup than an issue with Go itself. You may want to look at some of the resources listed in https://github.com/golang/go/wiki/Questions. |
The error means that This is unlikely to be a problem with the Go language or standard library. It's much more likely to be a problem with your Go program--perhaps it has a memory leak--or a problem with other processes running on your system. |
The "Go program" in question is It is also not an issue with the physical machine per say. It can't be an issue with too little memory, too many running threads or too many running processes, because I have a tmux session running on the machine from yesterday where So it's some kind of environment setting that triggers the issue, but taking a diff of Lots of other people are using the affected machine, and no one else is reporting issues with it. I don't have issues running any other software in my fresh login session to the machine. The only thing suffering from the issue is |
Thanks, I didn't understand that it was I would start with simply running |
The
|
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Info provided, closed in error. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
This is the latest release. It reproduced on older 1.17.2 as well.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Clone any package with a go.mod file, and try to
go mod tidy
it. Eg.What did you expect to see?
No error.
What did you see instead?
runtime/cgo: pthread_create failed: Resource temporarily unavailable
failures. With a package with no dependencies, the failure rate is quite low. With a package with many dependencies, the failure rate is 100%.This suggests I'm close to a thread limit, but it doesn't seem like it:
My home directory and software installation is on a shared drive, and doing the exact same thing on other virtualised machines on the network is and has been fine for years (the issue isn't limited to
go mod tidy
, but alsogo build
etc). I'm encountering this issue for the first time on a new machine on the network, which is "bare metal", but has been set up the same way as the virtualised machines with ansible. So same version ofGCC
AFAICT.More problematic, other users on the same "bare metal" machine don't have the issue, suggesting there's some issue that is specific to my environment, but that should be the same on all machines.
I'm trying to figure out what the difference and cause is, but nothing obvious presents itself.
go mod tidy
OutputThe text was updated successfully, but these errors were encountered: