[
https://issues.apache.org/jira/browse/GEODE-5708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16609480#comment-16609480
]
Jorge Perez Burgos commented on GEODE-5708:
-------------------------------------------
In this case it's a patch to show more where the problem is, probably it's a
better fix changing or adding constructor in VersionedCacheableObjectPartList
class.
P.D: by the way i noticed there is a forward declaration in SelectResults.hpp
of a SelectResultsIterator class that doesn't exist anymore.
> Memory corruption in c++ client
> -------------------------------
>
> Key: GEODE-5708
> URL: https://issues.apache.org/jira/browse/GEODE-5708
> Project: Geode
> Issue Type: Bug
> Components: native client
> Reporter: Jorge Perez Burgos
> Priority: Major
> Attachments:
> fix-memory-allocation-d0ff5d7e393f17955f54d3fe0bdf2694c78e9a7e.patch
>
>
> When using partition regions there is a double free the ends corrupting the
> client process. This is caused because instead of assigning shared pointers
> directly the content of a shared pointer is assign to another shared pointer
> so the reference count is messed up. I attach a tentative fix/workaround that
> copies the content although the best option is possibly to create a new or
> modify a constructor in VersionedCacheableObjectPartList class.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)