-
Notifications
You must be signed in to change notification settings - Fork 162
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
free valid_transitions for all states #509
Conversation
transition_map->states[i].valid_transitions wasn't being release which was leaking about 800 bytes per instantiation. See aliasrobotics/RVD#333 Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
f664f80
to
091a40c
Compare
* Enable incremental parameter yaml file parsing. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com> * Parse CLI parameter files and overrides in rcl. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com> * Address peer review comments. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I'll approve and run CI on it; assuming it passes, I'll merge. Thanks.
@vmayoral The test failures in the Linux CI all seem new with this CI; they didn't happen in the nightlies: https://ci.ros2.org/view/nightly/job/nightly_linux_debug/1325/ . Thoughts? |
Our dynamic testing is running on top of the latest ros2 repos, I believe that corresponds with your nightly builds though I'm not sure. This flaw was detected using Google Sanitizers thereby I don't see any reason not to appear in your builds as well. It should IMHO. As for the bug, I started researching this because it was leaking 1MB+ on initialization. It looked like a potential vulnerability but I don't believe it now since it'd be hard to exploit beyond forcing additional initializations. Memory should be released though. The patch is just a proposal but feel free to change it if you guys would prefer to address this differently. |
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
I totally agree; this seems like a bug. And your fix seems reasonable. But it is causing test failures when I ran it through CI, so I think this needs a closer look. |
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
…ion (ros2#513) * add optional rmw payload to rcl options for pub and sub Signed-off-by: William Woodall <william@osrfoundation.org> * move ignore_local_publications into rmw options structure for subs Signed-off-by: William Woodall <william@osrfoundation.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
rcl_action_process_cancel_request() will never return RCL_RET_ACTION_SERVER_TAKE_FAILED. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Include rcl_context_t in the example usage. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
ros2#518) Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
* allocate loaned message Signed-off-by: Karsten Knese <karsten@openrobotics.org> * can_loan_messages for subscription Signed-off-by: Karsten Knese <karsten@openrobotics.org> * first draft of loaned message sequence Signed-off-by: Karsten Knese <karsten@openrobotics.org> * take loaned message Signed-off-by: Karsten Knese <karsten@openrobotics.org> * borrow/return & take/release Signed-off-by: Karsten Knese <karsten@openrobotics.org> * introduce rmw_publish_loaned_message Signed-off-by: Karsten Knese <karsten@openrobotics.org> * const correct publish Signed-off-by: Karsten Knese <karsten@openrobotics.org> * fix typo Signed-off-by: Knese Karsten <karsten@openrobotics.org> * address review Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Signed-off-by: Christophe Bedard <fixed-term.christophe.bourquebedard@de.bosch.com>
* Add localhost option to node creation Signed-off-by: Brian Ezequiel Marchi <brian.marchi65@gmail.com> * Bring localhost function from rmw Signed-off-by: Brian Ezequiel Marchi <brian.marchi65@gmail.com> * Satisfy uncrustify and address pr comments Signed-off-by: Brian Ezequiel Marchi <brian.marchi65@gmail.com>
Signed-off-by: Pete Baughman <pete.baughman@apex.ai>
It wasn't preventing any allocations from happening, so it doesn't seem to serve much purpose. Also remove the tests for the maximum string size. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
The implementation was removed in 3e0efce Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Avert breakage from ament/ament_cmake#206 Signed-off-by: Dan Rose <dan@digilabs.io>
@vmayoral @clalancette What is the status of this patch? On which side is the ball to follow up on this? |
@dirk-thomas It's up to you guys. |
@vmayoral Please rebase the branch against the latest state of the target branch in order to run CI. |
transition_map->states[i].valid_transitions wasn't being release which was leaking about 800 bytes per instantiation. See aliasrobotics/RVD#333 Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
Follows at #537 |
transition_map->states[i].valid_transitions wasn't being release which was
leaking about 800 bytes per instantiation.
See aliasrobotics/RVD#333. There's a pending quality-related leak in case someone wants to look at it.