Memory leak on any async python call

Bug #963280 reported by Kapil Thangavelu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zookeeper (Ubuntu)
Fix Released
High
James Page
Precise
Fix Released
High
James Page

Bug Description

There is a missing Py_DECREF on all the results. For large results this can lead to a significant memory growth per call. Credits to Johan Rydberg for pointing out the issue to me and providing a sample program to reproduce. Patch and sample prog to be attached.

Related branches

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

Sample program attached to reproduce leak.

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

patch to fix attached, generated against 3.3 branch it should apply cleanly to 3.3.4 and 3.3.5

James Page (james-page)
Changed in zookeeper (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-12.04-beta-2
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Reproducible, so marking Confirmed. Should be forwarded along to upstream now.

Changed in zookeeper (Ubuntu Precise):
status: New → Confirmed
Revision history for this message
James Page (james-page) wrote :
Changed in zookeeper (Ubuntu Precise):
assignee: nobody → James Page (james-page)
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package zookeeper - 3.3.5+dfsg1-1ubuntu1

---------------
zookeeper (3.3.5+dfsg1-1ubuntu1) precise; urgency=low

  * d/patches/fixes/ZOOKEEPER-1431: Fix up memory leak in zookeeper
    python binding which results in significant memory growth for large
    result sets (LP: #963280). Thanks to Johan Rydberg for identifying
    this bug and Kapil Thangavelu for the patch.
 -- James Page <email address hidden> Fri, 23 Mar 2012 17:33:38 +0000

Changed in zookeeper (Ubuntu Precise):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.