Skip to content

STATUS_ACCESS_VIOLATION when building rulibc #77907

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

Open
lygstate opened this issue Oct 13, 2020 · 2 comments
Open

STATUS_ACCESS_VIOLATION when building rulibc #77907

lygstate opened this issue Oct 13, 2020 · 2 comments
Labels
C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows-msvc Toolchain: MSVC, Operating system: Windows T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@lygstate
Copy link
Contributor

lygstate commented Oct 13, 2020

I tried this code:
on win10 2004 + vs 2019 build tools

git clone https://github.com/rulibc/rulibc
set RUST_BACKTRACE=1
cargo build --release

See build ok.

build failed,

rustc --version --verbose:

C:\work\study\base-library\rulibc>rustc --version --verbose
rustc 1.48.0-nightly (ef663a8a4 2020-09-30)
binary: rustc
commit-hash: ef663a8a48ea6b98b43cbfaefd99316b36b16825
commit-date: 2020-09-30
host: x86_64-pc-windows-msvc
release: 1.48.0-nightly
LLVM version: 11.0

Backtrace
 Caused by:   process didn't exit successfully: `rustc --crate-name rulibc --edition=2018 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C panic=abort -C embed-bitcode=no --cfg "feature=\"default\"" -C metadata=5967aed2c10982d9 -C extra-filename=-5967aed2c10982d9 --out-dir C:\work\study\base-library\rulibc\target\release\deps -L dependency=C:\work\study\base-library\rulibc\target\release\deps --extern cbitset=C:\work\study\base-library\rulibc\target\release\deps\libcbitset-c924c5d3573a893b.rlib --extern core_io=C:\work\study\base-library\rulibc\target\release\deps\libcore_io-f832e4446785b4c4.rlib --extern goblin=C:\work\study\base-library\rulibc\target\release\deps\libgoblin-f3a7716691d98aab.rlib --extern lazy_static=C:\work\study\base-library\rulibc\target\release\deps\liblazy_static-7ee40812500ba9f1.rlib --extern memchr=C:\work\study\base-library\rulibc\target\release\deps\libmemchr-5bc3840876446215.rlib  --extern memoffset=C:\work\study\base-library\rulibc\target\release\deps\libmemoffset-9c438697230b91ca.rlib --extern platform_types=C:\work\study\base-library\rulibc\target\release\deps\libplatform_types-fecf58ceffdd7f97.rlib --extern posix_regex=C:\work\study\base-library\rulibc\target\release\deps\libposix_regex-6ca9bef1c0f13c94.rlib --extern rand=C:\work\study\base-library\rulibc\target\release\deps\librand-e670545f9a60518c.rlib -L native=C:\work\study\base-library\rulibc\target\release\build\rulibc-ef6775a2f8ff56c6\out -l static=rulibc_c -l static=rulibc_c` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

Do not know how to retrieve back trace.
I have already set RUST_BACKTRACE=1

@lygstate lygstate added the C-bug Category: This is a bug. label Oct 13, 2020
@jyn514 jyn514 added I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 13, 2020
@jyn514 jyn514 changed the title ICE when building rulibc STATUS_ACCESS_VIOLATION when building rulibc Oct 13, 2020
@jyn514 jyn514 added O-windows Operating system: Windows E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example labels Oct 13, 2020
@mati865
Copy link
Contributor

mati865 commented Oct 13, 2020

@rustbot modify labels: -O-windows +O-windows-msvc

Code is incompatible with windows-gnu.

@rustbot rustbot added O-windows-msvc Toolchain: MSVC, Operating system: Windows and removed O-windows Operating system: Windows labels Oct 13, 2020
@hussein-aitlahcen
Copy link

Hi folks,

Experiencing the same kind of issue while building a windows kernel driver using msvc.
I can't share the code, but here is a screenshot of the call stack of rustc when failing.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows-msvc Toolchain: MSVC, Operating system: Windows T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants