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

Internal Compiler Error - cpal #91771

Closed
mooman219 opened this issue Dec 11, 2021 · 1 comment
Closed

Internal Compiler Error - cpal #91771

mooman219 opened this issue Dec 11, 2021 · 1 comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@mooman219
Copy link

mooman219 commented Dec 11, 2021

Opening this because the compiler told me to.

Code

Not in my codebase

Meta

rustc --version --verbose:

~/Local/storm (master) $ rustc --version --verbose
rustc 1.59.0-nightly (0b42deacc 2021-12-09)
binary: rustc
commit-hash: 0b42deaccc2cbe17a68067aa5fdb76104369e1fd
commit-date: 2021-12-09
host: x86_64-pc-windows-msvc
release: 1.59.0-nightly
LLVM version: 13.0.0

Error output

~/Local/storm (master) $ cargo check                                                                                                                                                                                                                                                                            
    Checking cpal v0.13.4
thread 'rustc' panicked at 'assertion failed: sentinel == STR_SENTINEL', /rustc/0b42deaccc2cbe17a68067aa5fdb76104369e1fd\compiler\rustc_serialize\src\opaque.rs:669:9
stack backtrace:
   0:     0x7ff858f39c4f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc2aeea11bb07072e
   1:     0x7ff858f645aa - core::fmt::write::h8a2c40ddb66ccc71
   2:     0x7ff858f2bb58 - <std::io::IoSliceMut as core::fmt::Debug>::fmt::hcdd1908fe2498bb7
   3:     0x7ff858f3d196 - std::panicking::take_hook::hb82d3fa273181deb
   4:     0x7ff858f3cc7c - std::panicking::take_hook::hb82d3fa273181deb
   5:     0x7ff84665a525 - <[usize] as rand[c57e616380ad049f]::AsByteSliceMut>::to_le
   6:     0x7ff858f3daa9 - std::panicking::rust_panic_with_hook::h8846bbc0e1c27093
   7:     0x7ff858f3d51f - rust_begin_unwind
   8:     0x7ff858f3a577 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc2aeea11bb07072e
   9:     0x7ff858f3d4a9 - rust_begin_unwind
  10:     0x7ff858f983c0 - core::panicking::panic_fmt::hc1b1ca620e7a2c9f
  11:     0x7ff858f9830c - core::panicking::panic::hfef5cee9afdef02a
  12:     0x7ff84a32b17e - <rustc_metadata[57eb77384d37346d]::dynamic_lib::DynamicLibrary>::open
  13:     0x7ff84a250bbb - <rustc_metadata[57eb77384d37346d]::rmeta::encoder::EncodeContext as rustc_serialize[a7a60dfef5d3d355]::serialize::Encoder>::emit_str
  14:     0x7ff84a3509fa - <rustc_metadata[57eb77384d37346d]::locator::CrateFlavor as core[3b5640218fb446b]::fmt::Display>::fmt
  15:     0x7ff84a34fb8f - <rustc_metadata[57eb77384d37346d]::locator::CrateFlavor as core[3b5640218fb446b]::fmt::Display>::fmt
  16:     0x7ff84a34ec06 - <rustc_metadata[57eb77384d37346d]::locator::CrateFlavor as core[3b5640218fb446b]::fmt::Display>::fmt
  17:     0x7ff84a34ddc0 - <rustc_metadata[57eb77384d37346d]::locator::CrateFlavor as core[3b5640218fb446b]::fmt::Display>::fmt
  18:     0x7ff84a27358b - <rustc_metadata[57eb77384d37346d]::creader::CrateLoader>::into_cstore
  19:     0x7ff84a26f971 - <rustc_metadata[57eb77384d37346d]::creader::CrateLoader>::into_cstore
  20:     0x7ff84a271437 - <rustc_metadata[57eb77384d37346d]::creader::CrateLoader>::into_cstore
  21:     0x7ff84a26efbb - <rustc_metadata[57eb77384d37346d]::creader::CrateLoader>::into_cstore
  22:     0x7ff84a2768b1 - <rustc_metadata[57eb77384d37346d]::creader::CrateLoader>::process_extern_crate
  23:     0x7ff84929ff67 - <rustc_resolve[440245ea491b3b0a]::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast[ad91a01cf60128b5]::visit::Visitor>::visit_item
  24:     0x7ff849376f7c - <rustc_resolve[440245ea491b3b0a]::late::PathSource as core[3b5640218fb446b]::fmt::Debug>::fmt
  25:     0x7ff8492da1a6 - <rustc_resolve[440245ea491b3b0a]::Resolver as rustc_expand[5d999fa6261ecdf6]::base::ResolverExpand>::visit_ast_fragment_with_placeholders
  26:     0x7ff84a4480ad - <rustc_expand[5d999fa6261ecdf6]::expand::MacroExpander>::fully_expand_fragment
  27:     0x7ff84a43fc05 - <rustc_expand[5d999fa6261ecdf6]::expand::MacroExpander>::fully_expand_fragment
  28:     0x7ff84a43f65b - <rustc_expand[5d999fa6261ecdf6]::expand::MacroExpander>::expand_crate
  29:     0x7ff84686a9f5 - <rustc_interface[e08f467bfbaa02e8]::passes::boxed_resolver::BoxedResolver>::to_resolver_outputs
  30:     0x7ff8467bf796 - <rls_span[c4ffdd50d3991242]::OneIndexed as core[3b5640218fb446b]::fmt::Debug>::fmt
  31:     0x7ff8467c5767 - <rustc_interface[e08f467bfbaa02e8]::queries::Queries>::expansion
  32:     0x7ff84667feaa - <rustc_middle[ef0c9a05dd1d7c39]::ty::SymbolName as core[3b5640218fb446b]::fmt::Display>::fmt
  33:     0x7ff8466751c5 - rustc_driver[41564782e4eac626]::pretty::print_after_hir_lowering
  34:     0x7ff84669dd01 - <rustc_middle[ef0c9a05dd1d7c39]::ty::SymbolName as core[3b5640218fb446b]::fmt::Display>::fmt
  35:     0x7ff84667cfc3 - rustc_driver[41564782e4eac626]::pretty::print_after_hir_lowering
  36:     0x7ff8466f81c8 - <rustc_driver[41564782e4eac626]::args::Error as core[3b5640218fb446b]::fmt::Debug>::fmt
  37:     0x7ff858f4b1ec - std::sys::windows::thread::Thread::new::h578a3ae84cde46a8
  38:     0x7ff8b4407c24 - BaseThreadInitThunk
  39:     0x7ff8b562d721 - RtlUserThreadStart

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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.59.0-nightly (0b42deacc 2021-12-09) running on x86_64-pc-windows-msvc

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `cpal`
~/Local/storm (master) $ rustup show
Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\Joe\.rustup

installed toolchains
--------------------

stable-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc (default)

active toolchain
----------------

nightly-x86_64-pc-windows-msvc (default)
rustc 1.59.0-nightly (0b42deacc 2021-12-09)
Backtrace

/rustc/0b42deaccc2cbe17a68067aa5fdb76104369e1fd\compiler\rustc_serialize\src\opaque.rs:669:9
stack backtrace:
   0:     0x7ff858f39c4f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc2aeea11bb07072e
   1:     0x7ff858f645aa - core::fmt::write::h8a2c40ddb66ccc71
   2:     0x7ff858f2bb58 - <std::io::IoSliceMut as core::fmt::Debug>::fmt::hcdd1908fe2498bb7
   3:     0x7ff858f3d196 - std::panicking::take_hook::hb82d3fa273181deb
   4:     0x7ff858f3cc7c - std::panicking::take_hook::hb82d3fa273181deb
   5:     0x7ff84665a525 - <[usize] as rand[c57e616380ad049f]::AsByteSliceMut>::to_le
   6:     0x7ff858f3daa9 - std::panicking::rust_panic_with_hook::h8846bbc0e1c27093
   7:     0x7ff858f3d51f - rust_begin_unwind
   8:     0x7ff858f3a577 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc2aeea11bb07072e
   9:     0x7ff858f3d4a9 - rust_begin_unwind
  10:     0x7ff858f983c0 - core::panicking::panic_fmt::hc1b1ca620e7a2c9f
  11:     0x7ff858f9830c - core::panicking::panic::hfef5cee9afdef02a
  12:     0x7ff84a32b17e - <rustc_metadata[57eb77384d37346d]::dynamic_lib::DynamicLibrary>::open
  13:     0x7ff84a250bbb - <rustc_metadata[57eb77384d37346d]::rmeta::encoder::EncodeContext as rustc_serialize[a7a60dfef5d3d355]::serialize::Encoder>::emit_str
  14:     0x7ff84a3509fa - <rustc_metadata[57eb77384d37346d]::locator::CrateFlavor as core[3b5640218fb446b]::fmt::Display>::fmt
  15:     0x7ff84a34fb8f - <rustc_metadata[57eb77384d37346d]::locator::CrateFlavor as core[3b5640218fb446b]::fmt::Display>::fmt
  16:     0x7ff84a34ec06 - <rustc_metadata[57eb77384d37346d]::locator::CrateFlavor as core[3b5640218fb446b]::fmt::Display>::fmt
  17:     0x7ff84a34ddc0 - <rustc_metadata[57eb77384d37346d]::locator::CrateFlavor as core[3b5640218fb446b]::fmt::Display>::fmt
  18:     0x7ff84a27358b - <rustc_metadata[57eb77384d37346d]::creader::CrateLoader>::into_cstore
  19:     0x7ff84a26f971 - <rustc_metadata[57eb77384d37346d]::creader::CrateLoader>::into_cstore
  20:     0x7ff84a271437 - <rustc_metadata[57eb77384d37346d]::creader::CrateLoader>::into_cstore
  21:     0x7ff84a26efbb - <rustc_metadata[57eb77384d37346d]::creader::CrateLoader>::into_cstore
  22:     0x7ff84a2768b1 - <rustc_metadata[57eb77384d37346d]::creader::CrateLoader>::process_extern_crate
  23:     0x7ff84929ff67 - <rustc_resolve[440245ea491b3b0a]::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast[ad91a01cf60128b5]::visit::Visitor>::visit_item
  24:     0x7ff849376f7c - <rustc_resolve[440245ea491b3b0a]::late::PathSource as core[3b5640218fb446b]::fmt::Debug>::fmt
  25:     0x7ff8492da1a6 - <rustc_resolve[440245ea491b3b0a]::Resolver as rustc_expand[5d999fa6261ecdf6]::base::ResolverExpand>::visit_ast_fragment_with_placeholders
  26:     0x7ff84a4480ad - <rustc_expand[5d999fa6261ecdf6]::expand::MacroExpander>::fully_expand_fragment
  27:     0x7ff84a43fc05 - <rustc_expand[5d999fa6261ecdf6]::expand::MacroExpander>::fully_expand_fragment
  28:     0x7ff84a43f65b - <rustc_expand[5d999fa6261ecdf6]::expand::MacroExpander>::expand_crate
  29:     0x7ff84686a9f5 - <rustc_interface[e08f467bfbaa02e8]::passes::boxed_resolver::BoxedResolver>::to_resolver_outputs
  30:     0x7ff8467bf796 - <rls_span[c4ffdd50d3991242]::OneIndexed as core[3b5640218fb446b]::fmt::Debug>::fmt
  31:     0x7ff8467c5767 - <rustc_interface[e08f467bfbaa02e8]::queries::Queries>::expansion
  32:     0x7ff84667feaa - <rustc_middle[ef0c9a05dd1d7c39]::ty::SymbolName as core[3b5640218fb446b]::fmt::Display>::fmt
  33:     0x7ff8466751c5 - rustc_driver[41564782e4eac626]::pretty::print_after_hir_lowering
  34:     0x7ff84669dd01 - <rustc_middle[ef0c9a05dd1d7c39]::ty::SymbolName as core[3b5640218fb446b]::fmt::Display>::fmt
  35:     0x7ff84667cfc3 - rustc_driver[41564782e4eac626]::pretty::print_after_hir_lowering
  36:     0x7ff8466f81c8 - <rustc_driver[41564782e4eac626]::args::Error as core[3b5640218fb446b]::fmt::Debug>::fmt
  37:     0x7ff858f4b1ec - std::sys::windows::thread::Thread::new::h578a3ae84cde46a8
  38:     0x7ff8b4407c24 - BaseThreadInitThunk
  39:     0x7ff8b562d721 - RtlUserThreadStart

@mooman219 mooman219 added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 11, 2021
@mooman219
Copy link
Author

Actually I think this is a dupe of #91689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant