rust-lang / rust-lang/rustup

Premature exits when downloading toolchain components on Windows, error code 0xC0000005 `STATUS_ACCESS_VIOLATION`

Open
#4,173 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug O-windows
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Verification
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.

Image

Steps
  1. Download a installation version (rustup-init.exe) from the official Rust website
  2. Run the setup application
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.