Skip to content

fix: Use default rcl allocator if allocator is std::allocator (backport #3069)#3071

Merged
jmachowinski merged 1 commit intokiltedfrom
mergify/bp/kilted/pr-3069
Feb 18, 2026
Merged

fix: Use default rcl allocator if allocator is std::allocator (backport #3069)#3071
jmachowinski merged 1 commit intokiltedfrom
mergify/bp/kilted/pr-3069

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Feb 18, 2026

This fixes a bunch of warnings if using ASAN / valgrind on newer OS versions. It also fixed a real bug, as giving the wrong size on deallocate is undefined behavior according to the C++ standard.

This version of the patch keeps the behavior for users that specified an own allocator the same and in therefore back portable.

Backport of #3058


This is an automatic backport of pull request #3069 done by Mergify.

This fixes a bunch of warnings if using ASAN / valgrind on newer
OS versions. It also fixed a real bug, as giving the wrong size
on deallocate is undefined behavior according to the C++ standard.

This version of the patch keeps the behavior for users that
specified an own allocator the same and in therefore back portable.

Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Co-authored-by: Janosch Machowinski <j.machowinski@cellumation.com>
(cherry picked from commit dc4a1db)
@ahcorde
Copy link
Contributor

ahcorde commented Feb 18, 2026

Pulls: #3071
Gist: https://gist.githubusercontent.com/ahcorde/feef3dffe794445042bd3242ec4bedaf/raw/7cd3e559beb0ea6d16559678cc3f7c9c8ff06388/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: kilted
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18241

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@fujitatomoya
Copy link
Collaborator

@jmachowinski thanks 👍

@jmachowinski jmachowinski merged commit 8a9f5bb into kilted Feb 18, 2026
2 of 3 checks passed
@ahcorde ahcorde deleted the mergify/bp/kilted/pr-3069 branch February 19, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments