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

rustdoc collect intralinks ICE #115062

Closed
vilgotf opened this issue Aug 21, 2023 · 0 comments · Fixed by #115070
Closed

rustdoc collect intralinks ICE #115062

vilgotf opened this issue Aug 21, 2023 · 0 comments · Fixed by #115070
Labels
A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@vilgotf
Copy link

vilgotf commented Aug 21, 2023

Code

cargo doc --no-deps twilight-lavalink

On twilight-lavalink (0.15.1 and latest main)

Meta

Builds on
rustc --version --verbose:

rustc 1.73.0-nightly (6ef7d16be 2023-08-19)
binary: rustc
commit-hash: 6ef7d16be0fb9d6ecf300c27990f4bff49d22d46
commit-date: 2023-08-19
host: x86_64-unknown-linux-gnu
release: 1.73.0-nightly
LLVM version: 17.0.0

ICE on

rustc 1.74.0-nightly (5c6a7e71c 2023-08-20)
binary: rustc
commit-hash: 5c6a7e71cd66705c31c9af94077901a220f0870c
commit-date: 2023-08-20
host: x86_64-unknown-linux-gnu
release: 1.74.0-nightly
LLVM version: 17.0.0

Error output

thread 'rustc' panicked at src/librustdoc/passes/collect_intra_doc_links.rs:1446:33:
byte index 8 is not a char boundary; it is inside '’' (bytes 6..9) of `client’s process method`
Backtrace

stack backtrace:
   0:     0x7f59d3b630fc - std::backtrace_rs::backtrace::libunwind::trace::h68b3f03db065435f
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f59d3b630fc - std::backtrace_rs::backtrace::trace_unsynchronized::hcc29d957a519c467
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f59d3b630fc - std::sys_common::backtrace::_print_fmt::h51e5567c7446b80e
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x7f59d3b630fc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h54890bb4d0b3c330
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f59d3bc93bc - core::fmt::rt::Argument::fmt::heae7cd8ccc900aeb
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/core/src/fmt/rt.rs:138:9
   5:     0x7f59d3bc93bc - core::fmt::write::hc761729f1163b685
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/core/src/fmt/mod.rs:1094:21
   6:     0x7f59d3b55d0e - std::io::Write::write_fmt::hfd968165f9447824
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/io/mod.rs:1714:15
   7:     0x7f59d3b62ee4 - std::sys_common::backtrace::_print::h1b2adaff5c947b3b
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7f59d3b62ee4 - std::sys_common::backtrace::print::hf6a9b81f93e62890
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7f59d3b65fda - std::panicking::panic_hook_with_disk_dump::{{closure}}::h663629ab1a73f13e
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:278:22
  10:     0x7f59d3b65c89 - std::panicking::panic_hook_with_disk_dump::h7dc7628c0cba33b1
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:305:9
  11:     0x7f59d6d12489 - <rustc_driver_impl[4490db7317d016ab]::install_ice_hook::{closure#0} as core[84f2f5510e338f25]::ops::function::FnOnce<(&core[84f2f5510e338f25]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
  12:     0x7f59d3b66880 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h47f6ec65be0f4981
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/alloc/src/boxed.rs:2021:9
  13:     0x7f59d3b66880 - std::panicking::rust_panic_with_hook::hdd1521f6ef2543b7
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:733:13
  14:     0x7f59d3b66607 - std::panicking::begin_panic_handler::{{closure}}::h7c4ede115dee30b0
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:621:13
  15:     0x7f59d3b63626 - std::sys_common::backtrace::__rust_end_short_backtrace::habd7cadfbd319a50
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/sys_common/backtrace.rs:170:18
  16:     0x7f59d3b66352 - rust_begin_unwind
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:617:5
  17:     0x7f59d3bc57c3 - core::panicking::panic_fmt::hb85e049a4301ecd3
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/core/src/panicking.rs:67:14
  18:     0x7f59d3bce41a - core::str::slice_error_fail_rt::hb65a34b1fae3fa38
  19:     0x7f59d3bce227 - core::str::slice_error_fail::h3b10f159df42c419
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/core/src/str/mod.rs:87:9
  20:     0x55ea04eb5445 - <rustdoc[3c46f6e6ced9b5c4]::passes::collect_intra_doc_links::LinkCollector>::resolve_links
  21:     0x55ea04ea207d - rustdoc[3c46f6e6ced9b5c4]::passes::collect_intra_doc_links::collect_intra_doc_links
  22:     0x55ea04edbaee - <rustc_session[f827a11bbd15a9f6]::session::Session>::time::<(rustdoc[3c46f6e6ced9b5c4]::clean::types::Crate, rustdoc[3c46f6e6ced9b5c4]::config::RenderOptions, rustdoc[3c46f6e6ced9b5c4]::formats::cache::Cache), rustdoc[3c46f6e6ced9b5c4]::main_args::{closure#1}::{closure#0}::{closure#0}::{closure#0}>
  23:     0x55ea04dcdcf2 - <rustc_middle[ae9f4c9b3fbb3490]::ty::context::GlobalCtxt>::enter::<rustdoc[3c46f6e6ced9b5c4]::main_args::{closure#1}::{closure#0}::{closure#0}, core[84f2f5510e338f25]::result::Result<(), rustc_span[e97895297a92aa57]::ErrorGuaranteed>>
  24:     0x55ea04ee00fc - <scoped_tls[ff34cbc9fa0ab60c]::ScopedKey<rustc_span[e97895297a92aa57]::SessionGlobals>>::set::<rustc_interface[b2bba20ffff10a85]::interface::run_compiler<core[84f2f5510e338f25]::result::Result<(), rustc_span[e97895297a92aa57]::ErrorGuaranteed>, rustdoc[3c46f6e6ced9b5c4]::main_args::{closure#1}>::{closure#0}, core[84f2f5510e338f25]::result::Result<(), rustc_span[e97895297a92aa57]::ErrorGuaranteed>>
  25:     0x55ea04fcd629 - std[7240a06e7b8f268c]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[b2bba20ffff10a85]::util::run_in_thread_pool_with_globals<rustc_interface[b2bba20ffff10a85]::interface::run_compiler<core[84f2f5510e338f25]::result::Result<(), rustc_span[e97895297a92aa57]::ErrorGuaranteed>, rustdoc[3c46f6e6ced9b5c4]::main_args::{closure#1}>::{closure#0}, core[84f2f5510e338f25]::result::Result<(), rustc_span[e97895297a92aa57]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[84f2f5510e338f25]::result::Result<(), rustc_span[e97895297a92aa57]::ErrorGuaranteed>>
  26:     0x55ea04f876f1 - <<std[7240a06e7b8f268c]::thread::Builder>::spawn_unchecked_<rustc_interface[b2bba20ffff10a85]::util::run_in_thread_pool_with_globals<rustc_interface[b2bba20ffff10a85]::interface::run_compiler<core[84f2f5510e338f25]::result::Result<(), rustc_span[e97895297a92aa57]::ErrorGuaranteed>, rustdoc[3c46f6e6ced9b5c4]::main_args::{closure#1}>::{closure#0}, core[84f2f5510e338f25]::result::Result<(), rustc_span[e97895297a92aa57]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[84f2f5510e338f25]::result::Result<(), rustc_span[e97895297a92aa57]::ErrorGuaranteed>>::{closure#1} as core[84f2f5510e338f25]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  27:     0x7f59d3b711e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bbddabb40181918
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/alloc/src/boxed.rs:2007:9
  28:     0x7f59d3b711e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h4e41f7977be0d993
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/alloc/src/boxed.rs:2007:9
  29:     0x7f59d3b711e5 - std::sys::unix::thread::Thread::new::thread_start::h6eb72cf9b874b24b
                               at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/sys/unix/thread.rs:108:17
  30:     0x7f59d368c9eb - <unknown>
  31:     0x7f59d3710dfc - <unknown>
  32:                0x0 - <unknown>


rustc version: 1.74.0-nightly (5c6a7e71c 2023-08-20)
platform: x86_64-unknown-linux-gnu

query stack during panic:
end of query stack

@vilgotf vilgotf 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 Aug 21, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Aug 21, 2023
@Noratrieb Noratrieb added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name and removed T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Aug 22, 2023
@bors bors closed this as completed in c6f5495 Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-rustdoc Relevant to the rustdoc 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