Skip to content

ICE compiling lalrpop #32707

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
Swatinem opened this issue Apr 3, 2016 · 1 comment
Closed

ICE compiling lalrpop #32707

Swatinem opened this issue Apr 3, 2016 · 1 comment

Comments

@Swatinem
Copy link
Contributor

Swatinem commented Apr 3, 2016

CC @nikomatsakis

With a recent nightly from AUR (rust-nightly-bin):
rustc 1.9.0-nightly (c8b8eb1fd 2016-04-01) (also with an older nightly from 3-28, but I just updated to check a newer version)

I get the following trying to compile lalrpop:

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
thread 'rustc' panicked at 'assertion failed: declare::get_defined_value(ccx, &symbol).is_none()', ../src/librustc_trans/monomorphize.rs:94
stack backtrace:
   1:     0x7f5dca1422c0 - std::sys::backtrace::tracing::imp::write::hc787ac7b725fc252
   2:     0x7f5dca14f98b - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hff309ab1d83ffd90
   3:     0x7f5dca14f527 - std::panicking::default_hook::h08ad3bb09872855b
   4:     0x7f5dca1132bf - std::sys_common::unwind::begin_unwind_inner::hfa66df7b3e69707e
   5:     0x7f5dc8cc637f - std::sys_common::unwind::begin_unwind::h422885d31fe250dc
   6:     0x7f5dc8d6dbc8 - rustc_trans::callee::get_fn::h80509230b00b2d45
   7:     0x7f5dc8d18b80 - rustc_trans::callee::Callee::def::ha59f7b3a44ed318c
   8:     0x7f5dc8ddd657 - rustc_trans::glue::trans_struct_drop::hdf610ff8cbc85372
   9:     0x7f5dc8dda36f - rustc_trans::glue::get_drop_glue_core::he8ee956e8079a382
  10:     0x7f5dc8d86b45 - rustc_trans::glue::drop_ty_core::hc06aa6b2c77ee88e
  11:     0x7f5dc8dde84a - rustc_trans::base::iter_structural_ty::hb996c6f6439d346e
  12:     0x7f5dc8dda471 - rustc_trans::glue::get_drop_glue_core::he8ee956e8079a382
  13:     0x7f5dc8d86b45 - rustc_trans::glue::drop_ty_core::hc06aa6b2c77ee88e
  14:     0x7f5dc8de05df - rustc_trans::base::iter_structural_ty::iter_variant::hcb339d0d96e6a30e
  15:     0x7f5dc8ddf1f6 - rustc_trans::base::iter_structural_ty::hb996c6f6439d346e
  16:     0x7f5dc8dda471 - rustc_trans::glue::get_drop_glue_core::he8ee956e8079a382
  17:     0x7f5dc8d86b45 - rustc_trans::glue::drop_ty_core::hc06aa6b2c77ee88e
  18:     0x7f5dc8de05df - rustc_trans::base::iter_structural_ty::iter_variant::hcb339d0d96e6a30e
  19:     0x7f5dc8ddf1f6 - rustc_trans::base::iter_structural_ty::hb996c6f6439d346e
  20:     0x7f5dc8dda471 - rustc_trans::glue::get_drop_glue_core::he8ee956e8079a382
  21:     0x7f5dc8d86b45 - rustc_trans::glue::drop_ty_core::hc06aa6b2c77ee88e
  22:     0x7f5dc8dde84a - rustc_trans::base::iter_structural_ty::hb996c6f6439d346e
  23:     0x7f5dc8dda471 - rustc_trans::glue::get_drop_glue_core::he8ee956e8079a382
  24:     0x7f5dc8d86b45 - rustc_trans::glue::drop_ty_core::hc06aa6b2c77ee88e
  25:     0x7f5dc8de05df - rustc_trans::base::iter_structural_ty::iter_variant::hcb339d0d96e6a30e
  26:     0x7f5dc8ddf1f6 - rustc_trans::base::iter_structural_ty::hb996c6f6439d346e
  27:     0x7f5dc8dda471 - rustc_trans::glue::get_drop_glue_core::he8ee956e8079a382
  28:     0x7f5dc8d86b45 - rustc_trans::glue::drop_ty_core::hc06aa6b2c77ee88e
  29:     0x7f5dc8de05df - rustc_trans::base::iter_structural_ty::iter_variant::hcb339d0d96e6a30e
  30:     0x7f5dc8ddf1f6 - rustc_trans::base::iter_structural_ty::hb996c6f6439d346e
  31:     0x7f5dc8dda471 - rustc_trans::glue::get_drop_glue_core::he8ee956e8079a382
  32:     0x7f5dc8d86b45 - rustc_trans::glue::drop_ty_core::hc06aa6b2c77ee88e
  33:     0x7f5dc8d85410 - _<cleanup..DropValue<'tcx> as cleanup..Cleanup<'tcx>>::trans::hfe743496a676c6bd
  34:     0x7f5dc8d849b7 - _<common..FunctionContext<'blk, 'tcx> as cleanup..CleanupHelperMethods<'blk, 'tcx>>::trans_cleanups_to_exit_scope::h70ffd6084bb51bb8
  35:     0x7f5dc8d860bb - _<common..FunctionContext<'blk, 'tcx> as cleanup..CleanupHelperMethods<'blk, 'tcx>>::get_or_create_landing_pad::hab4f305faaf87d7c
  36:     0x7f5dc8d22393 - _<common..FunctionContext<'blk, 'tcx> as cleanup..CleanupMethods<'blk, 'tcx>>::get_landing_pad::he3727711541cdf63
  37:     0x7f5dc8d21f80 - rustc_trans::base::invoke::ha7baf7e086d93914
  38:     0x7f5dc8d17daa - rustc_trans::callee::Callee::call::h40441c69ded50749
  39:     0x7f5dc8dca3ae - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  40:     0x7f5dc8d41584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  41:     0x7f5dc8e26476 - rustc_trans::tvec::write_content::h83dc10dc59860634
  42:     0x7f5dc8dc9b9a - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  43:     0x7f5dc8d41584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  44:     0x7f5dc8dfaaae - rustc_trans::_match::trans_match_inner::hbdd6056757522568
  45:     0x7f5dc8dc8a65 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  46:     0x7f5dc8dc80ad - rustc_trans::expr::trans_unadjusted::h1c3be1e5aa61621c
  47:     0x7f5dc8d80599 - rustc_trans::expr::trans::h542fffcc984b03b8
  48:     0x7f5dc8dd1740 - rustc_trans::expr::trans_addr_of::h14be6b3556c791ca
  49:     0x7f5dc8dc83cf - rustc_trans::expr::trans_unadjusted::h1c3be1e5aa61621c
  50:     0x7f5dc8d80599 - rustc_trans::expr::trans::h542fffcc984b03b8
  51:     0x7f5dc8d7f2fe - rustc_trans::callee::trans_args::h37f20c0adfb653a6
  52:     0x7f5dc8d17cf2 - rustc_trans::callee::Callee::call::h40441c69ded50749
  53:     0x7f5dc8dca3ae - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  54:     0x7f5dc8dc80ad - rustc_trans::expr::trans_unadjusted::h1c3be1e5aa61621c
  55:     0x7f5dc8d80599 - rustc_trans::expr::trans::h542fffcc984b03b8
  56:     0x7f5dc8d7f2fe - rustc_trans::callee::trans_args::h37f20c0adfb653a6
  57:     0x7f5dc8d17cf2 - rustc_trans::callee::Callee::call::h40441c69ded50749
  58:     0x7f5dc8dca3ae - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  59:     0x7f5dc8d41584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  60:     0x7f5dc8d3fb43 - rustc_trans::expr::trans_adt::hf83582e033cb0e29
  61:     0x7f5dc8dca034 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  62:     0x7f5dc8d41584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  63:     0x7f5dc8d3fb43 - rustc_trans::expr::trans_adt::hf83582e033cb0e29
  64:     0x7f5dc8d3f2f8 - rustc_trans::base::trans_named_tuple_constructor::h3a73ffa2a25f5ce2
  65:     0x7f5dc8d178de - rustc_trans::callee::Callee::call::h40441c69ded50749
  66:     0x7f5dc8dca3ae - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  67:     0x7f5dc8d41584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  68:     0x7f5dc8dcd307 - rustc_trans::expr::trans_rvalue_stmt_unadjusted::hc0f68c4825c463a3
  69:     0x7f5dc8d4155f - rustc_trans::expr::trans_into::hccfa250f984a4de0
  70:     0x7f5dc8dfaaae - rustc_trans::_match::trans_match_inner::hbdd6056757522568
  71:     0x7f5dc8dc8a65 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  72:     0x7f5dc8d41584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  73:     0x7f5dc8e0435d - rustc_trans::_match::mk_binding_alloca::h48ba7e46da50b940
  74:     0x7f5dc8d2358d - rustc_trans::base::init_local::h5b725441afc1979c
  75:     0x7f5dc8d38ad4 - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  76:     0x7f5dc8dc9ad0 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  77:     0x7f5dc8d41584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  78:     0x7f5dc8d38dfd - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  79:     0x7f5dc8d37177 - rustc_trans::base::trans_closure::h2b7da2bc6c23f7b2
  80:     0x7f5dc8d88eb3 - rustc_trans::closure::trans_closure_expr::hfd53eb0252594d76
  81:     0x7f5dc8dcb033 - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  82:     0x7f5dc8dc80ad - rustc_trans::expr::trans_unadjusted::h1c3be1e5aa61621c
  83:     0x7f5dc8d80599 - rustc_trans::expr::trans::h542fffcc984b03b8
  84:     0x7f5dc8d7f2fe - rustc_trans::callee::trans_args::h37f20c0adfb653a6
  85:     0x7f5dc8d17cf2 - rustc_trans::callee::Callee::call::h40441c69ded50749
  86:     0x7f5dc8dca3ae - rustc_trans::expr::trans_rvalue_dps_unadjusted::h2767d79242f1a8da
  87:     0x7f5dc8d41584 - rustc_trans::expr::trans_into::hccfa250f984a4de0
  88:     0x7f5dc8d38dfd - rustc_trans::controlflow::trans_block::h85160ce006cd8aa8
  89:     0x7f5dc8d37177 - rustc_trans::base::trans_closure::h2b7da2bc6c23f7b2
  90:     0x7f5dc8d396c0 - rustc_trans::base::trans_fn::h9d408db44d2e9f24
  91:     0x7f5dc8d44389 - rustc_trans::base::trans_item::h6ce564dd6c26e0a3
  92:     0x7f5dc8d5d58b - _<base..TransItemsWithinModVisitor<'a, 'tcx> as rustc_front..intravisit..Visitor<'v>>::visit_item::h17575fb313345f09
  93:     0x7f5dc8d5b587 - rustc_front::intravisit::walk_item::h3f8f84eead983919
  94:     0x7f5dc8d4af3f - rustc_trans::base::trans_crate::h1aff7a8470cdce2a
  95:     0x7f5dca69a938 - rustc_driver::driver::phase_4_translate_to_llvm::h7b8775f4874fc83b
  96:     0x7f5dca6991c5 - rustc_driver::driver::compile_input::_$u7b$$u7b$closure$u7d$$u7d$::h31c654547881d0b4
  97:     0x7f5dca695da8 - rustc_driver::driver::phase_3_run_analysis_passes::_$u7b$$u7b$closure$u7d$$u7d$::h25b1c02cc580d282
  98:     0x7f5dca68fd5b - rustc::ty::context::TyCtxt::create_and_enter::h567cfc6893966048
  99:     0x7f5dca68c7d9 - rustc_driver::driver::phase_3_run_analysis_passes::h925d8f426a8a3ebf
  100:     0x7f5dca65f1f7 - rustc_driver::driver::compile_input::h4de0250909a780b6
 ... <frames omitted>

error: Could not compile `lalrpop`.

Caused by:
  Process didn't exit successfully: `rustc /home/swatinem/.cargo/registry/src/github.com-88ac128001ac3a9a/lalrpop-0.11.0/src/lib.rs --crate-name lalrpop --crate-type lib -g -C metadata=d6baa27f98fc7538 -C extra-filename=-d6baa27f98fc7538 --out-dir /home/swatinem/Coding/aoc/target/debug/deps --emit=dep-info,link -L dependency=/home/swatinem/Coding/aoc/target/debug/deps -L dependency=/home/swatinem/Coding/aoc/target/debug/deps --extern lalrpop_util=/home/swatinem/Coding/aoc/target/debug/deps/liblalrpop_util-fc198bc338d83459.rlib --extern bitflags=/home/swatinem/Coding/aoc/target/debug/deps/libbitflags-b378ff20d60f43f8.rlib --extern time=/home/swatinem/Coding/aoc/target/debug/deps/libtime-71756e48b8b5b73b.rlib --extern unicode_xid=/home/swatinem/Coding/aoc/target/debug/deps/libunicode_xid-9c8b45f5e57093ce.rlib --extern diff=/home/swatinem/Coding/aoc/target/debug/deps/libdiff-d9bb0ab208d478fa.rlib --extern petgraph=/home/swatinem/Coding/aoc/target/debug/deps/libpetgraph-2d6284604570cec3.rlib --extern regex_syntax=/home/swatinem/Coding/aoc/target/debug/deps/libregex_syntax-a3eb2be3b16af627.rlib --extern bit_set=/home/swatinem/Coding/aoc/target/debug/deps/libbit_set-453e2d4234e0c726.rlib --extern itertools=/home/swatinem/Coding/aoc/target/debug/deps/libitertools-7b9bc1f2f9fa9b1f.rlib --extern regex=/home/swatinem/Coding/aoc/target/debug/deps/libregex-b6716f29e484adea.rlib --extern rustc_serialize=/home/swatinem/Coding/aoc/target/debug/deps/librustc_serialize-e1b49f9d5f55eb83.rlib --extern term=/home/swatinem/Coding/aoc/target/debug/deps/libterm-585dc449d37783e7.rlib --extern lalrpop_intern=/home/swatinem/Coding/aoc/target/debug/deps/liblalrpop_intern-5373a63480b79f96.rlib --extern docopt=/home/swatinem/Coding/aoc/target/debug/deps/libdocopt-bf1b771f6864695e.rlib --extern atty=/home/swatinem/Coding/aoc/target/debug/deps/libatty-1f5011c4825b8c16.rlib --cap-lints allow` (exit code: 101)
@sfackler
Copy link
Member

sfackler commented Apr 3, 2016

Dup of #32530

@sfackler sfackler closed this as completed Apr 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants