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: no errors encountered even though delay_span_bug issued #116809

Closed
jyn514 opened this issue Oct 16, 2023 · 3 comments
Closed

ICE: no errors encountered even though delay_span_bug issued #116809

jyn514 opened this issue Oct 16, 2023 · 3 comments
Assignees
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

@jyn514
Copy link
Member

jyn514 commented Oct 16, 2023

i am so sorry

@estebank this bit in particular looks wrong, probably it needs to omit the colon on windows?

warning: the ICE couldn't be written to `C:\Users\jyn\src\cursed\rustc-ice-2023-10-16T17:45:34.3766412Z-2188.txt`: The filename, directory name, or volume label syntax is incorrect. (os error 123)

Code

#![feature(no_core, lang_items, start)]
#![allow(internal_features, non_snake_case)]
#![no_core]

#[lang = "sized"]
trait Sized {}
#[lang = "copy"]
trait Copy {}

#[start]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
	0
}

#[cfg(target_env = "msvc")]
#[no_mangle]
fn mainCRTStartup() -> isize {
	main(0, null_mut()) as _
}

fn null_mut<T>() -> *mut T {
	0 as _
}

Meta

rustc --version --verbose:

rustc 1.75.0-nightly (42b1224e9 2023-10-15) running on x86_64-pc-windows-msvc

Error output

error: internal compiler error: no errors encountered even though `delay_span_bug` issued

error: internal compiler error: error performing ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: UserFacing }, value: ProvePredicate { predicate: Binder { value: TraitPredicate(<isize as Copy>, polarity:Positive), bound_vars: [] } } }
  --> src\main.rs:48:2
   |
48 |     main(0, null_mut()) as _
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: delayed at /rustc/42b1224e9eb37177f608d3f6a6f2be2ee13902e4\compiler\rustc_trait_selection\src\traits\query\type_op\mod.rs:163:36
  --> src\main.rs:48:2
   |
48 |     main(0, null_mut()) as _
   |     ^^^^^^^^^^^^^^^^^^^^^^^^

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

warning: the ICE couldn't be written to `C:\Users\jyn\src\cursed\rustc-ice-2023-10-16T17:45:34.3766412Z-2188.txt`: The filename, directory name, or volume label syntax is incorrect. (os error 123)

note: rustc 1.75.0-nightly (42b1224e9 2023-10-15) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]

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

query stack during panic:
end of query stack
error: could not compile `cursed` (bin "cursed")
Backtrace

note: delayed at /rustc/42b1224e9eb37177f608d3f6a6f2be2ee13902e4\compiler\rustc_trait_selection\src\traits\query\type_op\mod.rs:163:36
         0: std::backtrace::Backtrace::disabled
         1: std::backtrace::Backtrace::capture
         2: <rustc_errors::HandlerInner>::emit_diagnostic
         3: <rustc_borrowck::renumber::RegionRenumberer as rustc_middle::mir::visit::MutVisitor>::visit_constant
         4: <rustc_borrowck::member_constraints::MemberConstraintSet<rustc_middle::ty::sty::RegionVid> as core::default::Default>::default
         5: <rustc_borrowck::type_check::TypeVerifier as rustc_middle::mir::visit::Visitor>::visit_place
         6: <rustc_borrowck::region_infer::values::PointIndex as core::ops::arith::Add<usize>>::add
         7: <rustc_borrowck::type_check::TypeVerifier as rustc_middle::mir::visit::Visitor>::visit_body
         8: <rustc_borrowck::borrow_set::BorrowSet>::get_index_of
         9: <polonius_engine::facts::AllFacts<rustc_borrowck::facts::RustcFacts> as rustc_borrowck::facts::AllFactsExt>::enabled
        10: <rustc_borrowck::MirBorrowckCtxt>::consume_operand
        11: <rustc_middle::ty::adjustment::AutoBorrowMutability as rustc_mir_build::thir::cx::expr::ToBorrowKind>::to_borrow_kind
        12: <rustc_query_impl::plumbing::QueryCtxt as rustc_query_system::query::QueryContext>::load_side_effects
        13: <rustc_query_impl::plumbing::QueryCtxt as rustc_query_system::query::QueryContext>::load_side_effects
        14: <rustc_query_impl::plumbing::QueryCtxt as rustc_query_system::query::QueryContext>::load_side_effects
        15: <rustc_query_impl::plumbing::QueryCtxt as rustc_query_system::query::QueryContext>::load_side_effects
        16: once_cell::imp::initialize_or_wait
        17: time_core::util::is_leap_year
        18: rustc_interface::passes::analysis
        19: rustc_query_impl::profiling_support::alloc_self_profile_query_strings
        20: rustc_query_impl::profiling_support::alloc_self_profile_query_strings
        21: rustc_query_impl::profiling_support::alloc_self_profile_query_strings
        22: rustc_query_impl::profiling_support::alloc_self_profile_query_strings
        23: rustc_query_impl::profiling_support::alloc_self_profile_query_strings
        24: <rustc_middle::ty::SymbolName as core::fmt::Debug>::fmt
        25: <rustc_middle::ty::SymbolName as core::fmt::Debug>::fmt
        26: rustc_driver_impl::main
        27: <rustc_middle::ty::SymbolName as core::fmt::Debug>::fmt
        28: <rustc_middle::ty::SymbolName as core::fmt::Debug>::fmt
        29: std::sys::windows::thread::Thread::new
        30: BaseThreadInitThunk
        31: RtlUserThreadStart

@rustbot label +O-windows

@jyn514 jyn514 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 Oct 16, 2023
@rustbot rustbot added needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. O-windows Operating system: Windows labels Oct 16, 2023
@jyn514
Copy link
Member Author

jyn514 commented Oct 16, 2023

note that removing the unnecessary as _ makes this compile

@Noratrieb Noratrieb changed the title delay_span_bug: error performing ParamEnvAnd: ICE couldn't be written ICE couldn't be written Oct 16, 2023
@Noratrieb Noratrieb removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Oct 16, 2023
estebank added a commit to estebank/rust that referenced this issue Oct 16, 2023
Windows paths do not support `:`, so use a datetime format in ICE dump
paths that Windows will accept.

Fix rust-lang#116809, fix rust-lang#115180.
@estebank estebank self-assigned this Oct 16, 2023
@estebank estebank removed the O-windows Operating system: Windows label Oct 16, 2023
@estebank
Copy link
Contributor

Modifying this ticket to only cover the delay_span_bug, while #115180 covers only the windows path issue.

@estebank estebank changed the title ICE couldn't be written ICE: no errors encountered even though delay_span_bug issued Oct 16, 2023
@jyn514
Copy link
Member Author

jyn514 commented Oct 16, 2023

@estebank my understanding is the policy for no_core ICEs is WONTFIX, so probably this should just be closed

@Noratrieb Noratrieb closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2023
estebank added a commit to estebank/rust that referenced this issue Oct 16, 2023
Windows paths do not support `:`, so use a datetime format in ICE dump
paths that Windows will accept.

Fix rust-lang#116809, fix rust-lang#115180.
estebank added a commit to estebank/rust that referenced this issue Oct 16, 2023
Windows paths do not support `:`, so use a datetime format in ICE dump
paths that Windows will accept.

Fix rust-lang#116809, fix rust-lang#115180.
estebank added a commit to estebank/rust that referenced this issue Oct 17, 2023
Windows paths do not support `:`, so use a datetime format in ICE dump
paths that Windows will accept.

Fix rust-lang#116809, fix rust-lang#115180.
bors added a commit to rust-lang-ci/rust that referenced this issue Oct 18, 2023
…enkov

Use `YYYY-MM-DDTHH_MM_SS` as datetime format for ICE dump files

Windows paths do not support `:`, so use a datetime format in ICE dump paths that Windows will accept.

CC rust-lang#116809, fix rust-lang#115180.
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

4 participants