Closed poggenhans closed 6 years ago
This can be reproduced by calling e.g. this:
catkin_make -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS_DEBUG="-fsanitize=alignment -fuse-ld=gold" tests run_tests_test_roscpp_rostest_test_launch_subscribe_self.xml
using a workspace containing ros_comm.
Is there a reason why ROS uses
reinterpret_cast
instead ofmemcpy
for serializing on x86? When I compile any node with GCC's undefined behaviour sanitizer, I get a bunch of errors like the following: