-
Notifications
You must be signed in to change notification settings - Fork 345
Running the allocator_tutorial in intraprocess mode causes a segmentation fault #501
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
Comments
It looks like we are trying to do a |
Moving a null shared_ptr isn't an issue though. |
I stepped through the code and things go sideways in the last function call:
It seems like memory corruption to me. I'll keep poking at it too. |
Just as an FYI; I commented out the code adding a custom allocator for the subscriber, and the crash went away. See 64a61a6 for what I mean. I wonder, then, if this is involved with ros2/rclcpp#1324 . I'm going to have to give this investigation up for the day, but I think that is where I would look next. |
I think ros2/rclcpp#1643 fixes this issue, but we may also want to do some version of https://github.com/ros2/rclcpp/tree/hidmic/workaround-allocator-crash (no pull request yet). |
I should say, I've yet to confirm ros2/rclcpp#1643 fixes the issue, but I think it may. I'll check tomorrow. |
Actually, I just managed to fix my issue (I had a dirty branch for the demos repo) and tested it. The |
Closing with ros2/rclcpp#1643, though @hidmic is going to open another pull request to fix more undefined behavior. |
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
Command runs until user stops it with Ctrl-C
Actual behavior
Command segfaults after a second or two
Additional information
Running the demo in regular (non-intraprocess) mode works fine.
The text was updated successfully, but these errors were encountered: