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: internal unnamed_addr constant %str_slice #34992

Closed
XAMPPRocky opened this issue Jul 23, 2016 · 1 comment
Closed

ICE: internal unnamed_addr constant %str_slice #34992

XAMPPRocky opened this issue Jul 23, 2016 · 1 comment

Comments

@XAMPPRocky
Copy link
Member

XAMPPRocky commented Jul 23, 2016

Code

https://github.com/Aaronepower/rust-test

Error

   Compiling rust-test v0.1.0 (file:///G:/rust-test)
     Running `rustc src\main.rs --crate-name rust_test --crate-type bin -g --cfg "feature=\"default\"" --out-dir G:\rust-test\target\debug --emit=dep-info,link -L dependency=G:\rust-test\target\debug -L dependency=G:\rust-test\target\debug\deps --extern rust_test=G:\rust-test\target\debug\librust_test.rlib`
@ref5959 = internal unnamed_addr constant %str_slice { i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str5958, i32 0, i32 0), i64 3 }, align 8
{ i8*, i64 } undef
error: internal compiler error: ../src/librustc_trans\consts.rs:446: const expr(10: &*"sth") of type &'static str has size 8 instead of 16
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
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', ../src/libsyntax\errors/mod.rs:584
stack backtrace:
   0:     0x7ffb91fbb3a2 - std::panicking::Location::line::h2de8c3be50c071bb
   1:     0x7ffb91fba8b4 - std::panicking::set_hook::hbb255175e59c4ac2
   2:     0x7ffb91f83f8d - std::panicking::rust_panic_with_hook::h5dd7da6bb3d06020
   3:     0x7ffb900b433a - syntax::errors::Handler::note_without_error::h06d9ad2934323cc2
   4:     0x7ffb900b3b02 - syntax::errors::Handler::bug::hb67a449bfdd4b525
   5:     0x7ffb908f5c0f - rustc::hir::def::PathResolution::full_def::h420182c78e55451e
   6:     0x7ffb908f59b7 - rustc::hir::def::PathResolution::full_def::h420182c78e55451e
   7:     0x7ffb909129d0 - rustc::session::bug_fmt::h3d079546792f3a77
   8:     0x7ffb916dd02b - rustc_trans::context::CrateContext::const_unsized::h0d09ec982693dc81
   9:     0x7ffb916ddd8c - _<consts..TrueConst as std..fmt..Debug>::fmt::h327ef8b15345f5d4
  10:     0x7ffb916ae440 - _<value..Value as std..fmt..Debug>::fmt::h74e9787c2623046c
  11:     0x7ffb916358eb - rustc_trans::builder::Builder::load::h3324509b18be7904
  12:     0x7ffb9164d409 - _<common..FunctionContext<'blk, 'tcx> as cleanup..CleanupMethods<'blk, 'tcx>>::push_custom_cleanup_scope_with_debug_loc::h4427eeef001f8938
  13:     0x7ffb91648964 - _<common..FunctionContext<'blk, 'tcx> as cleanup..CleanupMethods<'blk, 'tcx>>::schedule_lifetime_end::hd3a4555f72120601
  14:     0x7ffb9164e26a - _<common..FunctionContext<'blk, 'tcx> as cleanup..CleanupMethods<'blk, 'tcx>>::pop_and_trans_custom_cleanup_scope::h05c81e8caced522e
  15:     0x7ffb9165a42a - rustc_trans::context::CrateContext::llmod::h6c359c8a338fcdd7
  16:     0x7ffb9167ace3 - _<base..TransItemsWithinModVisitor<'a, 'tcx> as rustc..hir..intravisit..Visitor<'v>>::visit_item::hf2a5fda0a4c4bb41
  17:     0x7ffb91664c6f - rustc_trans::base::trans_crate::hdb9f0761c2bb8e02
  18:     0x7ffb984f2494 - rustc_driver::driver::phase_4_translate_to_llvm::he77984ef06ab7894
  19:     0x7ffb984f0282 - rustc_driver::driver::lower_and_resolve::h67abc4f69daeb1ec
  20:     0x7ffb984ec21d - rustc_driver::driver::lower_and_resolve::h67abc4f69daeb1ec
  21:     0x7ffb984e4588 - rustc_driver::driver::lower_and_resolve::h67abc4f69daeb1ec
  22:     0x7ffb9849efba - rustc_driver::driver::compile_input::hda370d330171d8d7
  23:     0x7ffb98486f6d - rustc_driver::run_compiler::ha942b7e1d33fe553
  24:     0x7ffb98483bd5 - rustc_driver::run::h3bda59b37cf2f98e
  25:     0x7ffb91fc3f11 - _rust_maybe_catch_panic
  26:     0x7ffb9848480d - rustc_driver::run::h3bda59b37cf2f98e
  27:     0x7ffb91fb88f3 - std::sys::thread::Thread::new::hda6e12a3213fe5f2
  28:     0x7ffbc2af8101 - BaseThreadInitThunk

error: Could not compile `rust-test`.

Caused by:
  Process didn't exit successfully: `rustc src\main.rs --crate-name rust_test --crate-type bin -g --cfg feature="default" --out-dir G:\rust-test\target\debug --emit=dep-info,link -L dependency=G:\rust-test\target\debug -L dependency=G:\rust-test\target\debug\deps --extern rust_test=G:\rust-test\target\debug\librust_test.rlib` (exit code: 101)

Rustc version

rustc 1.10.0 (cfcb716cf 2016-07-03)
binary: rustc
commit-hash: cfcb716cf0961a7e3a4eceac828d94805cf8140b
commit-date: 2016-07-03
host: x86_64-pc-windows-msvc
release: 1.10.0

Cargo version

cargo 0.11.0-nightly (259324c 2016-05-20)
@XAMPPRocky
Copy link
Member Author

XAMPPRocky commented Jul 23, 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

1 participant