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

failed to check some repos error byte index 4294800896 is out of bounds #94

Open
yihong0618 opened this issue Jan 17, 2025 · 0 comments · May be fixed by #95
Open

failed to check some repos error byte index 4294800896 is out of bounds #94

yihong0618 opened this issue Jan 17, 2025 · 0 comments · May be fixed by #95

Comments

@yihong0618
Copy link
Contributor

yihong0618 commented Jan 17, 2025

when try to check https://github.com/GreptimeTeam/greptimedb

using command cargo rapx -opt
error happens

6f17d22bba15001f/annotate-snippets-0.11.5/src/renderer/display_list.rs:1192:51: byte index 4294800896 is out of bounds of fn __static_ref_initialize() -> $T { $e } stack backtrace: Checking spki v0.7.3 0: 0x112f6ba90 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h8e11dfb6d5da88c4 1: 0x1102427f4 - core::fmt::write::hec1cfde14561ed96 2: 0x112f5fb2c - std::io::Write::write_fmt::hd524c766368a2cf8 3: 0x112f6b950 - std::sys::backtrace::BacktraceLock::print::hdda7ab4256cadc8b 4: 0x112f6de44 - std::panicking::default_hook::{{closure}}::hae027ef865aedff9 5: 0x112f6dc90 - std::panicking::default_hook::h375507952078eeb7 6: 0x110e4603c - <alloc[1c88932b2e250433]::boxed::Box<rustc_driver_impl[ef8118655be4de9c]::install_ice_hook::{closure#0}> as core[abc7010a31dcf5e7]::ops::function::Fn<(&dyn for<'a, 'b> core[abc7010a31dcf5e7]::ops::function::Fn<(&'a std[b26ffc33e6f52a9f]::panic::PanicHookInfo<'b>,), Output = ()> + core[abc7010a31dcf5e7]::marker::Send + core[abc7010a31dcf5e7]::marker::Sync, &std[b26ffc33e6f52a9f]::panic::PanicHookInfo)>>::call 7: 0x112f6e6d0 - std::panicking::rust_panic_with_hook::h95c81881be6d1ab0 8: 0x112f6e34c - std::panicking::begin_panic_handler::{{closure}}::h2400eb3ff305e0fb 9: 0x112f6bf38 - std::sys::backtrace::__rust_end_short_backtrace::h134f90ed5470cc38 10: 0x112f6e010 - _rust_begin_unwind 11: 0x1155efdf4 - core::panicking::panic_fmt::h85773841f8013f9e 12: 0x110247544 - core::str::slice_error_fail_rt::hd12b5709d49968b0 13: 0x1155f0408 - core::str::slice_error_fail::hba590d074cb20dc6 14: 0x1055a5bfc - annotate_snippets::renderer::display_list::format_message::h9d20e48e9e1ba0c4 15: 0x1055ad1f4 - annotate_snippets::renderer::Renderer::render::hfa4876979ec01fb8 16: 0x1048cf1dc - <rapx::analysis::opt::memory_cloning::used_as_immutable::UsedAsImmutableCheck as rapx::analysis::opt::OptCheck>::report::hbb6ae31247984917 17: 0x1048c9228 - rapx::analysis::opt::Opt::start::hbf308ebc47ca03a2 18: 0x1048ca960 - rapx::start_analyzer::h9f34649a78c7f679 19: 0x1048b3b7c - rustc_middle::ty::context::GlobalCtxt::enter::h9d4fabca55ca6602 20: 0x1048ca1b8 - <rapx::RapCallback as rustc_driver_impl::Callbacks>::after_analysis::hae91c7b33e1639d0 21: 0x110e00a58 - <rustc_interface[78b6ba18f4903a76]::interface::Compiler>::enter::<rustc_driver_impl[ef8118655be4de9c]::run_compiler::{closure#0}::{closure#1}, core[abc7010a31dcf5e7]::result::Result<core[abc7010a31dcf5e7]::option::Option<rustc_interface[78b6ba18f4903a76]::queries::Linker>, rustc_span[d329457fc620e02f]::ErrorGuaranteed>> 22: 0x110e77900 - rustc_span[d329457fc620e02f]::create_session_globals_then::<core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>, rustc_interface[78b6ba18f4903a76]::util::run_in_thread_with_globals<rustc_interface[78b6ba18f4903a76]::util::run_in_thread_pool_with_globals<rustc_interface[78b6ba18f4903a76]::interface::run_compiler<core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>, rustc_driver_impl[ef8118655be4de9c]::run_compiler::{closure#0}>::{closure#1}, core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>>::{closure#0}, core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> 23: 0x110e30e04 - std[b26ffc33e6f52a9f]::sys::backtrace::_rust_begin_short_backtrace::<rustc_interface[78b6ba18f4903a76]::util::run_in_thread_with_globals<rustc_interface[78b6ba18f4903a76]::util::run_in_thread_pool_with_globals<rustc_interface[78b6ba18f4903a76]::interface::run_compiler<core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>, rustc_driver_impl[ef8118655be4de9c]::run_compiler::{closure#0}>::{closure#1}, core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>>::{closure#0}, core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>> 24: 0x110e26b9c - <<std[b26ffc33e6f52a9f]::thread::Builder>::spawn_unchecked<rustc_interface[78b6ba18f4903a76]::util::run_in_thread_with_globals<rustc_interface[78b6ba18f4903a76]::util::run_in_thread_pool_with_globals<rustc_interface[78b6ba18f4903a76]::interface::run_compiler<core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>, rustc_driver_impl[ef8118655be4de9c]::run_compiler::{closure#0}>::{closure#1}, core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>>::{closure#0}, core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[abc7010a31dcf5e7]::result::Result<(), rustc_span[d329457fc620e02f]::ErrorGuaranteed>>::{closure#1} as core[abc7010a31dcf5e7]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 25: 0x112f78b48 - std::sys::pal::unix::thread::Thread::new::thread_start::h44798a2de47419ac 26: 0x1914db2e4 - __pthread_deallocate

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: bug_report_url

note: please make sure that you have updated to the latest nightly
yihong0618 added a commit to yihong0618/RAPx that referenced this issue Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant