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

ICE - mir/interpret/validity.rs - nightly v1.45.0 #71786

Closed
TomArbuckle opened this issue May 2, 2020 · 3 comments
Closed

ICE - mir/interpret/validity.rs - nightly v1.45.0 #71786

TomArbuckle opened this issue May 2, 2020 · 3 comments

Comments

@TomArbuckle
Copy link

TomArbuckle commented May 2, 2020

ICE from mir/interpret/validity.rs compiling v0.5.4 of crate memoffset

I tried compilation with the rust release v1.45.0-nightly of 2020-04-30:

I expected to see normal compilation on several crates (e.g. memoffset v0.5.4)

Instead, this happened:

Compiling memoffset v0.5.4
Running /Users/tom/.cargo/bin/sccache rustc --crate-name build_script_build /Users/tom/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/memoffset-0.5.4/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cbitcode-in-rlib=no -C codegen-units=8 -C debug-assertions=on --cfg 'feature="default"' -C metadata=114e38b235f2da39 -C extra-filename=-114e38b235f2da39 --out-dir /Users/tom/Documents/GIT/veloren/target/debug/build/memoffset-114e38b235f2da39 -L dependency=/Users/tom/Documents/GIT/veloren/target/debug/deps --extern autocfg=/Users/tom/Documents/GIT/veloren/target/debug/deps/libautocfg-29877b643c723681.rlib --cap-lints allow
error: internal compiler error: src/librustc_mir/interpret/validity.rs:396: Unexpected error during ptr inbounds test: cannot read from foreign (extern) static DefId(0:34 ~ dispatch[bc51]::ffi[0]::[0]::_dispatch_queue_attr_concurrent[0])

thread 'rustc' panicked at 'Box', 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 (7ced01a 2020-04-30) running on x86_64-apple-darwin

note: compiler flags: -C opt-level=3 -C panic=abort -C bitcode-in-rlib=no -C codegen-units=8 -C debug-assertions=on --crate-type rlib

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

error: aborting due to previous error

error: could not compile dispatch.

Caused by:
process didn't exit successfully: /Users/tom/.cargo/bin/sccache rustc --crate-name dispatch /Users/tom/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/dispatch-0.1.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -Cbitcode-in-rlib=no -C codegen-units=8 -C debug-assertions=on -C metadata=4b5bbb8cce6afd8f -C extra-filename=-4b5bbb8cce6afd8f --out-dir /Users/tom/Documents/GIT/veloren/target/debug/deps -L dependency=/Users/tom/Documents/GIT/veloren/target/debug/deps --cap-lints allow (exit code: 101)

Meta

rustc --version --verbose:

Backtrace:
rustc +nightly --version --verbose
rustc 1.45.0-nightly (7ced01a 2020-04-30)
binary: rustc
commit-hash: 7ced01a
commit-date: 2020-04-30
host: x86_64-apple-darwin
release: 1.45.0-nightly
LLVM version: 9.0

Backtrace

Compiling proc-macro2 v0.4.30
Running /Users/tom/Documents/GIT/veloren/target/debug/build/proc-macro2-9ee32ee8bc49d212/build-script-builderror: internal compiler error: src/librustc_mir/interpret/validity.rs:396: Unexpected error during ptr inbounds test: cannot read from foreign (extern) static DefId(0:34 ~ dispatch[bc51]::ffi[0]::[0]::_dispatch_queue_attr_concurrent[0])

thread 'rustc' panicked at 'Box', src/librustc_errors/lib.rs:907:9
stack backtrace:
0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
1: core::fmt::write
2: std::io::Write::write_fmt
3: std::panicking::default_hook::{{closure}}
4: std::panicking::default_hook
5: rustc_driver::report_ice
6: std::panicking::rust_panic_with_hook
7: std::panicking::begin_panic
8: rustc_errors::HandlerInner::bug
9: rustc_errors::Handler::bug
10: rustc_middle::util::bug::opt_span_bug_fmt::{{closure}}
11: rustc_middle::ty::context::tls::with_opt::{{closure}}
12: rustc_middle::ty::context::tls::with_opt
13: rustc_middle::util::bug::opt_span_bug_fmt
14: rustc_middle::util::bug::bug_fmt
15: rustc_mir::interpret::validity::ValidityVisitor::check_safe_pointer
16: rustc_mir::interpret::validity::ValidityVisitor::try_visit_primitive
17: rustc_mir::interpret::validity::<impl rustc_mir::interpret::eval_context::InterpCx>::validate_operand_internal
18: rustc_mir::const_eval::eval_queries::const_eval_validated_provider
19: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::const_eval_validated>::compute
20: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
21: rustc_query_system::query::plumbing::get_query
22: rustc_mir::const_eval::eval_queries::const_eval_validated_provider
23: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::const_eval_validated>::compute
24: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
25: rustc_query_system::query::plumbing::get_query
26: rustc_middle::mir::interpret::queries::::const_eval_poly
27: <rustc_lint::BuiltinCombinedLateLintPass as rustc_lint::passes::LateLintPass>::check_item
28: rustc_hir::intravisit::Visitor::visit_nested_item
29: rustc_hir::intravisit::walk_item
30: rustc_hir::intravisit::Visitor::visit_nested_item
31: rustc_hir::intravisit::walk_crate
32: rustc_lint::late::late_lint_crate
33: rustc_data_structures::sync::join
34: <std::panic::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once
35: rustc_session::utils::::time
36: rustc_interface::passes::analysis
37: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::analysis>::compute
38: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
39: rustc_query_system::query::plumbing::get_query
40: rustc_middle::ty::context::tls::enter_global
41: rustc_interface::interface::run_compiler_in_existing_thread_pool
42: scoped_tls::ScopedKey::set
43: rustc_ast::attr::with_globals
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose 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 (7ced01a 2020-04-30) running on x86_64-apple-darwin

