Skip to content

panicked at 'assertion failed: type_is_zero_size(bcx.ccx(), block_ty) #19840

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
tupshin opened this issue Dec 14, 2014 · 4 comments
Closed

panicked at 'assertion failed: type_is_zero_size(bcx.ccx(), block_ty) #19840

tupshin opened this issue Dec 14, 2014 · 4 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@tupshin
Copy link

tupshin commented Dec 14, 2014

rustc 0.13.0-nightly (ffc1118 2014-12-12 21:07:19 +0000)
Linux mint 64

error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with RUST_BACKTRACE=1 for a backtrace
task 'rustc' panicked at 'assertion failed: type_is_zero_size(bcx.ccx(), block_ty)', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc_trans/trans/base.rs:1894

stack backtrace:
   1:     0x7f5f1f1e5540 - rt::backtrace::imp::write::heed5901f9756dd23BOx
   2:     0x7f5f1f1e8780 - failure::on_fail::ha44d264deefff4481fy
   3:     0x7f5f1ee39a60 - unwind::begin_unwind_inner::hbf982fb3a6122da9CJc
   4:     0x7f5f1dd6baf0 - unwind::begin_unwind::h9349190587066864508
   5:     0x7f5f1de64e00 - trans::base::trans_closure::h1f01310bca54f355Ufu
   6:     0x7f5f1dda7be0 - trans::base::trans_fn::hf61658fb2ebee102bru
   7:     0x7f5f1dda81d0 - trans::monomorphize::monomorphic_fn::h9b4a3a1bf8bb8c33Yqd
   8:     0x7f5f1dddef10 - trans::callee::trans_fn_ref_with_substs::h34eae87671645ba0cIg
   9:     0x7f5f1dddcd20 - trans::callee::trans_fn_ref::h41df6e028120af09ung
  10:     0x7f5f1ddec9b0 - trans::callee::trans_call::closure.38454
  11:     0x7f5f1ddbc370 - trans::callee::trans_call_inner::hca7903829d2e272203g
  12:     0x7f5f1ddfdd70 - trans::expr::trans_rvalue_dps_unadjusted::h75744b104dcd7acabgj
  13:     0x7f5f1ddfc5c0 - trans::expr::trans_unadjusted::hcf033cb0bab61b54TCi
  14:     0x7f5f1ddb5f20 - trans::expr::trans::hca8f183c9900035dHQh
  15:     0x7f5f1ddb3ad0 - trans::controlflow::trans_stmt_semi::h6556d72361574f7cMXd
  16:     0x7f5f1ddb50d0 - trans::controlflow::trans_block::ha13a11ba456e7bc3FYd
  17:     0x7f5f1de043d0 - trans::expr::trans_rvalue_stmt_unadjusted::hfdacd23a71f2651asaj
  18:     0x7f5f1ddb4970 - trans::expr::trans_into::h53e8006b87715a2cVMh
  19:     0x7f5f1ddb3ad0 - trans::controlflow::trans_stmt_semi::h6556d72361574f7cMXd
  20:     0x7f5f1ddb50d0 - trans::controlflow::trans_block::ha13a11ba456e7bc3FYd
  21:     0x7f5f1ddfdd70 - trans::expr::trans_rvalue_dps_unadjusted::h75744b104dcd7acabgj
  22:     0x7f5f1ddb4970 - trans::expr::trans_into::h53e8006b87715a2cVMh
  23:     0x7f5f1ddb50d0 - trans::controlflow::trans_block::ha13a11ba456e7bc3FYd
  24:     0x7f5f1ddfdd70 - trans::expr::trans_rvalue_dps_unadjusted::h75744b104dcd7acabgj
  25:     0x7f5f1ddb4970 - trans::expr::trans_into::h53e8006b87715a2cVMh
  26:     0x7f5f1ddb50d0 - trans::controlflow::trans_block::ha13a11ba456e7bc3FYd
  27:     0x7f5f1de64e00 - trans::base::trans_closure::h1f01310bca54f355Ufu
  28:     0x7f5f1dda7be0 - trans::base::trans_fn::hf61658fb2ebee102bru
  29:     0x7f5f1dda81d0 - trans::monomorphize::monomorphic_fn::h9b4a3a1bf8bb8c33Yqd
  30:     0x7f5f1ddcfb60 - trans::glue::trans_struct_drop::h071d03dec8ffdefabMe
  31:     0x7f5f1ddcdf20 - trans::glue::make_drop_glue::h78306f9bbac5018552e
  32:     0x7f5f1ddca250 - trans::glue::get_drop_glue::h8bb6166e47973ee2tEe
  33:     0x7f5f1ddc9de0 - trans::glue::drop_ty::h91fe1da138312eb66ze
  34:     0x7f5f1deeb350 - trans::cleanup::DropValue<'tcx>.Cleanup<'tcx>::trans::hfa2ec8492f1185b2WiM
  35:     0x7f5f1dee9b00 - trans::cleanup::FunctionContext<'blk, 'tcx>.CleanupHelperMethods<'blk, 'tcx>::trans_cleanups_to_exit_scope::h31a41887bc0e1176oRL
  36:     0x7f5f1deec7c0 - trans::cleanup::FunctionContext<'blk, 'tcx>.CleanupHelperMethods<'blk, 'tcx>::get_or_create_landing_pad::h7db867e698747fa0x5L
  37:     0x7f5f1de5d0b0 - trans::cleanup::FunctionContext<'blk, 'tcx>.CleanupMethods<'blk, 'tcx>::get_landing_pad::h94a92114862008e4qFL
  38:     0x7f5f1ddd1e50 - trans::base::invoke::h8703b4b7e0e7b3cdv6s
  39:     0x7f5f1ddbc370 - trans::callee::trans_call_inner::hca7903829d2e272203g
  40:     0x7f5f1ddfdd70 - trans::expr::trans_rvalue_dps_unadjusted::h75744b104dcd7acabgj
  41:     0x7f5f1ddfc5c0 - trans::expr::trans_unadjusted::hcf033cb0bab61b54TCi
  42:     0x7f5f1ddb5f20 - trans::expr::trans::hca8f183c9900035dHQh
  43:     0x7f5f1de043d0 - trans::expr::trans_rvalue_stmt_unadjusted::hfdacd23a71f2651asaj
  44:     0x7f5f1ddb4970 - trans::expr::trans_into::h53e8006b87715a2cVMh
  45:     0x7f5f1ddb3ad0 - trans::controlflow::trans_stmt_semi::h6556d72361574f7cMXd
  46:     0x7f5f1ddb50d0 - trans::controlflow::trans_block::ha13a11ba456e7bc3FYd
  47:     0x7f5f1de64e00 - trans::base::trans_closure::h1f01310bca54f355Ufu
  48:     0x7f5f1dda7be0 - trans::base::trans_fn::hf61658fb2ebee102bru
  49:     0x7f5f1dda2010 - trans::base::trans_item::hc5b586d48d58de4fdMu
  50:     0x7f5f1de698c0 - trans::base::trans_mod::hc8792850af78ad3fIRu
  51:     0x7f5f1de6d750 - trans::base::trans_crate::h7b946cae1e581facnIv
  52:     0x7f5f1f622460 - driver::phase_4_translate_to_llvm::h0c68ca675a1fc8d7VCa
  53:     0x7f5f1f6070b0 - driver::compile_input::hdc87225d47b03d10pba
  54:     0x7f5f1f6a5e20 - run_compiler::hac4563508ec17f56EYb
  55:     0x7f5f1f6a5d10 - run::closure.21548
  56:     0x7f5f1f6b7750 - task::TaskBuilder::try_future::closure.23002
  57:     0x7f5f1f1bd9c0 - task::TaskBuilder::spawn_internal::closure.30612
  58:     0x7f5f1ee37700 - task::Task::spawn::closure.5729
  59:     0x7f5f1ee94f50 - rust_try_inner
  60:     0x7f5f1ee94f40 - rust_try
  61:     0x7f5f1ee377e0 - unwind::try::hd503f9309b2b1ec2Tyc
  62:     0x7f5f1ee375a0 - task::Task::run::h7ea5fe2114c20f68fKb
  63:     0x7f5f1ee37190 - task::Task::spawn::closure.5705
  64:     0x7f5f1ee38be0 - thread::thread_start::h5e2446fe7cf0a4f1w1b
  65:     0x7f5f19c770c0 - start_thread
  66:     0x7f5f1eafcec9 - __clone
  67:                0x0 - <unknown>

Build failed, waiting for other jobs to finish...
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/Instructions.cpp:1086: void llvm::StoreInst::AssertOK(): Assertion getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed.
@huonw
Copy link
Member

huonw commented Dec 15, 2014

Do you happen to have a code example that causes this ICE?

@huonw huonw added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Dec 15, 2014
@tupshin
Copy link
Author

tupshin commented Dec 15, 2014

Not easily. It was one stop on a complicated refactoring. If I can get back to that state, I'll link you.

@tamird
Copy link
Contributor

tamird commented Apr 21, 2015

Not actionable without a test case. @steveklabnik is it appropriate to close stale issues such as this?

@steveklabnik
Copy link
Member

Yes, it's been a number of months, with no activity.

@tupshin if you can reproduce, please let us know, and we'll re-open. Thanks

lnicola pushed a commit to lnicola/rust that referenced this issue May 26, 2025
…egrated-benchmarks

internal: fix `integrated_benchmarks` to make actual edits
lnicola pushed a commit to lnicola/rust that referenced this issue May 28, 2025
…egrated-benchmarks

internal: fix `integrated_benchmarks` to make actual edits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants