Skip to content
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

Unexpected error during ptr inbounds test: cannot read from foreign (extern) static #71887

Closed
kvark opened this issue May 4, 2020 · 1 comment
Labels
C-bug Category: This is a bug.

Comments

@kvark
Copy link
Contributor

kvark commented May 4, 2020

Building gfx-rs on macOS with current nightly errors out:

error: internal compiler error: src/librustc_mir/interpret/validity.rs:425: Unexpected error during ptr inbounds test: cannot read from foreign (extern) static DefId(0:40 ~ dispatch[5c52]::ffi[0]::[0]::_dispatch_queue_attr_concurrent[0])

thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:907:9

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.45.0-nightly (65b448273 2020-05-03) running on x86_64-apple-darwin

note: compiler flags: -C debuginfo=2 --crate-type lib

note: some of the compiler flags provided by cargo are hidden

Repro steps:

git clone https://github.com/gfx-rs/gfx
cd gfx
rustup override set nightly
make all

TODO: add a backtrace

@kvark kvark added the C-bug Category: This is a bug. label May 4, 2020
@jonas-schievink
Copy link
Contributor

Duplicate of #71612, should be fixed in the next nightly

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.
Projects
None yet
Development

No branches or pull requests

2 participants