[
https://issues.apache.org/jira/browse/ZOOKEEPER-804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920689#action_12920689
]
Jared Cantwell commented on ZOOKEEPER-804:
------------------------------------------
It seems like zookeeper_process unnecessarily calls api_prolog() and
api_epilog() to begin with. But given that api_prolog() is called at the
beginning, if this new code path executes while a close is requested, then the
threads will successfully exit, but the final part of zookeeper_close that
releases the memory on the last reference will not execute (since the last
reference will never be reached). Unless I'm missing something, this will leak
the zkhandle.
> c unit tests failing due to "assertion cptr failed"
> ---------------------------------------------------
>
> Key: ZOOKEEPER-804
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-804
> Project: Zookeeper
> Issue Type: Bug
> Components: c client
> Affects Versions: 3.4.0
> Environment: gcc 4.4.3, ubuntu lucid lynx, dual core laptop (intel)
> Reporter: Patrick Hunt
> Assignee: Michi Mutsuzaki
> Priority: Critical
> Fix For: 3.3.2, 3.4.0
>
> Attachments: ZOOKEEPER-804.patch
>
>
> I'm seeing this frequently:
> [exec] Zookeeper_simpleSystem::testPing : elapsed 18006 : OK
> [exec] Zookeeper_simpleSystem::testAcl : elapsed 1022 : OK
> [exec] Zookeeper_simpleSystem::testChroot : elapsed 3145 : OK
> [exec] Zookeeper_simpleSystem::testAuth ZooKeeper server started :
> elapsed 25687 : OK
> [exec] zktest-mt:
> /home/phunt/dev/workspace/gitzk/src/c/src/zookeeper.c:1952:
> zookeeper_process: Assertion `cptr' failed.
> [exec] make: *** [run-check] Aborted
> [exec] Zookeeper_simpleSystem::testHangingClient
> Mahadev can you take a look?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.