Henry Robinson updated ZOOKEEPER-538:

    Attachment: callback.patch

This should fix the problem - if a completion callback wasn't specified for 
async functions, the C zookeeper library would try and call NULL. 

Fixed by adding a callback to every async call which exits if no callback has 
been supplied by the user.

I haven't added any new tests for this yet - Patrick, the smoketest is already 
better than what zkpython currently has I think. When it's finished, will you 
commit that?

> zookeeper.async causes python to segfault
> -----------------------------------------
>                 Key: ZOOKEEPER-538
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-538
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: contrib-bindings
>    Affects Versions: 3.2.1
>            Reporter: Patrick Hunt
>            Assignee: Henry Robinson
>            Priority: Critical
>         Attachments: callback.patch
> Henry, can you take a look at this, am I doing it right?
> calling 
>         zookeeper.async(self.handle, path)
> causes python to segfault.
> see: http://github.com/phunt/zk-smoketest/blob/master/zk-smoketest.py

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

Reply via email to