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: ERROR:rbml::reader: failed to find block with tag 7 #16510

Closed
japaric opened this issue Aug 14, 2014 · 2 comments
Closed

ICE: ERROR:rbml::reader: failed to find block with tag 7 #16510

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

Comments

@japaric
Copy link
Member

japaric commented Aug 14, 2014

Found this while refactoring my library after the Vector -> Slice rename

STR:

use std::{mem, raw};

fn main() {
    let a = &[1, 2, 3i];
    let raw::Slice { data: ptr, len: len }: raw::Slice<int> = unsafe { mem::transmute(a) };
    let b = unsafe { mem::transmute(Slice { data: ptr, len: len }) };
    // ICE                          ^~~ forgot the `raw::` qualifier
}

Backtrace:

task 'rustc' failed at 'explicit failure', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/librbml/lib.rs:246

stack backtrace:
   1:     0x7fadbcf65980 - rt::backtrace::imp::write::h500c7cd49c94d6cbo1q
   2:     0x7fadbcf68a20 - <unknown>
   3:     0x7fadc14ddc40 - unwind::begin_unwind_inner::h78b0bc3908c6581cM8d
   4:     0x7fadc03d5310 - <unknown>
   5:     0x7fadc03d4340 - reader::get_doc::h659c9cb63ec6b27dQRa
   6:     0x7fadc23b9d40 - metadata::decoder::get_type::h8aa840f508fceb99Bis
   7:     0x7fadc1df73b0 - middle::ty::lookup_item_type::h0762f54f39bdc9b9J5G
   8:     0x7fadc2154ec0 - <unknown>
   9:     0x7fadc2152820 - <unknown>
  10:     0x7fadc2154ec0 - <unknown>
  11:     0x7fadc211dba0 - <unknown>
  12:     0x7fadc2154ec0 - <unknown>
  13:     0x7fadc21b39c0 - middle::typeck::check::check_decl_local::h2a1925bfb9a5b157XEW
  14:     0x7fadc21b3be0 - middle::typeck::check::check_stmt::he6d6f56b73c868b94GW
  15:     0x7fadc211dba0 - <unknown>
  16:     0x7fadc2119930 - <unknown>
  17:     0x7fadc2119650 - <unknown>
  18:     0x7fadc2112510 - middle::typeck::check::check_item::h9d5462bdf5870d8fxhS
  19:     0x7fadc2119450 - middle::typeck::check::check_item_types::h60cfbf824eb42ae21HR
  20:     0x7fadc1b2a150 - <unknown>
  21:     0x7fadc23275c0 - middle::typeck::check_crate::h322ddeef25afc167p2i
  22:     0x7fadc23f6af0 - driver::driver::phase_3_run_analysis_passes::h01e8a18355fa9e80Vsx
  23:     0x7fadc23f1c30 - driver::driver::compile_input::h7879a63579b438beafx
  24:     0x7fadc249d400 - <unknown>
  25:     0x7fadc249d310 - <unknown>
  26:     0x7fadc24afc60 - <unknown>
  27:     0x7fadc24afa60 - <unknown>
  28:     0x7fadc1838b30 - <unknown>
  29:     0x7fadc152d970 - <unknown>
  30:     0x7fadc152d960 - rust_try
  31:     0x7fadc14db2a0 - unwind::try::h36697dac480a0e50hXd
  32:     0x7fadc14db040 - task::Task::run::h0fb2de2c85c53b00T4c
  33:     0x7fadc18388f0 - <unknown>
  34:     0x7fadc14dce80 - <unknown>
  35:     0x7fadbc2e0000 - start_thread
  36:     0x7fadc11ac269 - clone
  37:                0x0 - <unknown>

Version:

rustc 0.12.0-pre (a8c8e3f80 2014-08-14 19:11:18 +0000)
@mrmonday
Copy link
Contributor

I believe this is a duplicate of #12919.

@japaric
Copy link
Member Author

japaric commented Oct 14, 2014

I believe this is a duplicate of #12919.

Yes, it is.

However, I can't reproduce this anymore with 0.12 or with:

rustc 0.13.0-dev (7dbd4349c 2014-10-13 10:32:43 +0000)

I think it's no longer ICEing because the current Slice in the prelude is std::ops::Slice, whereas at the moment of the bug report the Slice in the prelude was core::slice::Slice. I wonder if the ICE trigger was the number of generic parameters that the trait accepts? (two for ops::Slice vs one for slice::Slice)

Anyhow, I'm closing this issue since it no longer contains a valid STR.

@japaric japaric closed this as completed Oct 14, 2014
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this issue Feb 11, 2024
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

3 participants