Skip to content

Random STATUS_ACCESS_VIOLATION on aarch64-pc-windows-msvc #118462

Closed
@DervexDev

Description

@DervexDev

Problem

Note

This issue only occurs on Windows ARM! (Tested on macOS Sonoma and Ubuntu ARM)

After using cargo build command random dependencies throw STATUS_ACCESS_VIOLATION error. I'm 100% sure that dependencies I'm trying to build are valid because at every compile attempt different dependency fails e.g. toml_edit, crossbeam-channel, actix-router.

Sometimes none of imported dependencies fail and out of 5 attempts I was able to build project succesfully twice (I deleted target folder after each attempt).

Example output:

   ...
   Compiling walkdir v2.4.0
   Compiling actix-router v0.5.1
   Compiling cookie v0.16.2
error: could not compile `actix-router` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name actix_router --edition=2018 C:\Users\dervex\.cargo\registry\src\index.crates.io-6f17d22bba15001f\actix-router-0.5.1\src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=175 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"http\"" -C metadata=2b7cf52e726e9f7c -C extra-filename=-2b7cf52e726e9f7c --out-dir C:\Users\dervex\Desktop\argon\target\debug\deps -L dependency=C:\Users\dervex\Desktop\argon\target\debug\deps --extern bytestring=C:\Users\dervex\Desktop\argon\target\debug\deps\libbytestring-299f3658ce02b902.rmeta --extern http=C:\Users\dervex\Desktop\argon\target\debug\deps\libhttp-43d74e08691fef63.rmeta --extern regex=C:\Users\dervex\Desktop\argon\target\debug\deps\libregex-91e5fd69638fe8f5.rmeta --extern serde=C:\Users\dervex\Desktop\argon\target\debug\deps\libserde-752549031e501119.rmeta --extern tracing=C:\Users\dervex\Desktop\argon\target\debug\deps\libtracing-dacc595cf0b6c699.rmeta --cap-lints allow` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
warning: build failed, waiting for other jobs to finish...

Steps

  1. Add some dependencies (in my case 23)
  2. Use cargo build command

Possible Solution(s)

Improve build scripts on Windows ARM?

Notes

Important

I'm running virtualized Windows 11 using Parallels 19
Host Machine: M2 Pro Macbook
Host OS: macOS Sonoma

Version

cargo 1.74.0 (ecb9851af 2023-10-18)
release: 1.74.0
commit-hash: ecb9851afd3095e988daaa35a48bc7f3cb748e04
commit-date: 2023-10-18
host: aarch64-pc-windows-msvc
libgit2: 1.7.1 (sys:0.18.0 vendored)
libcurl: 8.4.0-DEV (sys:0.4.68+curl-8.4.0 vendored ssl:Schannel)
os: Windows 10.0.22621 (Windows 11 Professional) [64-bit]

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.O-AArch64Armv8-A or later processors in AArch64 modeO-windowsOperating system: WindowsP-highHigh priorityregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions