Skip to content

Fix overflow caused by default spin timeout (backport #1563)#1568

Merged
ahcorde merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-1563
Dec 22, 2025
Merged

Fix overflow caused by default spin timeout (backport #1563)#1568
ahcorde merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-1563

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Dec 20, 2025

Description

Previously, the max() value of the steady time was used as the default deadline. In some environments this results in overflows in the underlying pthread_cond_timedwait call, which waits for the conditional variable in the events queue implementation. Consequently, this lead to undefined behavior and freezes in the executor. Reducing the deadline significantly helped, but using cv.wait instead of cv_.wait_until seems to be the cleaner solution.

Did you use Generative AI?

No

Additional Information


This is an automatic backport of pull request #1563 done by [Mergify](https://mergify.com).

Previously the max() value of the steady time was used as the default deadline. In some environments this results in overflows in the underlying pthread_cond_timedwait call, which waits for the conditional variable in the events queue implementation. Consequently, this lead to freezes in the executor. Reducing the deadline significantly helped, but using `cv.wait` instead of `cv_.wait_until` seems to be the cleaner solution.

Signed-off-by: Florian Vahl <florian.vahl@dlr.de>
(cherry picked from commit eddfdb6)
@fujitatomoya
Copy link
Collaborator

Pulls: #1568
Gist: https://gist.githubusercontent.com/fujitatomoya/d01f66f6b9f91a9fad2e4a6eaeddb3c0/raw/e360a8dc1657060dafd9a6a1d6e649bb72dcf332/ros2.repos
BUILD args: --packages-above-and-dependencies rclpy
TEST args: --packages-above rclpy
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/17833

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

@ahcorde ahcorde merged commit b87f018 into jazzy Dec 22, 2025
3 checks passed
@ahcorde ahcorde deleted the mergify/bp/jazzy/pr-1563 branch December 22, 2025 08:23
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