You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then launch the shipped example after source installed setup.bash: RMW_IMPLEMENTATION=rmw_fastrtps_cpp ASAN_OPTIONS=detect_leaks=0 install/examples_rclcpp_minimal_publisher/lib/examples_rclcpp_minimal_publisher/publisher_lambda
Mostly retyped_allocate is called with a size greater than 1, but later calling retyped_deallocate will internally always use 1 as size to dealloc.
Additional information
The text was updated successfully, but these errors were encountered:
tsingakbar
changed the title
adress sanitizer complains new-delete-type-mismatch on allocator_common
address sanitizer complains new-delete-type-mismatch on allocator_common
Nov 8, 2022
tsingakbar
changed the title
address sanitizer complains new-delete-type-mismatch on allocator_common
address sanitizer complains new-delete-type-mismatch over allocator_common
Nov 8, 2022
Bug report
Required Info:
Steps to reproduce issue
build humble according to official guide enabling address sanitizer, like this:
Then launch the shipped example after source installed setup.bash:
RMW_IMPLEMENTATION=rmw_fastrtps_cpp ASAN_OPTIONS=detect_leaks=0 install/examples_rclcpp_minimal_publisher/lib/examples_rclcpp_minimal_publisher/publisher_lambda
Expected behavior
no address sanitizer problems.
Actual behavior
Then address sanitizer reports new-delete-type-mismatch, which is always related to https://github.com/ros2/rclcpp/blob/humble/rclcpp/include/rclcpp/allocator/allocator_common.hpp#L67 .
Mostly
retyped_allocate
is called with a size greater than 1, but later callingretyped_deallocate
will internally always use 1 as size to dealloc.Additional information
The text was updated successfully, but these errors were encountered: