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

Crash when building with lastest rustc,but normal build with rustc 1.44.0-nightly (b2e36e6c2 2020-04-22) running on x86_64-pc-windows-gnu #73114

Closed
vmosone opened this issue Jun 8, 2020 · 3 comments · Fixed by #92636
Labels
C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example 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

@vmosone
Copy link

vmosone commented Jun 8, 2020

Code

Sorry,don't know which one,just use the latest rustc.

Meta

rustc --version --verbose:

rustc 1.46.0-nightly (0262de554 2020-06-07)
binary: rustc
commit-hash: 0262de554b4c4c5af346137bbb1664a3f6cf4df2
commit-date: 2020-06-07
host: x86_64-pc-windows-gnu
release: 1.46.0-nightly
LLVM version: 10.0

Error output

error: internal compiler error: src\librustc_mir\transform\generator.rs:706: Broken MIR: generator contains type [httparse::Header; _] in MIR, but typeck only knows about for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9, 't10, 't11, 't12, 't13, 't14, 't15, 't16, 't17, 't18, 't19, 't20, 't21> {std::future::ResumeTy, tcp::util::ContextHandle<connect::HttpConnect<S, W, <<P as virtual_host::VirtualHostPool<S, W>>::Host as service::ServiceFactory<S, W>>::Service>>, &'r mut tcp::util::ContextHandle<connect::HttpConnect<S, W, <<P as virtual_host::VirtualHostPool<S, W>>::Host as service::ServiceFactory<S, W>>::Service>>, std::option::Option<&'s mut connect::HttpConnect<S, W, <<P as virtual_host::VirtualHostPool<S, W>>::Host as service::ServiceFactory<S, W>>::Service>>, &'t0 mut connect::HttpConnect<S, W, <<P as virtual_host::VirtualHostPool<S, W>>::Host as service::ServiceFactory<S, W>>::Service>, [httparse::Header<'t1>; _], httparse::Request<'t2, 't3>, https::HeaderMap, &'t4 tcp::driver::SocketHandle<S>, tcp::driver::SocketHandle<S>, &'t5 W, W, impl futures::Future, (), std::option::Option<(httparse::Request<'t8, 't9>, https::HeaderMap, std::vec::Vec<u8>, usize)>, std::vec::Vec<u8>, usize, &'t10 https::HeaderMap, https::header::HeaderName, std::option::Option<&'t11 https::HeaderValue>, &'t12 https::HeaderValue, std::result::Result<&'t13 str, https::header::ToStrError>, &'t14 str, std::option::Option<&'t15 str>, &'t16 std::option::Option<&'t17 str>, std::string::String, &'t18 std::string::String, https::Version, &'t19 std::vec::Vec<u8>, std::ops::RangeFrom<usize>, [u8], &'t20 [u8], std::option::Option<request::HttpRequest<S, W>>, request::HttpRequest<S, W>, impl futures::Future}
Backtrace

thread 'rustc' panicked at 'Box<Any>', /rustc/0262de554b4c4c5af346137bbb1664a3f6cf4df2\src\libstd\macros.rs:13:23
stack backtrace:
   0:         0x694a73eb - mingw_set_invalid_parameter_handler
   1:         0x694d324c - mingw_set_invalid_parameter_handler
   2:         0x69498ff5 - mingw_set_invalid_parameter_handler
   3:         0x694abdb0 - mingw_set_invalid_parameter_handler
   4:         0x694aba39 - mingw_set_invalid_parameter_handler
   5:         0x6bb773e5 - mingw_set_invalid_parameter_handler
   6:         0x694ac455 - mingw_set_invalid_parameter_handler
   7:         0x6cfc51e5 - mingw_set_invalid_parameter_handler
   8:         0x6ce236d9 - mingw_set_invalid_parameter_handler
   9:         0x6ce23a62 - mingw_set_invalid_parameter_handler
  10:         0x6cce6487 - mingw_set_invalid_parameter_handler
  11:         0x6cce5340 - mingw_set_invalid_parameter_handler
  12:         0x6cce52e3 - mingw_set_invalid_parameter_handler
  13:         0x6cce635f - mingw_set_invalid_parameter_handler
  14:         0x6cce6307 - mingw_set_invalid_parameter_handler
  15:         0x6cf1bba4 - mingw_set_invalid_parameter_handler
  16:         0x6d0e3128 - mingw_set_invalid_parameter_handler
  17:         0x6d0e47c6 - mingw_set_invalid_parameter_handler
  18:         0x6d0e4a6b - mingw_set_invalid_parameter_handler
  19:         0x6e25afe1 - mingw_set_invalid_parameter_handler
  20:         0x6e4e5ce6 - mingw_set_invalid_parameter_handler
  21:         0x6e056835 - mingw_set_invalid_parameter_handler
  22:         0x6e2eb229 - mingw_set_invalid_parameter_handler
  23:         0x6e14a3f4 - mingw_set_invalid_parameter_handler
  24:         0x6df88524 - mingw_set_invalid_parameter_handler
  25:         0x6df85863 - mingw_set_invalid_parameter_handler
  26:         0x6dfbe8a9 - mingw_set_invalid_parameter_handler
  27:         0x6e4ea67a - mingw_set_invalid_parameter_handler
  28:         0x6e050655 - mingw_set_invalid_parameter_handler
  29:         0x6e2ee98d - mingw_set_invalid_parameter_handler
  30:         0x6e106820 - mingw_set_invalid_parameter_handler
  31:         0x6df936e8 - mingw_set_invalid_parameter_handler
  32:         0x6cd2c1d9 - mingw_set_invalid_parameter_handler
  33:         0x6cd2be2f - mingw_set_invalid_parameter_handler
  34:         0x6cd29764 - mingw_set_invalid_parameter_handler
  35:         0x6d0e3128 - mingw_set_invalid_parameter_handler
  36:         0x6d0e47c6 - mingw_set_invalid_parameter_handler
  37:         0x6d0e4a6b - mingw_set_invalid_parameter_handler
  38:         0x6d499891 - mingw_set_invalid_parameter_handler
  39:         0x6d57a256 - mingw_set_invalid_parameter_handler
  40:         0x6d6654b2 - mingw_set_invalid_parameter_handler
  41:         0x6d680efc - mingw_set_invalid_parameter_handler
  42:         0x6d625890 - mingw_set_invalid_parameter_handler
  43:         0x6d4b6e11 - mingw_set_invalid_parameter_handler
  44:         0x6d4ba8fb - mingw_set_invalid_parameter_handler
  45:         0x6d69a979 - mingw_set_invalid_parameter_handler
  46:         0x6d4bf4b0 - mingw_set_invalid_parameter_handler
  47:         0x6d5e841d - mingw_set_invalid_parameter_handler
  48:         0x6d4d89b3 - mingw_set_invalid_parameter_handler
  49:         0x6e251531 - mingw_set_invalid_parameter_handler
  50:         0x6be5dd76 - mingw_set_invalid_parameter_handler
  51:         0x6bd6a480 - mingw_set_invalid_parameter_handler
  52:         0x6bd54a07 - mingw_set_invalid_parameter_handler
  53:         0x6bb7bea9 - mingw_set_invalid_parameter_handler
  54:         0x6bbf780e - mingw_set_invalid_parameter_handler
  55:         0x6bb79b2c - mingw_set_invalid_parameter_handler
  56:         0x6bbaa474 - mingw_set_invalid_parameter_handler
  57:         0x6bb62c3a - mingw_set_invalid_parameter_handler
  58:         0x694ba9d8 - mingw_set_invalid_parameter_handler
  59:     0x7ff9a52e7974 - mingw_set_invalid_parameter_handler
  60:     0x7ff9a5c3a271 - mingw_set_invalid_parameter_handler

@vmosone vmosone 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 Jun 8, 2020
@csmoe csmoe added the E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example label Jun 8, 2020
@mati865
Copy link
Contributor

mati865 commented Jun 9, 2020

@vmosone could you share your code that caused the issue or a list of steps to reproduce the crash?

@vmosone
Copy link
Author

vmosone commented Jun 9, 2020

I try, but it may take some time.

@mati865
Copy link
Contributor

mati865 commented Sep 8, 2020

@vmosone this issue should no longer happen, could you verify it?

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Jan 9, 2022
…-const-expr, r=oli-obk

Normalize generator-local types with unevaluated constants

Normalize generator-interior types in addition to (i.e. instead of just) erasing regions, since sometimes we collect types with unevaluated const exprs.

Fixes rust-lang#84737
Fixes rust-lang#88171
Fixes rust-lang#92091
Fixes rust-lang#92634
Probably also fixes rust-lang#73114, but that one has no code I could test. It looks like it's the same issue, though.
@bors bors closed this as completed in ca9fc28 Jan 10, 2022
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. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example 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

Successfully merging a pull request may close this issue.

3 participants