[
https://issues.apache.org/jira/browse/ZOOKEEPER-5103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Kyle Purtell updated ZOOKEEPER-5103:
-------------------------------------------
Description:
The C client leaks memory across multiple error handling paths, request
serialization routines, and handle close sequences. A cluster of open JIRA
issues (ZOOKEEPER-4975, ZOOKEEPER-4999, ZOOKEEPER-5000, ZOOKEEPER-5004,
ZOOKEEPER-5005, ZOOKEEPER-5006, ZOOKEEPER-1985, ZOOKEEPER-2882, and
ZOOKEEPER-3868) all have the same essential root cause, which is an ambiguous
resource ownership contract (or lack thereof) between the client library and
application code during failure modes and connection termination.
Dynamic analysis of master (commit 48f7cb00e) under AddressSanitizer and
LeakSanitizer reports 45,578 bytes leaked across 178 allocations in the CppUnit
test harness.
> Address multiple memory leaks identified by static analysis
> -----------------------------------------------------------
>
> Key: ZOOKEEPER-5103
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-5103
> Project: ZooKeeper
> Issue Type: Bug
> Components: c client
> Reporter: Andrew Kyle Purtell
> Assignee: Andrew Kyle Purtell
> Priority: Major
>
> The C client leaks memory across multiple error handling paths, request
> serialization routines, and handle close sequences. A cluster of open JIRA
> issues (ZOOKEEPER-4975, ZOOKEEPER-4999, ZOOKEEPER-5000, ZOOKEEPER-5004,
> ZOOKEEPER-5005, ZOOKEEPER-5006, ZOOKEEPER-1985, ZOOKEEPER-2882, and
> ZOOKEEPER-3868) all have the same essential root cause, which is an ambiguous
> resource ownership contract (or lack thereof) between the client library and
> application code during failure modes and connection termination.
> Dynamic analysis of master (commit 48f7cb00e) under AddressSanitizer and
> LeakSanitizer reports 45,578 bytes leaked across 178 allocations in the
> CppUnit test harness.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)