Closed JinHai-CN closed 4 days ago
==================
WARNING: ThreadSanitizer: data race (pid=210458)
Write of size 8 at 0x722000004418 by thread T43:
#0 operator delete(void*) <null> (infinity+0x3ea67d) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#1 std::__1::promise<void>::~promise() <null> (infinity+0x3cafc95) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#2 void std::__1::__destroy_at[abi:ne180100]<std::__1::packaged_task<void (int)>, 0>(std::__1::packaged_task<void (int)>*) /usr/lib/llvm-18/include/c++/v1/__memory/construct_at.h:67:11 (infinity+0x128d2f5) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#3 void std::__1::allocator_traits<std::__1::allocator<std::__1::packaged_task<void (int)>>>::destroy[abi:ne180100]<std::__1::packaged_task<void (int)>, void, void>(std::__1::allocator<std::__1::packaged_task<void (int)>>&, std::__1::packaged_task<void (int)>*) /usr/lib/llvm-18/include/c++/v1/__memory/allocator_traits.h:316:5 (infinity+0x128d2c1) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#4 void std::__1::__shared_ptr_emplace<std::__1::packaged_task<void (int)>, std::__1::allocator<std::__1::packaged_task<void (int)>>>::__on_zero_shared_impl[abi:ne180100]<std::__1::allocator<std::__1::packaged_task<void (int)>>, 0>() /usr/lib/llvm-18/include/c++/v1/__memory/shared_ptr.h:284:5 (infinity+0x128d26e) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#5 std::__1::__shared_ptr_emplace<std::__1::packaged_task<void (int)>, std::__1::allocator<std::__1::packaged_task<void (int)>>>::__on_zero_shared() /usr/lib/llvm-18/include/c++/v1/__memory/shared_ptr.h:287:78 (infinity+0x128ce15) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#6 std::__1::__shared_count::__release_shared[abi:ne180100]() /usr/lib/llvm-18/include/c++/v1/__memory/shared_ptr.h:157:7 (infinity+0x3f93ea) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#7 std::__1::__shared_weak_count::__release_shared[abi:ne180100]() /usr/lib/llvm-18/include/c++/v1/__memory/shared_ptr.h:186:25 (infinity+0x3f9379) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#8 std::__1::shared_ptr<std::__1::packaged_task<void (int)>>::~shared_ptr[abi:ne180100]() /usr/lib/llvm-18/include/c++/v1/__memory/shared_ptr.h:648:17 (infinity+0x128c7c6) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#9 std::__1::future<decltype(fp(0))> ctpl::thread_pool::push<void infinity::HnswIndexInMem@abstract_hnsw::InsertVecs<infinity::MemIndexInserterIter@block_column_iter<float>, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>(infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&, infinity::MemIndexInserterIter@block_column_iter<float>&&, infinity::HnswInsertConfig@hnsw_common const&, unsigned long&)::'lambda'(int)>(infinity::MemIndexInserterIter@block_column_iter<float>&&)::'lambda'(int)::~() /home/huikong/Code/work/infinity2/third_party/ctpl/ctpl_stl.h:261:55 (infinity+0x30753b5) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#10 std::__1::__compressed_pair_elem<std::__1::future<decltype(fp(0))> ctpl::thread_pool::push<void infinity::HnswIndexInMem@abstract_hnsw::InsertVecs<infinity::MemIndexInserterIter@block_column_iter<float>, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>(infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&, infinity::MemIndexInserterIter@block_column_iter<float>&&, infinity::HnswInsertConfig@hnsw_common const&, unsigned long&)::'lambda'(int)>(infinity::MemIndexInserterIter@block_column_iter<float>&&)::'lambda'(int), 0, false>::~__compressed_pair_elem() /usr/lib/llvm-18/include/c++/v1/__memory/compressed_pair.h:44:8 (infinity+0x3076c55) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#11 std::__1::__compressed_pair<std::__1::future<decltype(fp(0))> ctpl::thread_pool::push<void infinity::HnswIndexInMem@abstract_hnsw::InsertVecs<infinity::MemIndexInserterIter@block_column_iter<float>, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>(infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&, infinity::MemIndexInserterIter@block_column_iter<float>&&, infinity::HnswInsertConfig@hnsw_common const&, unsigned long&)::'lambda'(int)>(infinity::MemIndexInserterIter@block_column_iter<float>&&)::'lambda'(int), std::__1::allocator<std::__1::future<decltype(fp(0))> ctpl::thread_pool::push<void infinity::HnswIndexInMem@abstract_hnsw::InsertVecs<infinity::MemIndexInserterIter@block_column_iter<float>, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>(infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&, infinity::MemIndexInserterIter@block_column_iter<float>&&, infinity::HnswInsertConfig@hnsw_common const&, unsigned long&)::'lambda'(int)>(infinity::MemIndexInserterIter@block_column_iter<float>&&)::'lambda'(int)>>::~__compressed_pair() /usr/lib/llvm-18/include/c++/v1/__memory/compressed_pair.h:97:7 (infinity+0x3076e45) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#12 std::__1::__function::__alloc_func<std::__1::future<decltype(fp(0))> ctpl::thread_pool::push<void infinity::HnswIndexInMem@abstract_hnsw::InsertVecs<infinity::MemIndexInserterIter@block_column_iter<float>, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>(infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&, infinity::MemIndexInserterIter@block_column_iter<float>&&, infinity::HnswInsertConfig@hnsw_common const&, unsigned long&)::'lambda'(int)>(infinity::MemIndexInserterIter@block_column_iter<float>&&)::'lambda'(int), std::__1::allocator<std::__1::future<decltype(fp(0))> ctpl::thread_pool::push<void infinity::HnswIndexInMem@abstract_hnsw::InsertVecs<infinity::MemIndexInserterIter@block_column_iter<float>, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>(infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&, infinity::MemIndexInserterIter@block_column_iter<float>&&, infinity::HnswInsertConfig@hnsw_common const&, unsigned long&)::'lambda'(int)>(infinity::MemIndexInserterIter@block_column_iter<float>&&)::'lambda'(int)>, void (int)>::destroy[abi:ne180100]() /usr/lib/llvm-18/include/c++/v1/__functional/function.h:182:58 (infinity+0x3077f45) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#13 std::__1::__function::__func<std::__1::future<decltype(fp(0))> ctpl::thread_pool::push<void infinity::HnswIndexInMem@abstract_hnsw::InsertVecs<infinity::MemIndexInserterIter@block_column_iter<float>, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>(infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&, infinity::MemIndexInserterIter@block_column_iter<float>&&, infinity::HnswInsertConfig@hnsw_common const&, unsigned long&)::'lambda'(int)>(infinity::MemIndexInserterIter@block_column_iter<float>&&)::'lambda'(int), std::__1::allocator<std::__1::future<decltype(fp(0))> ctpl::thread_pool::push<void infinity::HnswIndexInMem@abstract_hnsw::InsertVecs<infinity::MemIndexInserterIter@block_column_iter<float>, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>(infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&, infinity::MemIndexInserterIter@block_column_iter<float>&&, infinity::HnswInsertConfig@hnsw_common const&, unsigned long&)::'lambda'(int)>(infinity::MemIndexInserterIter@block_column_iter<float>&&)::'lambda'(int)>, void (int)>::destroy() /usr/lib/llvm-18/include/c++/v1/__functional/function.h:297:8 (infinity+0x3076689) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#14 std::__1::__function::__value_func<void (int)>::~__value_func[abi:ne180100]() /usr/lib/llvm-18/include/c++/v1/__functional/function.h:396:13 (infinity+0x55dd86) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#15 std::__1::function<void (int)>::~function() /usr/lib/llvm-18/include/c++/v1/__functional/function.h:972:43 (infinity+0x55d7b5) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#16 std::__1::default_delete<std::__1::function<void (int)>>::operator()[abi:ne180100](std::__1::function<void (int)>*) const /usr/lib/llvm-18/include/c++/v1/__memory/unique_ptr.h:66:5 (infinity+0x5653f3) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#17 std::__1::unique_ptr<std::__1::function<void (int)>, std::__1::default_delete<std::__1::function<void (int)>>>::reset[abi:ne180100](std::__1::function<void (int)>*) /usr/lib/llvm-18/include/c++/v1/__memory/unique_ptr.h:266:7 (infinity+0x565324) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#18 std::__1::unique_ptr<std::__1::function<void (int)>, std::__1::default_delete<std::__1::function<void (int)>>>::~unique_ptr[abi:ne180100]() /usr/lib/llvm-18/include/c++/v1/__memory/unique_ptr.h:236:71 (infinity+0x564fb9) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#19 ctpl::thread_pool::set_thread(int)::'lambda'()::operator()() const /home/huikong/Code/work/infinity2/third_party/ctpl/ctpl_stl.h:294:21 (infinity+0x564d69) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#20 decltype(std::declval<ctpl::thread_pool::set_thread(int)::'lambda'()>()()) std::__1::__invoke[abi:ne180100]<ctpl::thread_pool::set_thread(int)::'lambda'()>(ctpl::thread_pool::set_thread(int)::'lambda'()&&) /usr/lib/llvm-18/include/c++/v1/__type_traits/invoke.h:344:25 (infinity+0x564b85) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#21 void std::__1::__thread_execute[abi:ne180100]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, ctpl::thread_pool::set_thread(int)::'lambda'()>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, ctpl::thread_pool::set_thread(int)::'lambda'()>&, std::__1::__tuple_indices<...>) /usr/lib/llvm-18/include/c++/v1/__thread/thread.h:193:3 (infinity+0x564b3d) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#22 void* std::__1::__thread_proxy[abi:ne180100]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, ctpl::thread_pool::set_thread(int)::'lambda'()>>(void*) /usr/lib/llvm-18/include/c++/v1/__thread/thread.h:202:3 (infinity+0x564772) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
Previous atomic read of size 1 at 0x722000004418 by thread T11 (mutexes: write M0):
#0 pthread_cond_wait <null> (infinity+0x36b5c2) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#1 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) <null> (infinity+0x3caef25) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#2 _ZZN8infinityW13abstract_hnsw14HnswIndexInMem10InsertVecsEmPNS_W18block_column_entry16BlockColumnEntryEPNS_W14buffer_manager13BufferManagerEmmRKNS_W11hnsw_common16HnswInsertConfigEENK3$_0clIRPNS_W8hnsw_alg7KnnHnswINS_W14vec_store_type19PlainL2VecStoreTypeIfEEjEEEEDaOT_ /home/huikong/Code/work/infinity2/src/storage/knn_index/knn_hnsw/abstract_hnsw.cpp:156:25 (infinity+0x30435ba) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#3 decltype(std::declval<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>()(std::declval<infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&>())) std::__1::__invoke[abi:ne180100]<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&>(infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0&&, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*&) /usr/lib/llvm-18/include/c++/v1/__type_traits/invoke.h:344:25 (infinity+0x3043325) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#4 decltype(auto) std::__1::__variant_detail::__visitation::__variant::__value_visitor<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>::operator()[abi:ne180100]<std::__1::__variant_detail::__alt<2ul, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>&>(std::__1::__variant_detail::__alt<2ul, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>&) const /usr/lib/llvm-18/include/c++/v1/variant:619:14 (infinity+0x30432ae) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#5 decltype(std::declval<std::__1::__variant_detail::__visitation::__variant::__value_visitor<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>>()(std::declval<std::__1::__variant_detail::__alt<2ul, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>&>())) std::__1::__invoke[abi:ne180100]<std::__1::__variant_detail::__visitation::__variant::__value_visitor<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>, std::__1::__variant_detail::__alt<2ul, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>&>(std::__1::__variant_detail::__visitation::__variant::__value_visitor<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>&&, std::__1::__variant_detail::__alt<2ul, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*>&) /usr/lib/llvm-18/include/c++/v1/__type_traits/invoke.h:344:25 (infinity+0x3043235) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#6 decltype(auto) std::__1::__variant_detail::__visitation::__base::__dispatcher<2ul>::__dispatch[abi:ne180100]<std::__1::__variant_detail::__visitation::__variant::__value_visitor<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>&&, std::__1::__variant_detail::__base<(std::__1::__variant_detail::_Trait)0, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQCosVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQIPVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQL2VecStoreType@vec_store_type<float, signed char>, unsigned int>*, std::nullptr_t>&>(std::__1::__variant_detail::__visitation::__variant::__value_visitor<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>&&, std::__1::__variant_detail::__base<(std::__1::__variant_detail::_Trait)0, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQCosVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQIPVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQL2VecStoreType@vec_store_type<float, signed char>, unsigned int>*, std::nullptr_t>&) /usr/lib/llvm-18/include/c++/v1/variant:533:14 (infinity+0x3041acf) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#7 decltype(auto) std::__1::__variant_detail::__visitation::__base::__visit_alt[abi:ne180100]<std::__1::__variant_detail::__visitation::__variant::__value_visitor<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>, std::__1::__variant_detail::__impl<infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQCosVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQIPVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQL2VecStoreType@vec_store_type<float, signed char>, unsigned int>*, std::nullptr_t>&>(std::__1::__variant_detail::__visitation::__variant::__value_visitor<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>&&, std::__1::__variant_detail::__impl<infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQCosVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQIPVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQL2VecStoreType@vec_store_type<float, signed char>, unsigned int>*, std::nullptr_t>&) /usr/lib/llvm-18/include/c++/v1/variant:501:12 (infinity+0x3041952) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#8 decltype(auto) std::__1::__variant_detail::__visitation::__variant::__visit_alt[abi:ne180100]<std::__1::__variant_detail::__visitation::__variant::__value_visitor<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>, std::__1::variant<infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQCosVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQIPVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQL2VecStoreType@vec_store_type<float, signed char>, unsigned int>*, std::nullptr_t>&>(std::__1::__variant_detail::__visitation::__variant::__value_visitor<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0>&&, std::__1::variant<infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQCosVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQIPVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQL2VecStoreType@vec_store_type<float, signed char>, unsigned int>*, std::nullptr_t>&) /usr/lib/llvm-18/include/c++/v1/variant:586:12 (infinity+0x3041855) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#9 decltype(auto) std::__1::__variant_detail::__visitation::__variant::__visit_value[abi:ne180100]<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0, std::__1::variant<infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQCosVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQIPVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQL2VecStoreType@vec_store_type<float, signed char>, unsigned int>*, std::nullptr_t>&>(infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0&&, std::__1::variant<infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQCosVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQIPVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQL2VecStoreType@vec_store_type<float, signed char>, unsigned int>*, std::nullptr_t>&) /usr/lib/llvm-18/include/c++/v1/variant:598:12 (infinity+0x30417e2) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#10 decltype(auto) std::__1::visit[abi:ne180100]<infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0, std::__1::variant<infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQCosVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQIPVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQL2VecStoreType@vec_store_type<float, signed char>, unsigned int>*, std::nullptr_t>&, void>(infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&)::$_0&&, std::__1::variant<infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<float>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<unsigned char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainCosVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainIPVecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::PlainL2VecStoreType@vec_store_type<signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQCosVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQIPVecStoreType@vec_store_type<float, signed char>, unsigned int>*, infinity::KnnHnsw@hnsw_alg<infinity::LVQL2VecStoreType@vec_store_type<float, signed char>, unsigned int>*, std::nullptr_t>&) /usr/lib/llvm-18/include/c++/v1/variant:1561:10 (infinity+0x30377d3) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#11 infinity::HnswIndexInMem@abstract_hnsw::InsertVecs(unsigned long, infinity::BlockColumnEntry@block_column_entry*, infinity::BufferManager@buffer_manager*, unsigned long, unsigned long, infinity::HnswInsertConfig@hnsw_common const&) /home/huikong/Code/work/infinity2/src/storage/knn_index/knn_hnsw/abstract_hnsw.cpp:146:5 (infinity+0x3037755) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#12 infinity::SegmentIndexEntry@segment_index_entry::MemIndexInsert(std::__1::shared_ptr<infinity::BlockEntry@block_entry>, unsigned int, unsigned int, unsigned long, infinity::BufferManager@buffer_manager*) /home/huikong/Code/work/infinity2/src/storage/meta/entry/segment_index_entry.cpp:234:33 (infinity+0x13dd097) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#13 infinity::TableEntry@table_entry::MemIndexInsertInner(infinity::TableIndexEntry@table_index_entry*, infinity::Txn@txn*, unsigned int, std::__1::vector<infinity::AppendRange@data_access_state, std::__1::allocator<infinity::AppendRange@data_access_state>>&) /home/huikong/Code/work/infinity2/src/storage/meta/entry/table_entry.cpp:767:30 (infinity+0x149f4dd) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#14 infinity::TableEntry@table_entry::MemIndexInsert(infinity::Txn@txn*, std::__1::vector<infinity::AppendRange@data_access_state, std::__1::allocator<infinity::AppendRange@data_access_state>>&) /home/huikong/Code/work/infinity2/src/storage/meta/entry/table_entry.cpp:723:21 (infinity+0x149b8c4) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#15 infinity::TableEntry@table_entry::AppendData(unsigned long, void*, unsigned long, infinity::BufferManager@buffer_manager*, bool) /home/huikong/Code/work/infinity2/src/storage/meta/entry/table_entry.cpp:497:9 (infinity+0x149b135) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#16 infinity::Catalog@catalog::Append(infinity::TableEntry@table_entry*, unsigned long, void*, unsigned long, infinity::BufferManager@buffer_manager*, bool) /home/huikong/Code/work/infinity2/src/storage/meta/catalog.cpp:401:25 (infinity+0x12f828c) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#17 infinity::TxnTableStore@txn_store::PrepareCommit(unsigned long, unsigned long, infinity::BufferManager@buffer_manager*) /home/huikong/Code/work/infinity2/src/storage/txn/txn_store.cpp:414:5 (infinity+0x68bccd) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#18 infinity::TxnStore@txn_store::PrepareCommit(unsigned long, unsigned long, infinity::BufferManager@buffer_manager*) /home/huikong/Code/work/infinity2/src/storage/txn/txn_store.cpp:662:22 (infinity+0x68f6eb) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#19 infinity::Txn@txn::CommitBottom() /home/huikong/Code/work/infinity2/src/storage/txn/txn.cpp:611:16 (infinity+0x62f569) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#20 infinity::WalManager@wal_manager::Flush() /home/huikong/Code/work/infinity2/src/storage/wal/wal_manager.cpp:372:22 (infinity+0x784c99) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#21 infinity::WalManager@wal_manager::Start()::$_0::operator()() const /home/huikong/Code/work/infinity2/src/storage/wal/wal_manager.cpp:121:37 (infinity+0x7a81d5) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#22 decltype(std::declval<infinity::WalManager@wal_manager::Start()::$_0>()()) std::__1::__invoke[abi:ne180100]<infinity::WalManager@wal_manager::Start()::$_0>(infinity::WalManager@wal_manager::Start()::$_0&&) /usr/lib/llvm-18/include/c++/v1/__type_traits/invoke.h:344:25 (infinity+0x7a8135) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#23 void std::__1::__thread_execute[abi:ne180100]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, infinity::WalManager@wal_manager::Start()::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, infinity::WalManager@wal_manager::Start()::$_0>&, std::__1::__tuple_indices<...>) /usr/lib/llvm-18/include/c++/v1/__thread/thread.h:193:3 (infinity+0x7a80ed) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#24 void* std::__1::__thread_proxy[abi:ne180100]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, infinity::WalManager@wal_manager::Start()::$_0>>(void*) /usr/lib/llvm-18/include/c++/v1/__thread/thread.h:202:3 (infinity+0x7a7d82) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
Mutex M0 (0x724c0004e2a8) created at:
#0 pthread_mutex_lock <null> (infinity+0x36c57e) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#1 std::__1::mutex::lock() <null> (infinity+0x3cb00ec) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#2 infinity::SegmentIndexEntry@segment_index_entry::MemIndexInsert(std::__1::shared_ptr<infinity::BlockEntry@block_entry>, unsigned int, unsigned int, unsigned long, infinity::BufferManager@buffer_manager*) /home/huikong/Code/work/infinity2/src/storage/meta/entry/segment_index_entry.cpp:201:21 (infinity+0x13dc390) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#3 infinity::TableEntry@table_entry::MemIndexInsertInner(infinity::TableIndexEntry@table_index_entry*, infinity::Txn@txn*, unsigned int, std::__1::vector<infinity::AppendRange@data_access_state, std::__1::allocator<infinity::AppendRange@data_access_state>>&) /home/huikong/Code/work/infinity2/src/storage/meta/entry/table_entry.cpp:767:30 (infinity+0x149f4dd) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#4 infinity::TableEntry@table_entry::MemIndexInsert(infinity::Txn@txn*, std::__1::vector<infinity::AppendRange@data_access_state, std::__1::allocator<infinity::AppendRange@data_access_state>>&) /home/huikong/Code/work/infinity2/src/storage/meta/entry/table_entry.cpp:723:21 (infinity+0x149b8c4) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#5 infinity::TableEntry@table_entry::AppendData(unsigned long, void*, unsigned long, infinity::BufferManager@buffer_manager*, bool) /home/huikong/Code/work/infinity2/src/storage/meta/entry/table_entry.cpp:497:9 (infinity+0x149b135) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#6 infinity::Catalog@catalog::Append(infinity::TableEntry@table_entry*, unsigned long, void*, unsigned long, infinity::BufferManager@buffer_manager*, bool) /home/huikong/Code/work/infinity2/src/storage/meta/catalog.cpp:401:25 (infinity+0x12f828c) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#7 infinity::TxnTableStore@txn_store::PrepareCommit(unsigned long, unsigned long, infinity::BufferManager@buffer_manager*) /home/huikong/Code/work/infinity2/src/storage/txn/txn_store.cpp:414:5 (infinity+0x68bccd) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#8 infinity::TxnStore@txn_store::PrepareCommit(unsigned long, unsigned long, infinity::BufferManager@buffer_manager*) /home/huikong/Code/work/infinity2/src/storage/txn/txn_store.cpp:662:22 (infinity+0x68f6eb) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#9 infinity::Txn@txn::CommitBottom() /home/huikong/Code/work/infinity2/src/storage/txn/txn.cpp:611:16 (infinity+0x62f569) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#10 infinity::WalManager@wal_manager::Flush() /home/huikong/Code/work/infinity2/src/storage/wal/wal_manager.cpp:372:22 (infinity+0x784c99) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#11 infinity::WalManager@wal_manager::Start()::$_0::operator()() const /home/huikong/Code/work/infinity2/src/storage/wal/wal_manager.cpp:121:37 (infinity+0x7a81d5) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#12 decltype(std::declval<infinity::WalManager@wal_manager::Start()::$_0>()()) std::__1::__invoke[abi:ne180100]<infinity::WalManager@wal_manager::Start()::$_0>(infinity::WalManager@wal_manager::Start()::$_0&&) /usr/lib/llvm-18/include/c++/v1/__type_traits/invoke.h:344:25 (infinity+0x7a8135) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#13 void std::__1::__thread_execute[abi:ne180100]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, infinity::WalManager@wal_manager::Start()::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, infinity::WalManager@wal_manager::Start()::$_0>&, std::__1::__tuple_indices<...>) /usr/lib/llvm-18/include/c++/v1/__thread/thread.h:193:3 (infinity+0x7a80ed) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#14 void* std::__1::__thread_proxy[abi:ne180100]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, infinity::WalManager@wal_manager::Start()::$_0>>(void*) /usr/lib/llvm-18/include/c++/v1/__thread/thread.h:202:3 (infinity+0x7a7d82) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
Thread T43 (tid=210518, running) created by main thread at:
#0 pthread_create <null> (infinity+0x36aa4f) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#1 std::__1::__libcpp_thread_create[abi:ne180100](unsigned long*, void* (*)(void*), void*) /usr/lib/llvm-18/include/c++/v1/__threading_support:317:10 (infinity+0x4cfef9) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#2 std::__1::thread::thread<ctpl::thread_pool::set_thread(int)::'lambda'()&, void>(ctpl::thread_pool::set_thread(int)::'lambda'()&) /usr/lib/llvm-18/include/c++/v1/__thread/thread.h:212:14 (infinity+0x564512) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#3 ctpl::thread_pool::set_thread(int) /home/huikong/Code/work/infinity2/third_party/ctpl/ctpl_stl.h:304:40 (infinity+0x55e2d9) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#4 ctpl::thread_pool::resize(int) /home/huikong/Code/work/infinity2/third_party/ctpl/ctpl_stl.h:171:31 (infinity+0x559ee4) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#5 infinity::InfinityContext@infinity_context::SetIndexThreadPool(unsigned long) /home/huikong/Code/work/infinity2/src/main/infinity_context.cpp:449:29 (infinity+0x558002) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#6 infinity::InfinityContext@infinity_context::ChangeRole(infinity::NodeRole, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, unsigned short) /home/huikong/Code/work/infinity2/src/main/infinity_context.cpp:207:13 (infinity+0x555b14) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#7 infinity::InfinityContext@infinity_context::Init(std::__1::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>> const&, bool, infinity::DefaultConfig@config*) /home/huikong/Code/work/infinity2/src/main/infinity_context.cpp:92:39 (infinity+0x5544d5) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#8 main /home/huikong/Code/work/infinity2/src/bin/infinity_main.cpp:178:33 (infinity+0x3ebaa6) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
Thread T11 (tid=210481, running) created by main thread at:
#0 pthread_create <null> (infinity+0x36aa4f) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#1 std::__1::__libcpp_thread_create[abi:ne180100](unsigned long*, void* (*)(void*), void*) /usr/lib/llvm-18/include/c++/v1/__threading_support:317:10 (infinity+0x4cfef9) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#2 std::__1::thread::thread<infinity::WalManager@wal_manager::Start()::$_0, void>(infinity::WalManager@wal_manager::Start()::$_0&&) /usr/lib/llvm-18/include/c++/v1/__thread/thread.h:212:14 (infinity+0x781302) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#3 infinity::WalManager@wal_manager::Start() /home/huikong/Code/work/infinity2/src/storage/wal/wal_manager.cpp:121:21 (infinity+0x78114b) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#4 infinity::Storage@storage::SetStorageMode(infinity::StorageMode@wal_manager) /home/huikong/Code/work/infinity2/src/storage/storage.cpp:234:23 (infinity+0x616fdf) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#5 infinity::InfinityContext@infinity_context::ChangeRole(infinity::NodeRole, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, unsigned short) /home/huikong/Code/work/infinity2/src/main/infinity_context.cpp:130:59 (infinity+0x555052) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#6 infinity::InfinityContext@infinity_context::Init(std::__1::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>> const&, bool, infinity::DefaultConfig@config*) /home/huikong/Code/work/infinity2/src/main/infinity_context.cpp:92:39 (infinity+0x5544d5) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
#7 main /home/huikong/Code/work/infinity2/src/bin/infinity_main.cpp:178:33 (infinity+0x3ebaa6) (BuildId: db6082e0c937d766a608c493a49d106482ff760d)
SUMMARY: ThreadSanitizer: data race (/home/huikong/Code/work/infinity2/build/Debug/src/infinity+0x3ea67d) (BuildId: db6082e0c937d766a608c493a49d106482ff760d) in operator delete(void*)
==================
Is there an existing issue for the same bug?
Version or Commit ID
main
Other environment information
No response
Actual behavior and How to reproduce it
Case1:
Case2:
Case3: