Repository navigation
Enable the memory tools preload on aarch64 - #103
Merged
Merged
Conversation
The preload was disabled on aarch64 in 2018 because tests using it died with SIGBUS (#3). The cause was the static allocator handing out unaligned memory during static initialization: glibc performs atomic operations on that memory, and on aarch64 an atomic access to an unaligned address raises SIGBUS (BUS_ADRALN). That was fixed in #31, which aligned all static allocator allocations to max_align_t, but the aarch64 exclusion was never removed. With the exclusion removed, the osrf_testing_tools_cpp, rcutils and rcl tests pass on a Raspberry Pi 4 with the preload active. Reverting the alignment from #31 brings the SIGBUS back. Fixes #3 Co-Authored-By: Claude Fable 5.2 <[email protected]> Signed-off-by: Chris Lalancette <[email protected]>
Contributor
Author
ahcorde
approved these changes
Dec 2, 2026
mjcarroll
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The preload was disabled on aarch64 in 2018 because tests using it died with SIGBUS (#3). The cause was the static allocator handing out unaligned memory during static initialization: glibc performs atomic operations on that memory, and on aarch64 an atomic access to an unaligned address raises SIGBUS (BUS_ADRALN). That was fixed in #31, which aligned all static allocator allocations to max_align_t, but the aarch64 exclusion was never removed.
With the exclusion removed, the osrf_testing_tools_cpp, rcutils and rcl tests pass on a Raspberry Pi 4 with the preload active. Reverting the alignment from #31 brings the SIGBUS back.
Fixes #3