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

Subscription tests segfaulting in CentOS #749

Closed
nuclearsandwich opened this issue Aug 15, 2020 · 2 comments · Fixed by #753
Closed

Subscription tests segfaulting in CentOS #749

nuclearsandwich opened this issue Aug 15, 2020 · 2 comments · Fixed by #753

Comments

@nuclearsandwich
Copy link
Member

Bug report

Required Info:

  • Operating System:
    • CentOS Linux
  • Installation type:
    • source
  • Version or commit hash:
  • DDS implementation:
    • rmw_fastrtps_cpp, rmw_fastrtps_dynamic_cpp, rmw_cyclonedds_cpp

Steps to reproduce issue

Run test_subscription tests on CentOS 7.
See nightly CentOS Linux release, debug, or extra rmw for examples.

-- run_test.py: extra environment variables:
 - RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
-- run_test.py: extra environment variables to append:
 - LD_LIBRARY_PATH+=/home/jenkins-agent/workspace/nightly_linux-centos_release/ws/build/rcl
-- run_test.py: invoking following command in '/home/jenkins-agent/workspace/nightly_linux-centos_release/ws/build/rcl/test':
 - /home/jenkins-agent/workspace/nightly_linux-centos_release/ws/build/rcl/test/test_subscription__rmw_cyclonedds_cpp --gtest_output=xml:/home/jenkins-agent/workspace/nightly_linux-centos_release/ws/build/rcl/test_results/rcl/test_subscription__rmw_cyclonedds_cpp.gtest.xml
Running main() from /home/jenkins-agent/workspace/nightly_linux-centos_release/ws/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc
[==========] Running 15 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 10 tests from TestSubscriptionFixture__rmw_cyclonedds_cpp
[ RUN      ] TestSubscriptionFixture__rmw_cyclonedds_cpp.test_subscription_init_fini_and_is_valid
[       OK ] TestSubscriptionFixture__rmw_cyclonedds_cpp.test_subscription_init_fini_and_is_valid (4 ms)
[ RUN      ] TestSubscriptionFixture__rmw_cyclonedds_cpp.test_subscription_bad_init
-- run_test.py: return code -11
-- run_test.py: generate result file '/home/jenkins-agent/workspace/nightly_linux-centos_release/ws/build/rcl/test_results/rcl/test_subscription__rmw_cyclonedds_cpp.gtest.xml' with failed test
@hidmic
Copy link
Contributor

hidmic commented Aug 18, 2020

I'll take a look.

@hidmic
Copy link
Contributor

hidmic commented Aug 18, 2020

So, the problem is that CentOS deals with function trampolines differently. I haven't dug enough, but it'd almost seem like somehow it keeps a single .got.plt section for all shared objects so it we taking the address of a function, it can pass around the address of the function trampoline w/o breaking ODR. Unfortunately, that means we cannot call the original function from within the mock in CentOS.

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 a pull request may close this issue.

2 participants