[Foxy] Handle exception on deserializing ROS message#603
[Foxy] Handle exception on deserializing ROS message#603fujitatomoya merged 4 commits intoros2:foxyfrom suurjaak:foxy
Conversation
Signed-off-by: Erki Suurjaak <erki@lap.ee>
|
Indeed, that looks fully compatible, and more complete. And looking it over, I noticed a few more things I would change, to make deserialization more robust. The dynamic_cpp version can throw How should I go about this - cherry-pick commits from that pull request into this one? |
#505 has been merged to master, humble and galactic. So yes, you can cherry-pick the PR.
#505 seems to address this too. If you have additional fix related, i would create another PR to master then backport it to humble, galactic and foxy. |
As an example, deserializeROSMessage(Cdr&, void*, void*) calls the overloaded deserializeROSMessage(Cdr&, MembersType*, void*), and the latter throws Does this not look equally crash-inducing? |
|
#505 addresses CDR exception, which i think we can fix original issue for foxy ros2/rclpy#923.
i am not sure if we can make this happen, but as you pointed out this possibly generates the |
* Capturing fastcdr exceptions. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Erki Suurjaak <erki@lap.ee>
Signed-off-by: Erki Suurjaak <erki@lap.ee>
|
Added #505.
Can you clarify this comment? I am not sure what you meant here. |
|
i mean i am not sure if we can make it happen. if you are willing to address this, i am happy to review PR too !!! in that case, probably we would want to have another PR, so that we can have individual PR for each problem. |
|
Regarding making another pull request - there appears no need, as the current ROS2 master no longer terminates |
|
@MiguelCompany @ivanpauno requesting another review. |
|
@fujitatomoya Is there a problem on the buildfarm?
|
I think the reason for this is that the CI was launched with |
|
@clalancette do we need to run CI_USE_FASTRTPS_DYNAMIC? by default, CI does not run this one. |
|
could you check test failures https://ci.ros2.org/job/ci_windows/17188/testReport/? it seems to be unrelated, but just in case. https://ci.ros2.org/job/ci_windows/17188/cmake/folder.114148/ and https://ci.ros2.org/job/ci_windows/17188/msbuild/new/ are unrelated for sure. |
|
@fujitatomoya anything specific from those 79 failures? I looked over a few dozen items and they all seemed unrelated. |
|
Okay now mainline(foxy branch) has the same unstable result. I will go ahead to merge this into foxy. |
Fixes ros2/rclpy#923.
Minimal code for reproducing error:
Result without the fix:
Result with the fix: