-
Notifications
You must be signed in to change notification settings - Fork 893
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
rustup panics with WSLv1 + glibc 2.31 #2245
Comments
Just did a rustup self update + rustup update in a WSL 1 instance, no issues.
So I don't think this is WSL1 per se causing the problem. Is it reproducible? |
Yes, this happens on two different PCs (running different versions of Windows 10). |
I have the same issue on Arch Linux on WSL1.
|
This affects Arch Linux installation on WSL. The solution is to downgrade glibc: pacman -U /var/cache/pacman/pkg/glibc-2.30-3-x86_64.pkg.tar.xz |
We also have some commentary from discord - its in sleep, with EINVAL from the syscall. "I'd guess that the EINVAL comes from secs going negative |
microsoft/WSL#4898 seems to be the underlying cause; glibc has now implemented nanosleep in terms of clock_nanosleep, which depends on an unsupported WSLv1 codepath https://sourceware.org/ml/libc-alpha/2019-11/msg00155.html |
Having slept on this I'm going to close it - we're panicing rather deep in a support library, not even in rustup code itself; the library code isn't faulty in any way, rather the runtime that we're on isn't POSIX and has fix in progress. Should they decide that they are unable to roll that fix out to older versions of windows, then it will be up to distros to make nanosleep work for the long term in WSL, as many other applications are also affected. |
Since I had existing Ubuntu installed with WSL 1. And after updating WSL 1 to WSL2 I had to do below fix. And it works now
|
Works For Me~ |
I accidentally discovered that I'd move to WSL2, but for some reason my desktop isn't eligible for the update yet 🤷♂️ |
Confirmed. Great tip!
|
@m42martin worked for me! Thanks |
@m42martin worked for me as well! Thank you so much |
@m42martin Seems to work perfectly, thank you so much! |
Btw, I was running into this with the rustup installer on WSL1, and the threads trick worked. But I just now did |
Worked for me too, great! |
paritytech/subport#27 (comment) For
|
@m42martin Solved my problem. Cool! |
This bug is long closed; I'm locking it so we don't spam everyone that has ever commented with further notifications. If:
|
Panics like:
Are caused by WSLv1 + glibc 2.31 which changed the implementation of nanosleep to depend on a different kernel codepath.
Verification:
If
--verbose
is not supported, then WSL v2 is not installed on the machine.If verbose is supported, the version of WSL being used for each WSL instance will be reported against the name of the instance.
Workarounds:
=====
Performing
rustup update
on WSL1 results in panic:info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2020-02-27, rust version 1.41.1 (f3e1a954d 2020-02-24)
Windows 10 Pro, 1909, OS Build 18363.657
Previous updates using rustup worked without problems
The text was updated successfully, but these errors were encountered: