-
Notifications
You must be signed in to change notification settings - Fork 765
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
[16360] Protect from uncaught exception during SHM Segment creation. #3293
[16360] Protect from uncaught exception during SHM Segment creation. #3293
Conversation
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
…rows Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com>
Signed-off-by: Javier Santiago <javiersantiago@eprosima.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.
The Regression Test and the fix work as expected. Just a couple of minor comments
Signed-off-by: Javier Santiago <javiersantiago@eprosima.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.
LGTM
Signed-off-by: Javier Santiago <javiersantiago@eprosima.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.
LGTM with green CI
@richiprosima please test this |
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
@richiprosima please test uncrustify |
@richiprosima please test windows |
Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
de1cd4d
to
2fba8e4
Compare
@richiprosima Please test windows |
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.
LGTM with green CI
@richiprosima please test linux |
@richiprosima please test mac |
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.
LGTM
@richiprosima please test mac discovery-server |
@richiprosima please discovery-server |
@richiprosima please test discovery-server |
@Mergifyio backport 2.9.x 2.8.x 2.6.x |
✅ Backports have been created
|
* Added regression test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fix Segfault when SharedSegment::compute_per_allocation_extra_size throws Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> * Refs #16360: Added comments and remove some unneeded code Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Applied suggestions Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Uncrustify Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fixed Windows warnings Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Added NOMINMAX flag to test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> --------- Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> Co-authored-by: Eduardo Ponz <eduardoponz@eprosima.com> (cherry picked from commit 72d1ba1)
* Added regression test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fix Segfault when SharedSegment::compute_per_allocation_extra_size throws Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> * Refs #16360: Added comments and remove some unneeded code Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Applied suggestions Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Uncrustify Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fixed Windows warnings Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Added NOMINMAX flag to test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> --------- Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> Co-authored-by: Eduardo Ponz <eduardoponz@eprosima.com> (cherry picked from commit 72d1ba1) # Conflicts: # src/cpp/rtps/DataSharing/WriterPool.hpp
* Added regression test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fix Segfault when SharedSegment::compute_per_allocation_extra_size throws Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> * Refs #16360: Added comments and remove some unneeded code Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Applied suggestions Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Uncrustify Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fixed Windows warnings Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Added NOMINMAX flag to test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> --------- Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> Co-authored-by: Eduardo Ponz <eduardoponz@eprosima.com> (cherry picked from commit 72d1ba1) # Conflicts: # src/cpp/rtps/DataSharing/WriterPool.hpp
* Protect from uncaught exception during SHM Segment creation (#3293) * Added regression test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fix Segfault when SharedSegment::compute_per_allocation_extra_size throws Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> * Refs #16360: Added comments and remove some unneeded code Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Applied suggestions Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Uncrustify Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fixed Windows warnings Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Added NOMINMAX flag to test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> --------- Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> Co-authored-by: Eduardo Ponz <eduardoponz@eprosima.com> (cherry picked from commit 72d1ba1) # Conflicts: # src/cpp/rtps/DataSharing/WriterPool.hpp * Fixed conflicts Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Removed incompatible changes Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> --------- Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> Co-authored-by: jsantiago-eProsima <90755661+jsantiago-eProsima@users.noreply.github.com> Co-authored-by: Javier Santiago <javiersantiago@eprosima.com>
…#3293) (#3333) * Protect from uncaught exception during SHM Segment creation (#3293) * Added regression test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fix Segfault when SharedSegment::compute_per_allocation_extra_size throws Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> * Refs #16360: Added comments and remove some unneeded code Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Applied suggestions Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Uncrustify Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fixed Windows warnings Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Added NOMINMAX flag to test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> --------- Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> Co-authored-by: Eduardo Ponz <eduardoponz@eprosima.com> (cherry picked from commit 72d1ba1) # Conflicts: # src/cpp/rtps/DataSharing/WriterPool.hpp * Fixed conflicts Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fixed log macro name Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fixed log macro name Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Refs #16360: Please uncrustify Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Modified SharedMemSegment mock to be in line with 2.6.x version of the same class Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> --------- Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> Co-authored-by: jsantiago-eProsima <90755661+jsantiago-eProsima@users.noreply.github.com> Co-authored-by: Javier Santiago <javiersantiago@eprosima.com> Co-authored-by: JesusPoderoso <jesuspoderoso@eprosima.com>
* Added regression test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fix Segfault when SharedSegment::compute_per_allocation_extra_size throws Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> * Refs #16360: Added comments and remove some unneeded code Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Applied suggestions Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Uncrustify Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Fixed Windows warnings Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> * Added NOMINMAX flag to test Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> --------- Signed-off-by: Javier Santiago <javiersantiago@eprosima.com> Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> Co-authored-by: Eduardo Ponz <eduardoponz@eprosima.com>
This PR adds protection for possible
boost::interprocess::interprocess_exception
that may be thrown during the execution ofSharedMemSegment::compute_per_allocation_extra_size
Description
@Mergifyio backport 2.9.x 2.8.x 2.6.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist