negative ref count in treeview selection function using python-dbg

Bug #1048105 reported by Dustin Spicuzza
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pygtk (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When you run python-dbg with the debug packages, if you call set_select_function on a treeview, whenever the function is called python-dbg will assert with the following error:

Fatal Python error: gtktreeview.override:671 object at 0xb83fb0 has negative ref count -1

Attached is a test program that reproduces this each time you select the item in the treeview.

Kubuntu 12.04.1
Python 2.7.3
PyGTK 2.24.0-3

Tags: saucy
Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :
Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

Looking at PyEval_CallFunction, it appears that it expects the arguments to be referenced before they are passed in, as it dereferences them upon returning. By removing the Py_DECREF(pypath) at line 671 of gtktreeview.override, this bug no longer occurs.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pygtk (Ubuntu):
status: New → Confirmed
Revision history for this message
Forest (foresto) wrote :

This problem still exists in ubuntu 13.10 (saucy).

tags: added: saucy
Revision history for this message
Forest (foresto) wrote :

...and just to be clear, it is important because it prevents us from debugging other programs.

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.