note: compiler flags: -C opt-level=3 -C panic=abort -C bitcode-in-rlib=no -C codegen-units=8 -C debug-assertions=on --crate-type rlib

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

query stack during panic:
#0 [const_eval_validated] const-evaluating + checking ffi::DISPATCH_QUEUE_CONCURRENT
#1 [const_eval_validated] const-evaluating + checking ffi::DISPATCH_QUEUE_CONCURRENT
#2 [analysis] running analysis passes on this crate
end of query stack
error: aborting due to previous error

error: could not compile dispatch.

Caused by:
process didn't exit successfully: /Users/tom/.cargo/bin/sccache rustc --crate-name dispatch /Users/tom/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/dispatch-0.1.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -Cbitcode-in-rlib=no -C codegen-units=8 -C debug-assertions=on -C metadata=4b5bbb8cce6afd8f -C extra-filename=-4b5bbb8cce6afd8f --out-dir /Users/tom/Documents/GIT/veloren/target/debug/deps -L dependency=/Users/tom/Documents/GIT/veloren/target/debug/deps --cap-lints allow (exit code: 101)
warning: build failed, waiting for other jobs to finish...
error: build failed

Full backtrace

Running /Users/tom/.cargo/bin/sccache rustc --crate-name humantime /Users/tom/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/humantime-1.3.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -Cbitcode-in-rlib=no -C codegen-units=8 -C debug-assertions=on -C metadata=0ceaac589f769152 -C extra-filename=-0ceaac589f769152 --out-dir /Users/tom/Documents/GIT/veloren/target/debug/deps -L dependency=/Users/tom/Documents/GIT/veloren/target/debug/deps --extern quick_error=/Users/tom/Documents/GIT/veloren/target/debug/deps/libquick_error-11aceb71f2e81c5f.rmeta --cap-lints allow
error: internal compiler error: src/librustc_mir/interpret/validity.rs:396: Unexpected error during ptr inbounds test: cannot read from foreign (extern) static DefId(0:34 ~ dispatch[bc51]::ffi[0]::[0]::_dispatch_queue_attr_concurrent[0])

thread 'rustc' panicked at 'Box', src/librustc_errors/lib.rs:907:9
stack backtrace:
0: 0x10d34a8cf - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha1596088acaf6a0c
1: 0x10d3846ee - core::fmt::write::h26bd57c1fd6e9c98
2: 0x10d33b857 - std::io::Write::write_fmt::h8325e59be4de2935
3: 0x10d34f3ea - std::panicking::default_hook::{{closure}}::h6237cd0c14a949d4
4: 0x10d34f12c - std::panicking::default_hook::h0a0c33fd16f99931
5: 0x110a97488 - rustc_driver::report_ice::h8e7b9f86509baa05
6: 0x10d34fb05 - std::panicking::rust_panic_with_hook::h8a6abbf97eb52e7a
7: 0x114b41cb6 - std::panicking::begin_panic::h15c058227e948296
8: 0x1147246f7 - rustc_errors::HandlerInner::bug::hb332c3c5946e8455
9: 0x1147230f7 - rustc_errors::Handler::bug::hd936ee9ba186a04d
10: 0x1141a70c9 - rustc_middle::util::bug::opt_span_bug_fmt::{{closure}}::h251847e83f45c8e5
11: 0x11419bf66 - rustc_middle::ty::context::tls::with_opt::{{closure}}::h0f1b49a9c53f3e74
12: 0x11419bf23 - rustc_middle::ty::context::tls::with_opt::hb2bae2b60f900c72
13: 0x1141a6fd8 - rustc_middle::util::bug::opt_span_bug_fmt::h01f9c8024a9d2c98
14: 0x114b2240b - rustc_middle::util::bug::bug_fmt::hf6c0a5ce9550516b
15: 0x113529c37 - rustc_mir::interpret::validity::ValidityVisitor::check_safe_pointer::h1dfff4288be69e01
16: 0x11352e10d - rustc_mir::interpret::validity::ValidityVisitor::try_visit_primitive::hac8cc6c3edd41c98
17: 0x11360eb9f - rustc_mir::interpret::validity::<impl rustc_mir::interpret::eval_context::InterpCx>::validate_operand_internal::hc02741bf8830a5d6
18: 0x1137690a8 - rustc_mir::const_eval::eval_queries::const_eval_validated_provider::h2ec1419671d4dc48
19: 0x11335b05e - rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::const_eval_validated>::compute::he22b7ea98fb45fc9
20: 0x1134dfe28 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::haae2350a6e7e4bbb
21: 0x11339dc55 - rustc_query_system::query::plumbing::get_query::hc6cae56358be5a3d
22: 0x11376879a - rustc_mir::const_eval::eval_queries::const_eval_validated_provider::h2ec1419671d4dc48
23: 0x1145b2325 - rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::const_eval_validated>::compute::he22b7ea98fb45fc9
24: 0x1143f0a28 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::h4aeee5250056e441
25: 0x11455ee8e - rustc_query_system::query::plumbing::get_query::h4f98aa6a59869506
26: 0x1142c3531 - rustc_middle::mir::interpret::queries::::const_eval_poly::h9ca07dceb5c5f361
27: 0x113d7074e - <rustc_lint::BuiltinCombinedLateLintPass as rustc_lint::passes::LateLintPass>::check_item::heda5ecdd5aef8ba7
28: 0x110d68b13 - rustc_hir::intravisit::Visitor::visit_nested_item::h742d6d81aad827ba
29: 0x110d42a5d - rustc_hir::intravisit::walk_item::he0e729d916ded1dd
30: 0x110d68b1e - rustc_hir::intravisit::Visitor::visit_nested_item::h742d6d81aad827ba
31: 0x110d3cded - rustc_hir::intravisit::walk_crate::hdcced3e6b3ff2394
32: 0x110d55d34 - rustc_lint::late::late_lint_crate::ha9a80acb3d2a607c
33: 0x110d1b609 - rustc_data_structures::sync::join::h2cefcc11619072ca
34: 0x110d54ceb - <std::panic::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once::hdccc64468ca574b2
35: 0x110d17ebb - rustc_session::utils::::time::h057daca6c9582c0b
36: 0x110dd7dee - rustc_interface::passes::analysis::hd1dd5f989ea087b1
37: 0x110aabcfa - rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::analysis>::compute::h230cf44451718412
38: 0x110be8059 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::h9b93d5b804eeed42
39: 0x110aadd18 - rustc_query_system::query::plumbing::get_query::he2c811d369f88ac9
40: 0x110c1ed7c - rustc_middle::ty::context::tls::enter_global::h22e50eea9eb27eda
41: 0x110bf1baa - rustc_interface::interface::run_compiler_in_existing_thread_pool::h6daddf6cf7c06e21
42: 0x110a9f659 - scoped_tls::ScopedKey::set::h270ce0f08a2fa46d
43: 0x110a9cee5 - rustc_ast::attr::with_globals::had79790b041a9db9
44: 0x110aa49df - std::sys_common::backtrace::__rust_begin_short_backtrace::h6d68f3c3e2c63aea
45: 0x110bf37cc - core::ops::function::FnOnce::call_once{{vtable.shim}}::h7972a3ed53335c24
46: 0x10d35e14d - std::sys::unix::thread::Thread::new::thread_start::h7d6a16c1ae0a12b4
47: 0x7fff6ea96109 - _ZL12preoptimized

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 (7ced01a 2020-04-30) running on x86_64-apple-darwin

note: compiler flags: -C opt-level=3 -C panic=abort -C bitcode-in-rlib=no -C codegen-units=8 -C debug-assertions=on --crate-type rlib

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

query stack during panic:
#0 [const_eval_validated] const-evaluating + checking ffi::DISPATCH_QUEUE_CONCURRENT
#1 [const_eval_validated] const-evaluating + checking ffi::DISPATCH_QUEUE_CONCURRENT
#2 [analysis] running analysis passes on this crate
end of query stack
error: aborting due to previous error

error: could not compile dispatch.

Caused by:
process didn't exit successfully: /Users/tom/.cargo/bin/sccache rustc --crate-name dispatch /Users/tom/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/dispatch-0.1.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -Cbitcode-in-rlib=no -C codegen-units=8 -C debug-assertions=on -C metadata=4b5bbb8cce6afd8f -C extra-filename=-4b5bbb8cce6afd8f --out-dir /Users/tom/Documents/GIT/veloren/target/debug/deps -L dependency=/Users/tom/Documents/GIT/veloren/target/debug/deps --cap-lints allow (exit code: 101)
warning: build failed, waiting for other jobs to finish...
error: build failed

@TomArbuckle TomArbuckle changed the title ICE - mir/interpret/validity.rs - memoffset v0.5.4 with nightly ICE - mir/interpret/validity.rs - nightly v1.45.0 May 2, 2020
@lcnr
Copy link
Contributor

lcnr commented May 2, 2020

probably caused by #71140 and will be fixed by #71751 🤔 cc @oli-obk

@oli-obk
Copy link
Contributor

oli-obk commented May 2, 2020

Yes, this is a duplicate of #71612

@oli-obk oli-obk closed this as completed May 2, 2020
@TomArbuckle
Copy link
Author

Wow. That was fast. Thanks for looking into this guys. Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants