You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Austin Shoemaker (JIRA)" <ji...@apache.org> on 2010/10/07 06:16:31 UTC

[jira] Created: (ZOOKEEPER-889) pyzoo_aget_children crashes due to incorrect watcher context

pyzoo_aget_children crashes due to incorrect watcher context
------------------------------------------------------------

                 Key: ZOOKEEPER-889
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-889
             Project: Zookeeper
          Issue Type: Bug
          Components: contrib-bindings
    Affects Versions: 3.3.1
         Environment: OS X 10.6.5, Python 2.6.1
            Reporter: Austin Shoemaker
            Priority: Critical


The pyzoo_aget_children function passes the completion callback ("pyw") in place of the watcher callback ("get_pyw"). Since it is a one-shot callback, it is deallocated after the completion callback fires, causing a crash when the watcher callback should be invoked.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-889) pyzoo_aget_children crashes due to incorrect watcher context

Posted by "Austin Shoemaker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Austin Shoemaker updated ZOOKEEPER-889:
---------------------------------------

    Attachment: repro.py

Minimal repro script

> pyzoo_aget_children crashes due to incorrect watcher context
> ------------------------------------------------------------
>
>                 Key: ZOOKEEPER-889
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-889
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: contrib-bindings
>    Affects Versions: 3.3.1
>         Environment: OS X 10.6.5, Python 2.6.1
>            Reporter: Austin Shoemaker
>            Priority: Critical
>         Attachments: repro.py
>
>
> The pyzoo_aget_children function passes the completion callback ("pyw") in place of the watcher callback ("get_pyw"). Since it is a one-shot callback, it is deallocated after the completion callback fires, causing a crash when the watcher callback should be invoked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (ZOOKEEPER-889) pyzoo_aget_children crashes due to incorrect watcher context

Posted by "Austin Shoemaker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Austin Shoemaker resolved ZOOKEEPER-889.
----------------------------------------

    Resolution: Fixed

Just noticed that the fix is already in trunk, closing the issue.

> pyzoo_aget_children crashes due to incorrect watcher context
> ------------------------------------------------------------
>
>                 Key: ZOOKEEPER-889
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-889
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: contrib-bindings
>    Affects Versions: 3.3.1
>         Environment: OS X 10.6.5, Python 2.6.1
>            Reporter: Austin Shoemaker
>            Priority: Critical
>         Attachments: repro.py
>
>
> The pyzoo_aget_children function passes the completion callback ("pyw") in place of the watcher callback ("get_pyw"). Since it is a one-shot callback, it is deallocated after the completion callback fires, causing a crash when the watcher callback should be invoked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.