Skip to content

Compiler error, nightly #32696

Closed
Closed
@ktff

Description

@ktff

While running cargo build with nightly (2016-04-01) rustc panics with error:
ERROR:rbml::reader: failed to find block with tag 32
which originates in rust/src/librbml/lib.rs:437.

Nightly Rust from ~8 days didn't panic.

Funny how ::imp:: shows in backtrace.

Edit:
It will take some time to reduce all relevant code to some manageable example.

Meta

rustc --version --verbose:

rustc 1.9.0-nightly (c8b8eb1fd 2016-04-01)
binary: rustc
commit-hash: c8b8eb1fda90998832ba1cdf96a34dc676f7124b
commit-date: 2016-04-01
host: x86_64-unknown-linux-gnu
release: 1.9.0-nightly

Backtrace:

ERROR:rbml::reader: failed to find block with tag 32
error: internal compiler error: unexpected panic
thread 'rustc' panicked at 'explicit panic', ../src/librbml/lib.rs:437
stack backtrace:
   1:     0x7fc9e1bbd2c0 - std::sys::backtrace::tracing::imp::write::hc787ac7b725fc252
   2:     0x7fc9e1bca98b - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hff309ab1d83ffd90
   3:     0x7fc9e1bca527 - std::panicking::default_hook::h08ad3bb09872855b
   4:     0x7fc9e1b8e2bf - std::sys_common::unwind::begin_unwind_inner::hfa66df7b3e69707e
   5:     0x7fc9d8d0abff - std::sys_common::unwind::begin_unwind::h422885d31fe250dc
   6:     0x7fc9d8d088c6 - rbml::reader::get_doc::hf96062258c695953
   7:     0x7fc9e0c9a8eb - rustc_metadata::decoder::item_name::h937d5af7cabdc0db
   8:     0x7fc9e0ce1c8b - rustc_metadata::csearch::_<impl rustc..middle..cstore..CrateStore<'tcx> for cstore..CStore>::item_name::h6797a808760c2731
   9:     0x7fc9dbb52747 - rustc::ty::item_path::_<impl ty..context..TyCtxt<'tcx>>::push_item_path::hac1b9fe02a3c37ed
  10:     0x7fc9dbb52e80 - rustc::ty::item_path::_<impl ty..context..TyCtxt<'tcx>>::push_item_path::hac1b9fe02a3c37ed
  11:     0x7fc9dba558fd - rustc::ty::item_path::_<impl ty..context..TyCtxt<'tcx>>::item_path_str::h94bec330b9844a26
  12:     0x7fc9e0862bd8 - rustc_trans::type_of::llvm_type_name::h8232cc541b66c2fa
  13:     0x7fc9e073acda - rustc_trans::type_of::in_memory_type_of::h39ed35af1c9bd3c0
  14:     0x7fc9e07d77bf - rustc_trans::consts::get_static::ha556e7f1f5a5c12b
  15:     0x7fc9e07c495b - rustc_trans::expr::trans_var::h9e834a8c15e86835
  16:     0x7fc9e0803315 - rustc_trans::expr::trans_unadjusted::h1c3be1e5aa61621c
  17:     0x7fc9e07bb599 - rustc_trans::expr::trans::h542fffcc984b03b8
  18:     0x7fc9e07ba2fe - rustc_trans::callee::trans_args::h37f20c0adfb653a6
  19:     0x7fc9e0752cf2 - rustc_trans::callee::Callee::call::h40441c69ded50749
  20:     0x7fc9e0804a36 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  21:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  22:     0x7fc9e07e1c9b - rustc_trans::controlflow::trans_stmt_semi::h924ebf14e2481e96
  23:     0x7fc9e0773ab0 - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  24:     0x7fc9e08045d9 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  25:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  26:     0x7fc9e07e1c9b - rustc_trans::controlflow::trans_stmt_semi::h924ebf14e2481e96
  27:     0x7fc9e0773ab0 - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  28:     0x7fc9e0804ad0 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  29:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  30:     0x7fc9e0773dfd - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  31:     0x7fc9e0772177 - rustc_trans::base::trans_closure::h2b7da2bc6c23f7b2
  32:     0x7fc9e07c3eb3 - rustc_trans::closure::trans_closure_expr::hfd53eb0252594d76
  33:     0x7fc9e0806033 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  34:     0x7fc9e08030ad - rustc_trans::expr::trans_unadjusted::h1c3be1e5aa61621c
  35:     0x7fc9e07bb599 - rustc_trans::expr::trans::h542fffcc984b03b8
  36:     0x7fc9e07ba2fe - rustc_trans::callee::trans_args::h37f20c0adfb653a6
  37:     0x7fc9e0752cf2 - rustc_trans::callee::Callee::call::h40441c69ded50749
  38:     0x7fc9e0804a36 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  39:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  40:     0x7fc9e07e1c9b - rustc_trans::controlflow::trans_stmt_semi::h924ebf14e2481e96
  41:     0x7fc9e0773ab0 - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  42:     0x7fc9e0772177 - rustc_trans::base::trans_closure::h2b7da2bc6c23f7b2
  43:     0x7fc9e07746c0 - rustc_trans::base::trans_fn::h9d408db44d2e9f24
  44:     0x7fc9e07a7bd1 - rustc_trans::callee::get_fn::h80509230b00b2d45
  45:     0x7fc9e0753a1e - rustc_trans::callee::Callee::def::ha59f7b3a44ed318c
  46:     0x7fc9e07a267f - rustc_trans::callee::Callee::method_call::h91c54111eae6060e
  47:     0x7fc9e080499f - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  48:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  49:     0x7fc9e07e1c9b - rustc_trans::controlflow::trans_stmt_semi::h924ebf14e2481e96
  50:     0x7fc9e0773ab0 - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  51:     0x7fc9e0772177 - rustc_trans::base::trans_closure::h2b7da2bc6c23f7b2
  52:     0x7fc9e07746c0 - rustc_trans::base::trans_fn::h9d408db44d2e9f24
  53:     0x7fc9e07a7bd1 - rustc_trans::callee::get_fn::h80509230b00b2d45
  54:     0x7fc9e0753a1e - rustc_trans::callee::Callee::def::ha59f7b3a44ed318c
  55:     0x7fc9e07a267f - rustc_trans::callee::Callee::method_call::h91c54111eae6060e
  56:     0x7fc9e080499f - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  57:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  58:     0x7fc9e0835aae - rustc_trans::_match::trans_match_inner::hbdd6056757522568
  59:     0x7fc9e0803a65 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  60:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  61:     0x7fc9e0773dfd - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  62:     0x7fc9e0772177 - rustc_trans::base::trans_closure::h2b7da2bc6c23f7b2
  63:     0x7fc9e07746c0 - rustc_trans::base::trans_fn::h9d408db44d2e9f24
  64:     0x7fc9e07a7bd1 - rustc_trans::callee::get_fn::h80509230b00b2d45
  65:     0x7fc9e0753a1e - rustc_trans::callee::Callee::def::ha59f7b3a44ed318c
  66:     0x7fc9e07a267f - rustc_trans::callee::Callee::method_call::h91c54111eae6060e
  67:     0x7fc9e080499f - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  68:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  69:     0x7fc9e07e1c9b - rustc_trans::controlflow::trans_stmt_semi::h924ebf14e2481e96
  70:     0x7fc9e0773ab0 - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  71:     0x7fc9e0772177 - rustc_trans::base::trans_closure::h2b7da2bc6c23f7b2
  72:     0x7fc9e07746c0 - rustc_trans::base::trans_fn::h9d408db44d2e9f24
  73:     0x7fc9e07a7bd1 - rustc_trans::callee::get_fn::h80509230b00b2d45
  74:     0x7fc9e0753a1e - rustc_trans::callee::Callee::def::ha59f7b3a44ed318c
  75:     0x7fc9e07a267f - rustc_trans::callee::Callee::method_call::h91c54111eae6060e
  76:     0x7fc9e080499f - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  77:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  78:     0x7fc9e07e1c9b - rustc_trans::controlflow::trans_stmt_semi::h924ebf14e2481e96
  79:     0x7fc9e0773ab0 - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  80:     0x7fc9e0772177 - rustc_trans::base::trans_closure::h2b7da2bc6c23f7b2
  81:     0x7fc9e07746c0 - rustc_trans::base::trans_fn::h9d408db44d2e9f24
  82:     0x7fc9e07a7bd1 - rustc_trans::callee::get_fn::h80509230b00b2d45
  83:     0x7fc9e0753a1e - rustc_trans::callee::Callee::def::ha59f7b3a44ed318c
  84:     0x7fc9e07a267f - rustc_trans::callee::Callee::method_call::h91c54111eae6060e
  85:     0x7fc9e080499f - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  86:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  87:     0x7fc9e0773dfd - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  88:     0x7fc9e0805482 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  89:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  90:     0x7fc9e0773dfd - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  91:     0x7fc9e0772177 - rustc_trans::base::trans_closure::h2b7da2bc6c23f7b2
  92:     0x7fc9e07746c0 - rustc_trans::base::trans_fn::h9d408db44d2e9f24
  93:     0x7fc9e07a7bd1 - rustc_trans::callee::get_fn::h80509230b00b2d45
  94:     0x7fc9e0753b80 - rustc_trans::callee::Callee::def::ha59f7b3a44ed318c
  95:     0x7fc9e07a267f - rustc_trans::callee::Callee::method_call::h91c54111eae6060e
  96:     0x7fc9e080499f - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  97:     0x7fc9e077c584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  98:     0x7fc9e07e1c9b - rustc_trans::controlflow::trans_stmt_semi::h924ebf14e2481e96
  99:     0x7fc9e0773ab0 - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  100:     0x7fc9e0804ad0 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
 ... <frames omitted>

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-metadataArea: Crate metadataI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions