ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-554

zkpython can segfault when statting a deleted node

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.2, 3.3.0
    • Component/s: contrib-bindings
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      C client returns NULL for stat object for deleted nodes. zookeeper.c blindly dereferences it. Segfault.

      1. ZOOKEEPER-554.patch
        10 kB
        Henry Robinson

        Activity

        Henry Robinson created issue -
        Henry Robinson made changes -
        Field Original Value New Value
        Component/s contrib-bindings [ 12312860 ]
        Hide
        Henry Robinson added a comment -

        Attached is a fix, with tests included. I have also added a new suite of tests for callbacks to catch the same kind of issues in the same patch.

        Show
        Henry Robinson added a comment - Attached is a fix, with tests included. I have also added a new suite of tests for callbacks to catch the same kind of issues in the same patch.
        Henry Robinson made changes -
        Attachment ZOOKEEPER-554.patch [ 12422158 ]
        Henry Robinson made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Hadoop QA added a comment -

        +1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12422158/ZOOKEEPER-554.patch
        against trunk revision 824981.

        +1 @author. The patch does not contain any @author tags.

        +1 tests included. The patch appears to include 8 new or modified tests.

        +1 javadoc. The javadoc tool did not generate any warning messages.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 findbugs. The patch does not introduce any new Findbugs warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed core unit tests.

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h8.grid.sp2.yahoo.net/25/testReport/
        Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h8.grid.sp2.yahoo.net/25/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
        Console output: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h8.grid.sp2.yahoo.net/25/console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - +1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12422158/ZOOKEEPER-554.patch against trunk revision 824981. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 8 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h8.grid.sp2.yahoo.net/25/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h8.grid.sp2.yahoo.net/25/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Console output: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h8.grid.sp2.yahoo.net/25/console This message is automatically generated.
        Hide
        Patrick Hunt added a comment -

        +1, looks good, Thanks Henry!

        Show
        Patrick Hunt added a comment - +1, looks good, Thanks Henry!
        Patrick Hunt made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Resolution Fixed [ 1 ]
        Patrick Hunt made changes -
        Fix Version/s 3.2.2 [ 12314335 ]
        Patrick Hunt made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        12m 48s 1 Henry Robinson 15/Oct/09 00:07
        Patch Available Patch Available Resolved Resolved
        4d 20h 35m 1 Patrick Hunt 19/Oct/09 20:43
        Resolved Resolved Closed Closed
        157d 21h 41m 1 Patrick Hunt 26/Mar/10 17:25

          People

          • Assignee:
            Henry Robinson
            Reporter:
            Henry Robinson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development