Skip to content

Compiler panics in 1.9.0-MSVC in cargo --release #33984

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
drewhk opened this issue May 31, 2016 · 5 comments
Closed

Compiler panics in 1.9.0-MSVC in cargo --release #33984

drewhk opened this issue May 31, 2016 · 5 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@drewhk
Copy link

drewhk commented May 31, 2016

I cannot pinpoint any particular code snippet that caused the issue. It worked with 1.8.0, but compiler panics with 1.9.0, when "--release" flag is used. It works with nightly, so the problem might have been fixed already. Backtrace is:

   0: 0x64a9d555 - std::panicking::set_hook::hb28f33acbf0b0356
   1: 0x64a64223 - std::sys_common::unwind::begin_unwind_inner::h39d40f52add53ef7
   2: 0x64a66200 - std::sys_common::unwind::begin_unwind_fmt::h64c0ff793199cc1b
   3: 0x64a902f2 - rust_begin_unwind
   4: 0x63be7904 - rustc_metadata::index::IndexData::record_index::h5c51de9f7bcef1a1
   5: 0x63bc8aa7 - rustc_metadata::loader::Context::load_library_crate::h7787c1fa9559d604
   6: 0x63bc7a57 - rustc_metadata::cstore::CStore::add_used_crate_source::hb8cfca543a80958d
   7: 0x63bc95aa - rustc_metadata::cstore::CStore::get_crate_data::h3afadf99d67c051f
   8: 0x63bc932f - rustc_metadata::cstore::CStore::get_crate_data::h3afadf99d67c051f
   9: 0x63bc464f - rustc_metadata::cstore::crate_metadata::disambiguator::h3a15115684054a50
  10: 0x63bca752 - rustc_metadata::cstore::CStore::get_crate_data::h3afadf99d67c051f
  11: 0x63bcc8ab - rustc_metadata::creader::CrateReader::read_exported_macros::hf3b61431145aafb6
  12: 0x63bf7b04 - _<macro_import..MacroLoader<'a> as syntax..visit..Visitor<'v>>::visit_item::h668e7bfc1acab9b3
  13: 0x63bf673d - rustc_metadata::macro_import::read_macro_defs::h240a20dad60749cc
  14: 0x64db5a6c - rustc_driver::driver::phase_2_configure_and_expand::h505e157de342d54f
  15: 0x64d98fc5 - rustc_driver::driver::compile_input::h6491aaddd9e61258
  16: 0x64d864c2 - rustc_driver::run_compiler::h80b2ba5e4d787c5f
  17: 0x64d83485 - rustc_driver::run::h42f3df4e2bc31796
  18: 0x64a90201 - std::sys_common::unwind::inner_try::h9eebd8dc83f388a6
  19: 0x64a9016e - std::sys_common::unwind::inner_try::h9eebd8dc83f388a6
  20: 0x64d83e72 - rustc_driver::run::h42f3df4e2bc31796
  21: 0x64a9b47e - std::sys::thread::Thread::new::h0ce8c68d6db7e3f8
  22: 0x765038f3 - BaseThreadInitThunk
  23: 0x779d5de2 - RtlUnicodeStringToInteger

I can provide more information if you tell me what you need and how can I acquire it.

Meta

rustc 1.9.0 (e4e8b66 2016-05-18)
binary: rustc
commit-hash: e4e8b66
commit-date: 2016-05-18
host: i686-pc-windows-msvc
release: 1.9.0

@alexcrichton
Copy link
Member

@drewhk would it be possible to gist the code to reproduce this?

@drewhk
Copy link
Author

drewhk commented Jun 1, 2016

Well, it is a "test junkyard" where I play with both Rust and WinAPI (new to both), so probably a bit hairy, but I didn't mean it for the public anyway :) Nevertheless, here it is: https://gist.github.com/drewhk/657eb7ea2071ccb355410e816b462978

@nagisa
Copy link
Member

nagisa commented Jun 1, 2016

Potentially a duplicate of #33778

@nagisa nagisa added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Jun 1, 2016
@Mark-Simulacrum
Copy link
Member

I don't have a MSVC environment to test this on. Could someone check if this has been fixed?

@Mark-Simulacrum
Copy link
Member

"It works with nightly, so the problem might have been fixed already." from the description and the fact that #33778 is closed means that I'm going to assume this is now fixed. If not, we'll reopen -- let me know.

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