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

free valid_transitions for all states #509

Closed
wants to merge 31 commits into from

Conversation

vmayoral
Copy link
Member

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.

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>
hidmic and others added 2 commits September 25, 2019 14:57
* 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>
Copy link
Contributor

@clalancette clalancette left a 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.

@clalancette
Copy link
Contributor

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@clalancette
Copy link
Contributor

@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?

@vmayoral
Copy link
Member Author

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>
@clalancette
Copy link
Contributor

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.

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>
@clalancette
Copy link
Contributor

clalancette commented Oct 1, 2019

New CI: * Linux Build Status

@mabelzhang mabelzhang added enhancement New feature or request in progress Actively being worked on (Kanban column) and removed enhancement New feature or request labels Oct 3, 2019
clalancette and others added 11 commits October 8, 2019 08:05
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>
@mabelzhang mabelzhang added the enhancement New feature or request label Oct 17, 2019
Karsten1987 and others added 11 commits October 18, 2019 14:51
* 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>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
)

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Shane Loretz <sloretz@openrobotics.org>
@vmayoral vmayoral mentioned this pull request Nov 21, 2019
34 tasks
@dirk-thomas
Copy link
Member

@vmayoral @clalancette What is the status of this patch? On which side is the ball to follow up on this?

@vmayoral
Copy link
Member Author

@dirk-thomas It's up to you guys.

@dirk-thomas
Copy link
Member

Latest CI: Build Status

@vmayoral Please rebase the branch against the latest state of the target branch in order to run CI.

vmayoral and others added 3 commits November 22, 2019 09:24
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>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@vmayoral
Copy link
Member Author

Follows at #537

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in progress Actively being worked on (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet