Conversation
…adlock Since ros2#966 (jazzy: ros2#973) tf2_ros::Buffer::waitForTransform holds timer_to_request_map_mutex_ while calling BufferCore::addTransformableRequest, which takes transformable_requests_mutex_. BufferCore::testTransformableRequests holds transformable_requests_mutex_ while invoking the ready-callback, which takes timer_to_request_map_mutex_. The two lock orders form an ABBA deadlock; in Nav2 every costmap callback group freezes shortly after start-up. The test forces the interleaving deterministically: a transformable callback (running inside testTransformableRequests) starts a thread that enters waitForTransform and blocks in addTransformableRequest; when the callback returns, the next ready request's callback needs timer_to_request_map_mutex_ and deadlocks. Fails on jazzy HEAD, passes on 0.36.22 and with ros2#979 applied. (cherry picked from commit 54daeda)
Contributor
|
If you don't mind, I have included your test in #982. |
Author
|
sure, thanks a lot for the quick response! Closing this then |
This was referenced Sep 7, 2026
Merged
Merged
Merged
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.
Description
The test forces the interleaving deterministically:
This leads to the deadlock with #966, and works fine before, and also works fine with #966 + #979
Relates to #966
Is this user-facing behavior change?
Did you use Generative AI?
grok 4.6 + claude fable 5
Additional Information