Skip to content

s390x crashes in run-pass/saturating-float-casts #49827

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
cuviper opened this issue Apr 10, 2018 · 1 comment
Closed

s390x crashes in run-pass/saturating-float-casts #49827

cuviper opened this issue Apr 10, 2018 · 1 comment
Labels
A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-SystemZ Target: SystemZ processors (s390x) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@cuviper
Copy link
Member

cuviper commented Apr 10, 2018

The compiler crashes when building run-pass/saturating-float-casts.rs on s390x-unknown-linux-gnu.

---- [run-pass] run-pass/saturating-float-casts.rs stdout ----

error: compilation failed!
status: exit code: 101
command: "/home/jistone/rust/build/s390x-unknown-linux-gnu/stage2/bin/rustc" "/home/jistone/rust/src/test/run-pass/saturating-float-casts.rs" "-L" "/home/jistone/rust/build/s390x-unknown-linux-gnu/test/run-pass" "--target=s390x-unknown-linux-gnu" "-C" "prefer-dynamic" "-o" "/home/jistone/rust/build/s390x-unknown-linux-gnu/test/run-pass/saturating-float-casts.stage2-s390x-unknown-linux-gnu" "-Crpath" "-O" "-Zmiri" "-Zunstable-options" "-Lnative=/home/jistone/rust/build/s390x-unknown-linux-gnu/native/rust-test-helpers" "-Z" "saturating-float-casts" "-L" "/home/jistone/rust/build/s390x-unknown-linux-gnu/test/run-pass/saturating-float-casts.stage2-s390x-unknown-linux-gnu.aux"
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `OK | INEXACT`,
 right: `OK`', librustc_trans/mir/rvalue.rs:845:9
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: rustc::util::common::panic_hook
   5: std::panicking::rust_panic_with_hook
   6: std::panicking::begin_panic_fmt
   7: rustc_trans::mir::rvalue::cast_float_to_int
   8: rustc_trans::mir::rvalue::<impl rustc_trans::mir::FunctionCx<'a, 'tcx>>::trans_rvalue_operand
   9: rustc_trans::mir::rvalue::<impl rustc_trans::mir::FunctionCx<'a, 'tcx>>::trans_rvalue
  10: rustc_trans::mir::trans_mir
  11: rustc_trans::base::trans_instance
  12: rustc_trans::trans_item::MonoItemExt::define
  13: rustc_trans::base::compile_codegen_unit
  14: rustc::ty::maps::<impl rustc::ty::maps::queries::compile_codegen_unit<'tcx>>::compute_result
  15: rustc::dep_graph::graph::DepGraph::with_task_impl
  16: rustc::ty::context::tls::with_related_context
  17: rustc::ty::maps::<impl rustc::ty::maps::queries::compile_codegen_unit<'tcx>>::force_with_lock
  18: rustc::ty::maps::<impl rustc::ty::maps::queries::compile_codegen_unit<'tcx>>::try_get
  19: rustc::ty::maps::TyCtxtAt::compile_codegen_unit
  20: rustc::ty::maps::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::compile_codegen_unit
  21: rustc_trans::base::trans_crate
  22: <rustc_trans::LlvmTransCrate as rustc_trans_utils::trans_crate::TransCrate>::trans_crate
  23: rustc::util::common::time
  24: rustc_driver::driver::phase_4_translate_to_llvm
  25: rustc_driver::driver::compile_input::{{closure}}
  26: rustc::ty::context::tls::enter_context
  27: <std::thread::local::LocalKey<T>>::with
  28: rustc::ty::context::TyCtxt::create_and_enter
  29: rustc_driver::driver::compile_input
  30: rustc_driver::run_compiler_impl
  31: syntax::with_globals
  32: rustc_driver::run
  33: rustc_driver::main
  34: std::rt::lang_start::{{closure}}
  35: std::panicking::try::do_call
  36: __rust_maybe_catch_panic
  37: std::rt::lang_start_internal
  38: main
  39: __libc_start_main
  40: <unknown>
query stack during panic:
#0 [compile_codegen_unit] compile_codegen_unit
end of query stack

That failed assertion is in compute_clamp_bounds here:

assert_eq!(rounded_min.status, Status::OK);

@cuviper cuviper added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. O-SystemZ Target: SystemZ processors (s390x) A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html labels Apr 10, 2018
@nikic
Copy link
Contributor

nikic commented Jul 14, 2019

Closing this based on Closing this based on #52983 (comment).

@nikic nikic closed this as completed Jul 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-SystemZ Target: SystemZ processors (s390x) 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

2 participants