[ 
https://issues.apache.org/jira/browse/ARROW-5036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17662058#comment-17662058
 ] 

Rok Mihevc commented on ARROW-5036:
-----------------------------------

This issue has been migrated to [issue 
#21531|https://github.com/apache/arrow/issues/21531] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [Plasma][C++] Serialization tests resort to memcpy to check equality
> --------------------------------------------------------------------
>
>                 Key: ARROW-5036
>                 URL: https://issues.apache.org/jira/browse/ARROW-5036
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++ - Plasma
>            Reporter: Francois Saint-Jacques
>            Priority: Major
>
> {code:bash}
> 1: 
> /tmp/arrow-0.13.0.Q4czW/apache-arrow-0.13.0/cpp/src/plasma/test/serialization_tests.cc:193:
>  Failure
> 1: Expected equality of these values:
> 1:   memcmp(&plasma_objects[object_ids[0]], &plasma_objects_return[0], 
> sizeof(PlasmaObject))
> 1:     Which is: 45
> 1:   0
> 1: [  FAILED  ] PlasmaSerialization.GetReply (0 ms)
> {code}
> The source of the problem is the random_plasma_object stack allocated object. 
> As a fix, I propose that PlasmaObject implements the `operator==` method and 
> drops the memcpy equality check.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to