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

Assertion `0 == std::memcmp(context, &zero_context, sizeof(rmw_context_t))' failed. #264

Closed
marcoag opened this issue Nov 2, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@marcoag
Copy link
Contributor

marcoag commented Nov 2, 2020

Bug report

Required Info:

  • Operating System: Ubuntu 20.04
  • Installation type: source
  • Version or commit hash: foxy branch (latest)
  • ROS foxy from deb binaries

Steps to reproduce issue

mkdir -p ros2_ws/src
cd ros2_ws/src
git clone https://github.com/ros2/rmw_cyclonedds ros2/rmw_cyclonedds
git clone https://github.com/eclipse-cyclonedds/cyclonedds eclipse-cyclonedds/cyclonedds
cd ros2/rmw_cyclonedds/
git checkout foxy
cd ../../..
rosdep install --from src -i
colcon build --symlink-install
source install/setup.bash
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
ros2 run demo_nodes_cpp talker

Expected behavior

Run the node and start publishing

Actual behavior

talker: /home/marco/ros2_ws/src/ros2/rmw_cyclonedds/rmw_cyclonedds_cpp/src/rmw_node.cpp:1151: rmw_ret_t rmw_init(const rmw_init_options_t*, rmw_context_t*): Assertion 0 == std::memcmp(context, &zero_context, sizeof(rmw_context_t))' failed.

Additional information

It works fine if I checkout 0.7.4

@hidmic
Copy link
Contributor

hidmic commented Nov 2, 2020

That assertion in rmw_node.cpp was removed in master by #208. We have to backport it.

@hidmic hidmic added the bug Something isn't working label Nov 2, 2020
@ivanpauno
Copy link
Member

I really don't understand why #202 was backported, backporting that kind of things is likely to introduce a bug and doesn't have any real value.

@marcoag
Copy link
Contributor Author

marcoag commented Nov 4, 2020

Working great now, thanks for the fix!

@marcoag marcoag closed this as completed Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants