RMW API calls hang in service request callback

Open
#124 2 comments 0 reactions 1 assignee View on GitHub

@asorbini is already working on this.

Since Jun 22, 2023.

Assessment

This issue has not been assessed yet.

Description

System Info

  • OS
    • Ubuntu 22.04
  • ROS version and installation type
    • rolling/source
  • RTI Connext DDS version and installation type
    • Pro 6.0.1/apt
  • RMW version or commit hash
    • rolling

Bug Description

When a service callback is registered with rcl_service_set_on_new_request_callback, if rmw_take is called within that callback, a deadlock occurs and the program hangs.

Expected Behavior

Either the API allows this behavior and it works, or it is explicitly disallowed and returns an error code.

How to Reproduce

Run the test in https://github.com/ros2/rcl/pull/1081

Workarounds

https://github.com/ros2/rmw_connextdds/pull/123 fixes the problem from what I can tell, but I'm not 100% sure it's a good idea

Dominant language
C++
Stars
68
Forks
42
Avg merge
9d 15h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/rmw_connextdds

All issues in ros2/rmw_connextdds

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.