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
Rust: OS can't spawn a new worker thread #674
Comments
If I had to guess, this probably has something to do with permissions of your container. |
I'm using an unprivileged user in container. But I've tried to build image as |
Running as root inside a container does not make it privileged. To make a container privileged, you'll need to start it with |
I've just meant that I'm using the non-root user by default that may lead for some access problems but using root user didn't change anything. I thought smth went wrong on extension install as there is no such directory as |
That is the source location on my build machine. You should not expect to find it on yours. |
oh, well, showing paths that way in an error is a little misleading :) so, that means I've just have some permission problems inside the container that doesn't allow extension to create threads? |
I don't know. I am not a Docker expert myself. I suggest starting with unconfined container, if that works, the problem is likely in container permissions. If not, it must be something specific to WSL, of which I know even less. |
Any updates? |
Hello, I've done some more testing recently. Seems like an issue with the alpine image itself, as it works out of the box with other version of rust docker image (base rust and slim). So, it is more about #391, although I've used glibc compatibility layer. While testing, I've got various kinds of errors and the error about permission is from my last attempt while trying to make debugger run. As I barely know why it happens and a lack of system knowledge I cannot provide any additional info or idea how to fix it. Closing issue in favor of #391 as more general solution for the Alpine. |
OS: Windows 10 + WSL 2 + Docker + Alpine Linux (with glibc support)
VSCode version: 1.65.2
CodeLLDB version: 1.7.0
Compiler: rustc
Debuggee: just ordinary binary crate
On debugger run I get a panic
thread '<unnamed>' panicked at 'OS can't spawn a new worker thread: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }', /opt/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.16.1/src/runtime/blocking/pool.
Inside the container there is no such directory as/opt/rust
Verbose log
The text was updated successfully, but these errors were encountered: