Premature exits when downloading toolchain components on Windows, error code 0xC0000005 `STATUS_ACCESS_VIOLATION`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
I'm currently not able to use either Cargo and Rustc for developing my project. I have Rustup 1.27.1 installed on my local machine. I tried to set environment variables and reinstalling it, and restarting the machine, but didn't find the solutions at all.
The error message was:
error: rustup could not choose a version of rustc to run, because one wasn't specified explicitly, and no default is configured.
Sharing a screenshot of my CLI as a proof. Please help me to resolve this issue ASAP.
Steps
- Download a installation version (rustup-init.exe) from the official Rust website
- Run the setup application
- Verify the installation (rustc --version)
Possible Solution(s)
No response
Notes
No response
Rustup version
1.27.1
Installed toolchains
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\AzureSphere\.rustup
OS version
Windows 11 24H2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the report with rustup-init.exe on Windows 11 24H2, then verify the displayed error and the reported Rustup 1.27.1 state using rustc --version and Cargo. Done means the toolchain installation completes without the reported failure and both rustc and Cargo can be used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100