Skip to content

info message comes from deferred signal handler with another thread.#576

Merged
ahcorde merged 1 commit intorollingfrom
fujitatomoya/signal-handler-deadlock
Nov 19, 2025
Merged

info message comes from deferred signal handler with another thread.#576
ahcorde merged 1 commit intorollingfrom
fujitatomoya/signal-handler-deadlock

Conversation

@fujitatomoya
Copy link
Copy Markdown
Contributor

Description

ros2/rclcpp#2986 moves the info message print from actual signal hander managed by system to deferred signal handler managed by rclcpp. this changes the order of expected message for these tests.

Depends on ros2/rclcpp#2986

Is this user-facing behavior change?

No,

Did you use Generative AI?

No,

Additional Information

If this does not work, we probably change the message from deferred signal hander into DEBUG because it is hard to guarantee the order of the messages between application main thread and deferred signal thread.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates expected test outputs to reflect a change in message ordering caused by moving the signal handler info message from the system-managed signal handler to a deferred signal handler managed by rclcpp in another thread. The rclcpp signal handler message now appears after the custom signal handler message instead of before it.

  • Updates expected output files for signal handler tests to match new message ordering
  • Moves the [INFO] [rclcpp]: signal_handler(signum=X) message from line 3 to line 5 in both test output files

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test_sigterm_handler_before_shutdown__expected_output.txt Updates expected output to show rclcpp signal handler message appearing after custom SIGTERM handler message
test_sigint_handler_before_shutdown__expected_output.txt Updates expected output to show rclcpp signal handler message appearing after custom SIGINT handler message

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines -4 to +5
[INFO] [rclcpp]: signal_handler(signum=2)
[INFO] [test_signal_handler]: Custom sigint handler called.
[INFO] [rclcpp]: signal_handler(signum=2)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now user's signal handler message should come before deferred signal hander message.

@fujitatomoya
Copy link
Copy Markdown
Contributor Author

fujitatomoya commented Nov 18, 2025

Pulls: ros2/rclcpp#2986, #576
Gist: https://gist.githubusercontent.com/fujitatomoya/2d25aacc1059cd394750fb9b88193f12/raw/9245a073dfdba8e93a15e000ecb0a0485a265fb1/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp test_rclcpp
TEST args: --packages-above rclcpp test_rclcpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/17517

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

@ahcorde
Copy link
Copy Markdown
Contributor

ahcorde commented Nov 19, 2025

  • Linux-aarch64 Build Status (I do not think previous CI is related to this PR, but just in case.)
  • Linux-rhel Build Status

@ahcorde ahcorde merged commit 7b27452 into rolling Nov 19, 2025
8 of 9 checks passed
@ahcorde ahcorde deleted the fujitatomoya/signal-handler-deadlock branch November 19, 2025 10:53
@fujitatomoya
Copy link
Copy Markdown
Contributor Author

@Mergifyio backport kilted jazzy humble

@mergify
Copy link
Copy Markdown

mergify bot commented Nov 21, 2025

backport kilted jazzy humble

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Nov 21, 2025
…576)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 7b27452)
mergify bot pushed a commit that referenced this pull request Nov 21, 2025
…576)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 7b27452)
mergify bot pushed a commit that referenced this pull request Nov 21, 2025
…576)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 7b27452)
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