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

Bionic test_register_custom_callbacks Timeout #469

Closed
mjcarroll opened this issue May 2, 2018 · 4 comments
Closed

Bionic test_register_custom_callbacks Timeout #469

mjcarroll opened this issue May 2, 2018 · 4 comments
Labels
bug Something isn't working tests Failing or missing tests

Comments

@mjcarroll
Copy link
Member

Bug report

Required Info:

  • Operating System:
    • Ubuntu 18.04 Bionic
  • Installation type:
    • Source
  • Version or commit hash:
    • master
  • DDS implementation:
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

Run rclcpp_lifecycle test_register_custom_callbacks. After the test has passed, the program fails to terminate. In CI, this causes the test to timeout and be rerun 10 times.

Expected behavior

The test doesn't hang.

Actual behavior

The test hangs.

Additional information

This seems to only happen on bionic, regardless if this patch is applied or not: ros2/rmw_fastrtps#199

CI Failure: https://ci.ros2.org/job/ci_linux/4324/testReport/junit/(root)/projectroot/test_register_custom_callbacks/

@mjcarroll mjcarroll changed the title Bionic Test Timeout Bionic test_register_custom_callbacks Timeout May 2, 2018
@mjcarroll mjcarroll added bug Something isn't working tests Failing or missing tests labels May 2, 2018
@dhood
Copy link
Member

dhood commented May 2, 2018

I've seen the following output on a nightly once:

*** Error in `/home/rosbuild/ci_scripts/ws/build/rclcpp_lifecycle/test_register_custom_callbacks': corrupted double-linked list: 0x0000000038094840 ***

It was this ARM build from April 21st. That's just a flaky test though, not a consistent failure like you see on bionic, and tbh I only saw it that one time during a weekend where we had a lot of additional test failures/reported failures from the colcon switch, but it might be the same cause underneath.

@mikaelarguedas
Copy link
Member

Interestingly this hang shows up only on jobs using FastRTPS by default but the same test passed on all jobs using Connext by default:
https://ci.ros2.org/job/ci_linux/4261/testReport/rclcpp_lifecycle/TestRegisterCustomCallbacks/custom_callbacks/
https://ci.ros2.org/job/ci_linux/4264/testReport/rclcpp_lifecycle/TestRegisterCustomCallbacks/custom_callbacks/

I confirmed locally that the test never hangs when using Opensplice as the default rmw_implementation

I also noticed that these tests don't shutdown their nodes on TearDown, but this doesnt fix the hanging problem, so I'll file a separate PR for that

@mjcarroll mjcarroll added the ready Work is about to start (Kanban column) label May 3, 2018
@mjcarroll
Copy link
Member Author

Asan and Tsan return no issues.

@mjcarroll
Copy link
Member Author

mjcarroll commented May 3, 2018

If all of the test_node->register_on_XXX methods are commented out, the program doesn't hang. Enabling even a single registration causes the program to hang.

@mjcarroll mjcarroll added in review Waiting for review (Kanban column) and removed ready Work is about to start (Kanban column) labels May 4, 2018
@mjcarroll mjcarroll removed the in review Waiting for review (Kanban column) label May 4, 2018
nnmm pushed a commit to ApexAI/rclcpp that referenced this issue Jul 9, 2022
* Fix memory leak in test_count_matched, fini subscription (ros2#469)

Signed-off-by: y-okumura-isp <[email protected]>

* Fix leak in test_count_matched, fini init_option (ros2#469)

Signed-off-by: y-okumura-isp <[email protected]>
nnmm pushed a commit to ApexAI/rclcpp that referenced this issue Jul 9, 2022
Narrow scope of subscription to prevent leak and separate nominal test from init/fini test.

Signed-off-by: y-okumura-isp <[email protected]>
nnmm pushed a commit to ApexAI/rclcpp that referenced this issue Jul 9, 2022
nnmm pushed a commit to ApexAI/rclcpp that referenced this issue Jul 9, 2022
* `rcl_arguments_fini` free external_log_config_file (ros2#469)

* Fix memory leak in `parse_key` in parser.c

Signed-off-by: y-okumura-isp <[email protected]>
nnmm pushed a commit to ApexAI/rclcpp that referenced this issue Jul 9, 2022
* Fix memory leak in test_publisher, test msg not released (ros2#469)

Signed-off-by: y-okumura-isp <[email protected]>

* Fix memory leak in test_publisher, not fini publisher (ros2#469)

Signed-off-by: y-okumura-isp <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests Failing or missing tests
Projects
None yet
Development

No branches or pull requests

3 participants