Skip to content

Compiler Panic on ARM - internal compiler error: unexpected panic #55483

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

Closed
bjbemister19 opened this issue Oct 29, 2018 · 3 comments
Closed

Compiler Panic on ARM - internal compiler error: unexpected panic #55483

bjbemister19 opened this issue Oct 29, 2018 · 3 comments
Labels
A-HIR Area: The high-level intermediate representation (HIR) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@bjbemister19
Copy link

I encountered this issue when attempting to compile our project on a Raspberry Pi running Raspbian, Target 'armv7-unknown-linux-gnueabihf'.

The project successfully compiles on MacOS Mojave which is targeting x86_64-apple-darwin, so I know that this is a platform specific issue.

Unfortunately I am fairly new to Rust, so I do not have the slightest idea what most of this means. But I would be willing to provide any other information that you request related to this bug.

Meta

Rust Version:
rustc 1.31.0-nightly (96064eb 2018-10-28)
binary: rustc
commit-hash: 96064eb
commit-date: 2018-10-28
host: armv7-unknown-linux-gnueabihf
release: 1.31.0-nightly
LLVM version: 8.0

Backtrace:
pi@raspberrypi:/testjigcode/jig/mysa-seveco-keyclient $ export RUST_BACKTRACE=1
pi@raspberrypi:
/testjigcode/jig/mysa-seveco-keyclient $
pi@raspberrypi:/testjigcode/jig/mysa-seveco-keyclient $
pi@raspberrypi:
/testjigcode/jig/mysa-seveco-keyclient $ cargo build
Compiling pyo3 v0.4.1
Compiling hyper v0.12.13
thread 'main' panicked at 'librustc/hir/map/hir_id_validator.rs:31:
HirIdValidator: The recorded owner of path segment super (id=36924) is ::server[0]::conn[0]::{{?}}[34] instead of ::server[0]::conn[0]::{{?}}[34]::{{?}}[0]
HirIdValidator: Same HirId ::server[0]::conn[0]::{{?}}[34]::{{?}}[0]/2 assigned for nodes path segment super (id=36924) and path segment spawn_all (id=89958)', librustc/util/bug.rs:47:26
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::_print
at libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at libstd/sys_common/backtrace.rs:59
at libstd/panicking.rs:211
3: std::panicking::default_hook
at libstd/panicking.rs:227
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
at libstd/panicking.rs:480
6: std::panicking::begin_panic
7: rustc::util::bug::opt_span_bug_fmt::{{closure}}
8: rustc::ty::context::tls::with_opt::{{closure}}
9: rustc::ty::context::tls::with_context_opt
10: rustc::ty::context::tls::with_opt
11: rustc::util::bug::opt_span_bug_fmt
12: rustc::util::bug::bug_fmt
13: rustc::hir::map::hir_id_validator::check_crate
14: rustc::hir::map::map_crate
15: rustc::util::common::time
16: rustc_driver::driver::compile_input
17: rustc_driver::run_compiler_with_pool
18: <scoped_tls::ScopedKey>::set
19: rustc_driver::run_compiler
20: <scoped_tls::ScopedKey>::set
21: syntax::with_globals
22: __rust_maybe_catch_panic
at libpanic_unwind/lib.rs:102
23: rustc_driver::run
24: rustc_driver::main
25: std::rt::lang_start::{{closure}}
26: std::panicking::try::do_call
at libstd/rt.rs:59
at libstd/panicking.rs:310
27: __rust_maybe_catch_panic
at libpanic_unwind/lib.rs:102
28: std::rt::lang_start_internal
at libstd/panicking.rs:289
at libstd/panic.rs:392
at libstd/rt.rs:58
29: main
30: __libc_start_main
query stack during panic:
end of query stack

error: internal compiler error: unexpected panic

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.31.0-nightly (96064eb 2018-10-28) running on armv7-unknown-linux-gnueabihf

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

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

error: Could not compile hyper.
warning: build failed, waiting for other jobs to finish...
error: internal compiler error: librustc/traits/specialize/mod.rs:104: When translating substitutions for specialization, the expected specialization failed to hold

thread 'main' panicked at 'Box', librustc_errors/lib.rs:600:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::_print
at libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at libstd/sys_common/backtrace.rs:59
at libstd/panicking.rs:211
3: std::panicking::default_hook
at libstd/panicking.rs:227
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
at libstd/panicking.rs:480
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::traits::specialize::translate_substs::{{closure}}
15: rustc::traits::specialize::translate_substs
16: rustc::ty::context::tls::with_related_context
17: rustc::infer::InferCtxtBuilder::enter
18: rustc::traits::specialize::find_associated_item
19: rustc::ty::instance::Instance::resolve
20: rustc_mir::lints::check
21: rustc::ty::context::tls::with_related_context
22: rustc::infer::InferCtxtBuilder::enter
23: rustc_mir::build::mir_build
24: rustc_mir::transform::mir_built
25: rustc::ty::query::__query_compute::mir_built
26: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_built<'tcx>>::compute
27: rustc::dep_graph::graph::DepGraph::with_task_impl
28: rustc::ty::context::tls::with_related_context
29: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job
30: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query
31: rustc::ty::query::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::mir_built
32: rustc_mir::transform::check_unsafety::unsafety_check_result
33: rustc::ty::query::__query_compute::unsafety_check_result
34: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::unsafety_check_result<'tcx>>::compute
35: rustc::dep_graph::graph::DepGraph::with_task_impl
36: rustc::ty::context::tls::with_related_context
37: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job
38: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query
39: rustc::ty::query::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::unsafety_check_result
40: rustc_mir::transform::mir_const
41: rustc::ty::query::__query_compute::mir_const
42: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_const<'tcx>>::compute
43: rustc::dep_graph::graph::DepGraph::with_task_impl
44: rustc::ty::context::tls::with_related_context
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job
46: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query
47: rustc::ty::query::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::mir_const
48: rustc_mir::transform::mir_validated
49: rustc::ty::query::__query_compute::mir_validated
50: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_validated<'tcx>>::compute
51: rustc::dep_graph::graph::DepGraph::with_task_impl
52: rustc::ty::context::tls::with_related_context
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job
54: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query
55: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
56: rustc_borrowck::borrowck::borrowck
57: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::borrowck<'tcx>>::compute
58: rustc::dep_graph::graph::DepGraph::with_task_impl
59: rustc::ty::context::tls::with_related_context
60: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job
61: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query
62: rustc::ty::query::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::borrowck
63: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
64: rustc_borrowck::borrowck::check_crate
65: rustc::util::common::time
66: rustc::ty::context::tls::enter_context
67: <std::thread::local::LocalKey>::with
68: rustc::ty::context::TyCtxt::create_and_enter
69: rustc_driver::driver::compile_input
70: rustc_driver::run_compiler_with_pool
71: <scoped_tls::ScopedKey>::set
72: rustc_driver::run_compiler
73: <scoped_tls::ScopedKey>::set
74: syntax::with_globals
75: __rust_maybe_catch_panic
at libpanic_unwind/lib.rs:102
76: rustc_driver::run
77: rustc_driver::main
78: std::rt::lang_start::{{closure}}
79: std::panicking::try::do_call
at libstd/rt.rs:59
at libstd/panicking.rs:310
80: __rust_maybe_catch_panic
at libpanic_unwind/lib.rs:102
81: std::rt::lang_start_internal
at libstd/panicking.rs:289
at libstd/panic.rs:392
at libstd/rt.rs:58
82: main
83: __libc_start_main
query stack during panic:
#0 [mir_built] processing freelist::<impl typeob::PyObjectAlloc<T> for T>::dealloc
#1 [unsafety_check_result] processing freelist::<impl typeob::PyObjectAlloc<T> for T>::dealloc
#2 [mir_const] processing freelist::<impl typeob::PyObjectAlloc<T> for T>::dealloc
#3 [mir_validated] processing freelist::<impl typeob::PyObjectAlloc<T> for T>::dealloc
#4 [borrowck] processing freelist::<impl typeob::PyObjectAlloc<T> for T>::dealloc
end of query stack
error: aborting due to previous error

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.31.0-nightly (96064eb 2018-10-28) running on armv7-unknown-linux-gnueabihf

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

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

error: Could not compile pyo3.

To learn more, run the command again with --verbose.

@phansch
Copy link
Member

phansch commented Oct 29, 2018

Duplicate of #55376

@jonas-schievink
Copy link
Contributor

Indeed looks like a duplicate, and not something platform-specific either.

@jonas-schievink jonas-schievink added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ A-HIR Area: The high-level intermediate representation (HIR) labels Jan 27, 2019
@bjbemister19
Copy link
Author

I can confirm that this issue was solved. Just updated to 1.34.0-nightly and the code now compiles successfully. Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-HIR Area: The high-level intermediate representation (HIR) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants