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

TiKV panic index out of bounds #16639

Closed
Connor1996 opened this issue Mar 13, 2024 · 0 comments · Fixed by #16641
Closed

TiKV panic index out of bounds #16639

Connor1996 opened this issue Mar 13, 2024 · 0 comments · Fixed by #16641
Labels
affects-7.1 severity/major type/bug Type: Issue - Confirmed a bug

Comments

@Connor1996
Copy link
Member

Bug Report

   0: tikv_util::set_panic_hook::{{closure}}
             at workspace/source/tikv/components/tikv_util/src/[lib.rs:476](http://lib.rs:476/):18
   1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/[boxed.rs:2029](http://boxed.rs:2029/):9
      std::panicking::rust_panic_with_hook
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/[panicking.rs:783](http://panicking.rs:783/):13
   2: std::panicking::begin_panic_handler::{{closure}}
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/[panicking.rs:657](http://panicking.rs:657/):13
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/[backtrace.rs:171](http://backtrace.rs:171/):18
   4: rust_begin_unwind
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/[panicking.rs:645](http://panicking.rs:645/):5
   5: core::panicking::panic_fmt
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/[panicking.rs:72](http://panicking.rs:72/):14
   6: core::panicking::panic_bounds_check
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/[panicking.rs:208](http://panicking.rs:208/):5
   7: raftstore::store::fsm::store::StoreFsmDelegate<EK,ER,T>::handle_msgs
             at workspace/source/tikv/components/raftstore/src/store/fsm/[store.rs:838](http://store.rs:838/):13
   8: <raftstore::store::fsm::store::RaftPoller<EK,ER,T> as batch_system::batch::PollHandler<raftstore::store::fsm::peer::PeerFsm<EK,ER>,raftstore::store::fsm::store::StoreFsm<EK>>>::handle_control
             at workspace/source/tikv/components/raftstore/src/store/fsm/[store.rs:1035](http://store.rs:1035/):9
      batch_system::batch::Poller<N,C,Handler>::poll
             at workspace/source/tikv/components/batch-system/src/[batch.rs:369](http://batch.rs:369/):27
   9: batch_system::batch::BatchSystem<N,C>::start_poller::{{closure}}
             at workspace/source/tikv/components/batch-system/src/[batch.rs:550](http://batch.rs:550/):17
      <std::thread::Builder as tikv_util::sys::thread::StdThreadBuildWrapper>::spawn_wrapper::{{closure}}
             at workspace/source/tikv/components/tikv_util/src/sys/[thread.rs:438](http://thread.rs:438/):13
      std::sys_common::backtrace::__rust_begin_short_backtrace
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/[backtrace.rs:155](http://backtrace.rs:155/):18
  10: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/[mod.rs:529](http://mod.rs:529/):17
      <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/[unwind_safe.rs:272](http://unwind_safe.rs:272/):9
      std::panicking::try::do_call
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/[panicking.rs:552](http://panicking.rs:552/):40
      std::panicking::try
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/[panicking.rs:516](http://panicking.rs:516/):19
      std::panic::catch_unwind
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/[panic.rs:142](http://panic.rs:142/):14
      std::thread::Builder::spawn_unchecked_::{{closure}}
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/[mod.rs:528](http://mod.rs:528/):30
      core::ops::function::FnOnce::call_once{{vtable.shim}}
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/[function.rs:250](http://function.rs:250/):5
  11: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/[boxed.rs:2015](http://boxed.rs:2015/):9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/[boxed.rs:2015](http://boxed.rs:2015/):9
      std::sys::unix::thread::Thread::new::thread_start
             at root/.rustup/toolchains/nightly-2023-12-28-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/[thread.rs:108](http://thread.rs:108/):17
  12: start_thread
  13: thread_start
@Connor1996 Connor1996 added type/bug Type: Issue - Confirmed a bug severity/major labels Mar 13, 2024
ti-chi-bot bot added a commit that referenced this issue Mar 13, 2024
close #16639

Fix store msg discriminant out of bound

Signed-off-by: Connor1996 <zbk602423539@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
dbsid pushed a commit to dbsid/tikv that referenced this issue Mar 24, 2024
close tikv#16639

Fix store msg discriminant out of bound

Signed-off-by: Connor1996 <zbk602423539@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Signed-off-by: dbsid <chenhuansheng@pingcap.com>
ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this issue Apr 19, 2024
close tikv#16639

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this issue Apr 19, 2024
close tikv#16639

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this issue Apr 19, 2024
close tikv#16639

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot pushed a commit that referenced this issue Apr 19, 2024
close #16639

Fix store msg discriminant out of bound

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.1 severity/major type/bug Type: Issue - Confirmed a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants