Fast-DDS icon indicating copy to clipboard operation
Fast-DDS copied to clipboard

dds crashes when writing

Open huqin-RM opened this issue 2 years ago • 0 comments

Is there an already existing issue for this?

  • [X] I have searched the existing issues

Expected behavior

I wrote 20m data

Current behavior

I wrote 20m data,but crashed

Steps to reproduce

void TopicPayloadPool::reserve ( uint32_t min_num_payloads, uint32_t size) { assert (min_num_payloads <= max_pool_size_);

for (size_t i = all_payloads_.size(); i < min_num_payloads; ++i)
{
    PayloadNode* payload = do_allocate(size);
    free_payloads_.push_back(payload);
}

}

Does not judge whether the payload is nullptr。Will it crash when writing data?

Fast DDS version/commit

2.6

Platform/Architecture

Windows 10 Visual Studio 2019

Transport layer

UDPv4

Additional context

No response

XML configuration file

No response

Relevant log output

No response

Network traffic capture

No response

huqin-RM avatar May 26 '22 09:05 huqin-RM