Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-889

pyzoo_aget_children crashes due to incorrect watcher context

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: None
    • Component/s: contrib-bindings
    • Labels:
      None
    • Environment:

      OS X 10.6.5, Python 2.6.1

      Description

      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.

        Attachments

        1. repro.py
          1 kB
          Austin Bennett

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              austin Austin Bennett
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: