After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 695056 - Struct in arguments invalid after callback
Struct in arguments invalid after callback
Status: RESOLVED DUPLICATE of bug 722899
Product: pygobject
Classification: Bindings
Component: general
3.4.x
Other Linux
: Normal critical
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2013-03-03 14:46 UTC by Christoph Reiter (lazka)
Modified: 2014-01-24 22:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christoph Reiter (lazka) 2013-03-03 14:46:33 UTC
The following segfaults:

#######################################
from gi.repository import Gtk

model = Gtk.ListStore(object)
model.insert(0, row=[object()])

paths = []
def func(model, path, iter_, *args):
    paths.append(path)
model.foreach(func, None)

print paths[0]
#######################################

path is IN, ownership-transfer=None and doesn't seem to get copied.
Comment 1 Simon Feltman 2013-04-14 11:35:54 UTC
Verified.
Comment 2 Simon Feltman 2014-01-24 22:18:19 UTC

*** This bug has been marked as a duplicate of bug 722899 ***