Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non zero exit code on Ctrl-C when using RTI Connext #329

Open
hidmic opened this issue Apr 30, 2019 · 0 comments
Open

Non zero exit code on Ctrl-C when using RTI Connext #329

hidmic opened this issue Apr 30, 2019 · 0 comments
Assignees
Labels
bug Something isn't working ready Work is about to start (Kanban column)

Comments

@hidmic
Copy link
Contributor

hidmic commented Apr 30, 2019

Bug report

Required Info:

  • Operating System:
    • Ubuntu 18.04 LTS Bionic Beaver
  • Installation type:
    • From source
  • Version or commit hash:
  • DDS implementation:
    • RTI Connext
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

Set Connext as your RMW_IMPLEMENTATION:

export RMW_IMPLEMENTATION=rmw_connext_cpp

Run the server and client demo nodes in separate terminals:

ros2 run demo_nodes_cpp add_two_ints_server
ros2 run demo_nodes_cpp add_two_ints_client

Type Ctrl-C multiple times or right after the response gets to the client

Expected behavior

Process terminates gracefully.

Actual behavior

Process terminates with a non zero exit code.

Additional information

I did some triage by lowering the __log_level to debug. The problem seems to be that while we shutdown explicitly (via rclcpp::shutdown()), node finalization is implicit (via destructor). Thus, context and signal handlers are shutdown and uninstalled, respectively, way before nodes are finalized. In RTI Connext, that last step takes a while, during which we're left with the original signal handler, not ours.

@hidmic hidmic added the bug Something isn't working label Apr 30, 2019
@jacobperron jacobperron added the ready Work is about to start (Kanban column) label May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready Work is about to start (Kanban column)
Projects
None yet
Development

No branches or pull requests

2 participants