Skip to content

[DocDB][PgVector] Segmentation fault yb::rpc::FunctorThreadPoolTask<yb::tablet::TabletVectorIndexes::ScheduleBackfill #27654

Open
@archit-rastogi

Description

@archit-rastogi

Jira Link: DB-17248

Description

Stress run: https://stress.dev.yugabyte.com/stress_test/e1d68712-8dbe-42c6-a387-353287bf40d5

Stack: https://stress.dev.yugabyte.com/files/get?name=cd50bd73-0e6e-4f99-99d0-536c1891f889-core_yb.1750055246.vi_kBackfill_tp.60014.86332.backtrace.txt

* thread #1, name = 'yb-tserver', stop reason = signal SIGSEGV
  * frame #0: 0x0000ffff831b1e88 libc.so.6`__GI_memcpy + 248
    frame #1: 0x0000aaaae5a7abf0 yb-tserver`yb::rpc::FunctorThreadPoolTask<yb::tablet::TabletVectorIndexes::ScheduleBackfill(std::__1::shared_ptr<yb::docdb::DocVectorIndex> const&, yb::HybridTime, yb::OpId, std::__1::shared_ptr<yb::tablet::TableInfo> const&, std::__1::shared_ptr<yb::ScopedRWOperation>)::$_0, yb::rpc::ThreadPoolTask>::Run() [inlined] yb::ByteBufferBase<256ul, false>::DoAppend(this=0x0000ffeeb8866790, keep_size=0, a=",\U00000001", len=1222) at byte_buffer.h:290:5
    frame #2: 0x0000aaaae5a7abc0 yb-tserver`yb::rpc::FunctorThreadPoolTask<yb::tablet::TabletVectorIndexes::ScheduleBackfill(std::__1::shared_ptr<yb::docdb::DocVectorIndex> const&, yb::HybridTime, yb::OpId, std::__1::shared_ptr<yb::tablet::TableInfo> const&, std::__1::shared_ptr<yb::ScopedRWOperation>)::$_0, yb::rpc::ThreadPoolTask>::Run() [inlined] yb::ByteBufferBase<256ul, false>::Assign(this=0x0000ffeeb8866790, a=",\U00000001", size=1222) at byte_buffer.h:173:5
    frame #3: 0x0000aaaae5a7abc0 yb-tserver`yb::rpc::FunctorThreadPoolTask<yb::tablet::TabletVectorIndexes::ScheduleBackfill(std::__1::shared_ptr<yb::docdb::DocVectorIndex> const&, yb::HybridTime, yb::OpId, std::__1::shared_ptr<yb::tablet::TableInfo> const&, std::__1::shared_ptr<yb::ScopedRWOperation>)::$_0, yb::rpc::ThreadPoolTask>::Run() [inlined] yb::ByteBufferBase<256ul, false>::Assign(this=0x0000ffeeb8866790, a=",\U00000001", b="qr") at byte_buffer.h:169:5
    frame #4: 0x0000aaaae5a7abc0 yb-tserver`yb::rpc::FunctorThreadPoolTask<yb::tablet::TabletVectorIndexes::ScheduleBackfill(std::__1::shared_ptr<yb::docdb::DocVectorIndex> const&, yb::HybridTime, yb::OpId, std::__1::shared_ptr<yb::tablet::TableInfo> const&, std::__1::shared_ptr<yb::ScopedRWOperation>)::$_0, yb::rpc::ThreadPoolTask>::Run() [inlined] _ZN2yb14ByteBufferBaseILm256ELb0EEC2ENS_5SliceEQeqT0_Lb0E(this=0x0000ffeeb8866790, slice=(begin_ = ",\U00000001", end_ = "qr")) at byte_buffer.h:49:5
    frame #5: 0x0000aaaae5a7abb8 yb-tserver`yb::rpc::FunctorThreadPoolTask<yb::tablet::TabletVectorIndexes::ScheduleBackfill(std::__1::shared_ptr<yb::docdb::DocVectorIndex> const&, yb::HybridTime, yb::OpId, std::__1::shared_ptr<yb::tablet::TableInfo> const&, std::__1::shared_ptr<yb::ScopedRWOperation>)::$_0, yb::rpc::ThreadPoolTask>::Run() [inlined] yb::tablet::(anonymous namespace)::VectorIndexBackfillHelper::Add(this=0x0000ffeeb88664c8, ybctid=<unavailable>, value=<unavailable>) at tablet_vector_indexes.cc:207:16
    frame #6: 0x0000aaaae5a7abb4 yb-tserver`yb::rpc::FunctorThreadPoolTask<yb::tablet::TabletVectorIndexes::ScheduleBackfill(std::__1::shared_ptr<yb::docdb::DocVectorIndex> const&, yb::HybridTime, yb::OpId, std::__1::shared_ptr<yb::tablet::TableInfo> const&, std::__1::shared_ptr<yb::ScopedRWOperation>)::$_0, yb::rpc::ThreadPoolTask>::Run() [inlined] yb::tablet::TabletVectorIndexes::Backfill(this=0x00003082f45c5a20, vector_index=std::__1::shared_ptr<yb::docdb::DocVectorIndex>::element_type @ 0x00003082eecc4aa0, indexed_table=<unavailable>, from_key=<unavailable>, backfill_ht=<unavailable>, op_id=<unavailable>) at tablet_vector_indexes.cc:297:12
    frame #7: 0x0000aaaae5a7a320 yb-tserver`yb::rpc::FunctorThreadPoolTask<yb::tablet::TabletVectorIndexes::ScheduleBackfill(std::__1::shared_ptr<yb::docdb::DocVectorIndex> const&, yb::HybridTime, yb::OpId, std::__1::shared_ptr<yb::tablet::TableInfo> const&, std::__1::shared_ptr<yb::ScopedRWOperation>)::$_0, yb::rpc::ThreadPoolTask>::Run() [inlined] yb::tablet::TabletVectorIndexes::ScheduleBackfill(std::__1::shared_ptr<yb::docdb::DocVectorIndex> const&, yb::HybridTime, yb::OpId, std::__1::shared_ptr<yb::tablet::TableInfo> const&, std::__1::shared_ptr<yb::ScopedRWOperation>)::$_0::operator()(this=0x00003083bf306670) const at tablet_vector_indexes.cc:377:19
    frame #8: 0x0000aaaae5a7a304 yb-tserver`yb::rpc::FunctorThreadPoolTask<yb::tablet::TabletVectorIndexes::ScheduleBackfill(std::__1::shared_ptr<yb::docdb::DocVectorIndex> const&, yb::HybridTime, yb::OpId, std::__1::shared_ptr<yb::tablet::TableInfo> const&, std::__1::shared_ptr<yb::ScopedRWOperation>)::$_0, yb::rpc::ThreadPoolTask>::Run(this=0x00003083bf306660) at thread_pool.h:71:5
    frame #9: 0x0000aaaae591c638 yb-tserver`yb::rpc::(anonymous namespace)::Worker::Execute(this=0x00003082ffe1cdc0, task=0x00003083bf306660) at thread_pool.cc:138:13
    frame #10: 0x0000aaaae61e603c yb-tserver`yb::Thread::SuperviseThread(void*) [inlined] std::__1::__function::__value_func<void ()>::operator()[abi:ne190100](this=0x00003082fe128750) const at function.h:430:12
    frame #11: 0x0000aaaae61e6028 yb-tserver`yb::Thread::SuperviseThread(void*) [inlined] std::__1::function<void ()>::operator()(this=0x00003082fe128750) const at function.h:989:10
    frame #12: 0x0000aaaae61e6028 yb-tserver`yb::Thread::SuperviseThread(arg=0x00003082fe1286e0) at thread.cc:946:3
    frame #13: 0x0000ffff831578b8 libpthread.so.0`start_thread + 392
    frame #14: 0x0000ffff831b3afc libc.so.6`thread_start + 12

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions