negative ref count in treeview selection function using python-dbg
Bug #1048105 reported by
Dustin Spicuzza
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.
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
To post a comment you must log in.
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.