Skip to content

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: #1567
Gist: https://gist.githubusercontent.com/fujitatomoya/987df55768a849d5528edf279f822dac/raw/e33a5c62ce9223409f38ab9315cb1cde17d538a8/ros2.repos
BUILD args: --packages-above-and-dependencies rclpy
TEST args: --packages-above rclpy
ROS Distro: kilted
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/17832

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

@ahcorde ahcorde merged commit a67a88e into kilted Dec 22, 2025
3 checks passed
@ahcorde ahcorde deleted the mergify/bp/kilted/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.

4 participants