Skip to content

TiFlash crash at RegionData::getLockByKey #9915

@JaySon-Huang

Description

@JaySon-Huang

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

3. What did you see instead (Required)

[2025/02/24 10:08:56.821 +00:00] [ERROR] [BaseDaemon.cpp:563] ["
  0xaaaac38c0acc\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+122096332]
                \tlibs/libdaemon/src/BaseDaemon.cpp:214
  0xffff8f706850\t<unknown symbol> [linux-vdso.so.1+2128]
  0xaaaac4dde864\tstd::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<DB::RegionLockCFDataTrait::Key, std::__1::tuple<std::__1::shared_ptr<DB::StringObject<true> const>, std::__1::shared_ptr<DB::StringObject<false> const>, std::__1::shared_ptr<DB::RecordKVFormat::DecodedLockCFValue const>>>, void*>*> std::__1::__hash_table<std::__1::__hash_value_type<DB::RegionLockCFDataTrait::Key, std::__1::tuple<std::__1::shared_ptr<DB::StringObject<true> const>, std::__1::shared_ptr<DB::StringObject<false> const>, std::__1::shared_ptr<DB::RecordKVFormat::DecodedLockCFValue const>>>, std::__1::__unordered_map_hasher<DB::RegionLockCFDataTrait::Key, std::__1::__hash_value_type<DB::RegionLockCFDataTrait::Key, std::__1::tuple<std::__1::shared_ptr<DB::StringObject<true> const>, std::__1::shared_ptr<DB::StringObject<false> const>, std::__1::shared_ptr<DB::RecordKVFormat::DecodedLockCFValue const>>>, DB::RegionLockCFDataTrait::Key::Hash, std::__1::equal_to<DB::RegionLockCFDataTrait::Key>, true>, std::__1::__unordered_map_equal<DB::RegionLockCFDataTrait::Key, std::__1::__hash_value_type<DB::RegionLockCFDataTrait::Key, std::__1::tuple<std::__1::shared_ptr<DB::StringObject<true> const>, std::__1::shared_ptr<DB::StringObject<false> const>, std::__1::shared_ptr<DB::RecordKVFormat::DecodedLockCFValue const>>>, std::__1::equal_to<DB::RegionLockCFDataTrait::Key>, DB::RegionLockCFDataTrait::Key::Hash, true>, std::__1::allocator<std::__1::__hash_value_type<DB::RegionLockCFDataTrait::Key, std::__1::tuple<std::__1::shared_ptr<DB::StringObject<true> const>, std::__1::shared_ptr<DB::StringObject<false> const>, std::__1::shared_ptr<DB::RecordKVFormat::DecodedLockCFValue const>>>>>::find<DB::RegionLockCFDataTrait::Key>(DB::RegionLockCFDataTrait::Key const&) const [tiflash+144238692]
                \t/usr/lib/llvm-17/bin/../include/c++/v1/__string/char_traits.h:836
  0xaaaac4de344c\tDB::RegionData::getLockByKey(DB::StringObject<true> const&) const [tiflash+144258124]
                \t/usr/lib/llvm-17/bin/../include/c++/v1/unordered_map:1534
  0xaaaac4d772e8\tGetLockByKey [tiflash+143815400]
                \tdbms/src/Storages/KVStore/Region.h:247
  0xffff8d2e15fc\tengine_store_ffi::core::forward_raft::command::_$LT$impl$u20$engine_store_ffi..core..forwarder..ProxyForwarder$LT$T$C$ER$GT$$GT$::commit_lock::h1b5ab13274399c3a [libtiflash_proxy.so+24974844]
  0xffff8d2e4f7c\tengine_store_ffi::core::forward_raft::command::_$LT$impl$u20$engine_store_ffi..core..forwarder..ProxyForwarder$LT$T$C$ER$GT$$GT$::post_exec_query::h6451921ced41c73b [libtiflash_proxy.so+24989564]
  0xffff8ddb2040\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::process_raft_cmd::h63495e026658e357 [libtiflash_proxy.so+36315200]
  0xffff8ddb80b8\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::handle_raft_committed_entries::h4dd30199b44e8821 [libtiflash_proxy.so+36339896]
  0xffff8dd990b0\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_apply::hbc79bfcaf469891c [libtiflash_proxy.so+36212912]
  0xffff8dd9c974\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_tasks::h361a6856b0f30760 [libtiflash_proxy.so+36227444]
  0xffff8d30e464\t_$LT$raftstore..store..fsm..apply..ApplyPoller$LT$EK$GT$$u20$as$u20$batch_system..batch..PollHandler$LT$raftstore..store..fsm..apply..ApplyFsm$LT$EK$GT$$C$raftstore..store..fsm..apply..ControlFsm$GT$$GT$::handle_normal::h09682f9df909b748 [libtiflash_proxy.so+25158756]
  0xffff8d29e28c\tbatch_system::batch::Poller$LT$N$C$C$C$Handler$GT$::poll::hc563579cded1fb6d [libtiflash_proxy.so+24699532]
  0xffff8d33e458\tstd::sys_common::backtrace::__rust_begin_short_backtrace::h68d9e567aa7b2d6e [libtiflash_proxy.so+25355352]
  0xffff8d3903bc\tcore::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hdc17362e3f73ec8d [libtiflash_proxy.so+25691068]
  0xffff8e5c5bc0\tstd::sys::unix::thread::Thread::new::thread_start::h217098f6331af4d1 [libtiflash_proxy.so+44784576]
  0xffff8b83d5c8\tstart_thread [libc.so.6+513480]
                \t./nptl/./nptl/pthread_create.c:442"] [source=BaseDaemon] [thread_id=4373]

4. What is your TiFlash version? (Required)

cse version base on release-7.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions