Closed
Description
Steps to reproduce the behavior (Required)
BE verson: 3.4.4
FE verson: main
size_t index_size = partitions[0]->indexes.size();
for (size_t i = 0; i < index_size; ++i) {
auto* index = schema->indexes()[i];
for (size_t j = 0; j < num_rows; ++j) {
const auto* partition = partitions[j];
index_id_partition_id[index->index_id].emplace(partition->id);
const auto& virtual_buckets = partition->indexes[i].virtual_buckets;
_tablet_ids[j] = virtual_buckets[record_hashes[j] % virtual_buckets.size()]; //the virtual_buckets.size() maybe is 0
}
Expected behavior (Required)
Real behavior (Required)
BE crash
*** Aborted at 1749716614 (unix time) try "date -d @1749716614" if you are using GNU date ***
PC: @ 0xb937b5f starrocks::TabletSinkSender::send_chunk(starrocks::OlapTableSchemaParam const*, std::vector<starrocks::OlapTablePartition*, std::allocator<starrocks::OlapTablePartition*> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vecto<F4>
*** SIGFPE (@0xb937b5f) received by PID 46616 (TID 0x14988a9f2640) LWP(47036) from PID 194214751; stack trace: ***
@ 0x1498b3142ee8 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x99ee7)
@ 0xf9d0fe9 google::(anonymous namespace)::FailureSignalHandler(int, siginfo_t*, void*)
@ 0x1498b30eb520 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x4251f)
@ 0xb937b5f starrocks::TabletSinkSender::send_chunk(starrocks::OlapTableSchemaParam const*, std::vector<starrocks::OlapTablePartition*, std::allocator<starrocks::OlapTablePartition*> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vecto<F4>
@ 0xb95820a starrocks::OlapTableSink::_send_chunk(starrocks::RuntimeState*, starrocks::Chunk*, bool)
@ 0xb958ebb starrocks::OlapTableSink::send_chunk_nonblocking(starrocks::RuntimeState*, starrocks::Chunk*)
@ 0xb8fe3cd starrocks::pipeline::OlapTableSinkOperator::pending_finish() const
@ 0xb7e5465 starrocks::pipeline::PipelineDriverPoller::run_internal()
@ 0xbcf8ab9 starrocks::Thread::supervise_thread(void*)
@ 0x1498b313dac3 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x94ac2)
@ 0x1498b31cf850 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x12684f)
StarRocks version (Required)
- You can get the StarRocks version by executing SQL
select current_version()