Closed rubenanapu closed 5 months ago
I found the solution.
I just compiled CycloneDDS from source and the problem went away automatically.
The link where I found the instructions on how to compile from source for ROS 2 Jazzy is the following:
The commands I used for compiling it from source can be summarized as follows:
mkdir -pv ~/ros2_ws/src
cd ~/ros2_ws/src
source /opt/ros/jazzy/setup.bash
source ~/ros2_ws/install/setup.bash
git clone https://github.com/ros2/rmw_cyclonedds ros2/rmw_cyclonedds -b jazzy
git clone https://github.com/eclipse-cyclonedds/cyclonedds -b 0.10.5 eclipse-cyclonedds/cyclonedds
cd ..
rosdep install -i --from-path src --rosdistro jazzy -y
colcon build
After that, I just sourced the ros2_ws and it worked as expected:
source ~/ros2_ws/install/setup.bash
ros2 run demo_nodes_py talker
It is worth mentioning that I didn't make any changes to the code. I just compiled it from source and it worked.
That's ... weird. Thank you for investigating and documenting the fact that rebuilding from source solves the problem.
We had the same issue using the upstream Jazzy distro packages, removing the Tracing
section in the XML config prevented this:
*** buffer overflow detected ***: terminated
Aborted (core dumped)
This issue seems closed even though I believe it might not have been tracked or resolved fully. Rebuilding from source or removing Tracing is a kind of workaround, but we are now also seeing this issue on Humble. Any insights in what could be causing it?
Trace:
frame #8: 0x00007ffff71364db libc.so.6`__fdelt_chk(d=<unavailable>) at fdelt_chk.c:25:5
frame #9: 0x00007fffd6b63e8f libddsc.so.0`___lldb_unnamed_symbol3689 + 3455
frame #10: 0x00007fffd6b65d80 libddsc.so.0`dds_create_domain + 96
frame #11: 0x00007fffd747b797 librmw_cyclonedds_cpp.so`rmw_create_node + 5975
Description
I have installed ROS 2 Jazzy on Ubuntu 22.04.
If I just
ros2 topic list
andros2 run demo_nodes_cpp talker
on the same PC it works.But if I want to see topics from another PC, it fails after setting the variables below:
After exporting this, any
ros2
commands fail.If I run
ros2 daemon stop
I don't have any errors, but as soon as I tryros2 topic list
again I have the same error.My
cyclonedds.xml
file is as follows:It is worth mentioning that the IPV6 is obtained through Husarnet:
If I try the same thing using ROS 2 Humble, Galactic, or Iron, I don't have this problem. It only happens with Jazzy. Also, I tested
RMW_IMPLEMENTATION=rmw_fastrtps_cpp
and with fastrtps I don't have this error. The problem seems to be only with Cyclone DDS.The problem seems to be in a method called
dds_create_domain
, as we can see in the bottom of the highlighted section in the screenshot below:Also, in the next screenshot, we can see the command line that causes the error. The screenshot is of the "Crash Error Report" tool on Ubuntu:
Does anybody have any clues on what could be the reason behind this?
By the way, I posted the same question on the link below: