Replies: 6 comments 6 replies
-
Hi @kim3097 With only this information there is not much we can do, would you please share a reproducer and/or the core dump you are getting? Thanks |
Beta Was this translation helpful? Give feedback.
-
Core dump file is attached. When I analyzed the code, it seems that the underflow occurs in the add_data_frag() function. File : DDS-Router/src/fastdds/src/cpp/rtps/messages/RTPSMessageGroup.cpp
change.serializedPayload.length is smaller than fragment_start. So fragment_size variable underflow occurs. For reference, the mode I use is the repeater mode(turn). Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @kim3097 Thank you for sharing this information. A priori, it looks like a middleware issue rather than a bug in the DDS-Router itself. However, to further investigate this we would still need more information regarding your setup:
If possible, a reproducer would also be very useful, so we are able to reproduce the bug in situ and test possible solutions. Best |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply. I answer your questions.
And it happens unconditionally in the following scenario.
If you have any additional questions, please let me know. |
Beta Was this translation helpful? Give feedback.
-
Please inquire if you are following the issue. thank you |
Beta Was this translation helpful? Give feedback.
-
Hi @kim3097, Recently we were able to come up with a test (#456) to replicate the bug you discovered more than a year ago. We have implemented a fix in the DDS Pipe (eProsima/DDS-Pipe#9). I hope this solves your issue. |
Beta Was this translation helpful? Give feedback.
-
Hello everybody, I'm trying to connect three machines running ROS2 nodes with this router.
I am using it for sending and receiving camera compressed images. However, when using the repeater mode of version 1.1.0, the following Segmentation Fault occurred.
root@root# ddsrouter -c repeater.yaml
Starting DDS Router Tool execution.
DDS Router running.
2023-02-13 16:04:20.206 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.206 [RTPS_WRITER Error] Error sending fragment (19, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.240 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.240 [RTPS_WRITER Error] Error sending fragment (20, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.275 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.275 [RTPS_WRITER Error] Error sending fragment (21, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.322 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.322 [RTPS_WRITER Error] Error sending fragment (22, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.365 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.365 [RTPS_WRITER Error] Error sending fragment (23, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.411 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.411 [RTPS_WRITER Error] Error sending fragment (24, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.462 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.462 [RTPS_WRITER Error] Error sending fragment (25, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.482 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.482 [RTPS_WRITER Error] Error sending fragment (26, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.525 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.525 [RTPS_WRITER Error] Error sending fragment (27, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.612 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.612 [RTPS_WRITER Error] Error sending fragment (28, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.662 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.662 [RTPS_WRITER Error] Error sending fragment (29, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.695 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.695 [RTPS_WRITER Error] Error sending fragment (30, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.722 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.722 [RTPS_WRITER Error] Error sending fragment (31, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.784 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.784 [RTPS_WRITER Error] Error sending fragment (32, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.821 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.821 [RTPS_WRITER Error] Error sending fragment (33, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.852 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.852 [RTPS_WRITER Error] Error sending fragment (34, 2) -> Function deliver_sample_nts
2023-02-13 16:04:20.902 [RTPS_WRITER Error] Cannot add DATA_FRAG submsg to the CDRMessage. Buffer too small -> Function add_data_frag
2023-02-13 16:04:20.902 [RTPS_WRITER Error] Error sending fragment (35, 2) -> Function deliver_sample_nts
Segmentation fault (core dumped)
I really want to use repeater mode. Is there any solution?
Beta Was this translation helpful? Give feedback.
All reactions