Skip to content

STATUS_ACCESS_VIOLATION happens frequently with rust 1.83 under windows x64 environment #134119

Closed
@maple19out

Description

@maple19out

I tried this code:

<code>
fn main() {
    println!("hihi");
}

I expected to see this happen:
Just a normal "hihi" string printed out on my console

Instead, this happened: explanation

PS C:\Users\maple\Desktop\etc\dev\temp> cargo run
   Compiling temp v0.1.0 (C:\Users\maple\Desktop\etc\dev\temp)
error: could not compile `temp` (bin "temp")

Caused by:
  process didn't exit successfully: `C:\Users\maple\.rustup\toolchains\1.83-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name temp --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=142 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" -C metadata=d54b924dfe4288ad --out-dir C:\Users\maple\Desktop\etc\dev\temp\target\debug\deps -C incremental=C:\Users\maple\Desktop\etc\dev\temp\target\debug\incremental -L dependency=C:\Users\maple\Desktop\etc\dev\temp\target\debug\deps` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

Meta

rustc --version --verbose:

<version>
PS C:\Users\maple\Desktop\etc\dev\temp> rustc --version --verbose
rustc 1.83.0 (90b35a623 2024-11-26)
binary: rustc
commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf
commit-date: 2024-11-26
host: x86_64-pc-windows-msvc
release: 1.83.0
LLVM version: 19.1.1
Backtrace

Hi, I used rust 1.81 before and upgraded to 1.83 today. When I write any codes and execute through 'cargo run' command, error happens frequently and randomly. I tried this on wsl, but it was fine.

I guess there might be some bug with recently rust compiler (version 1.83) under windows / x86_64 environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions