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 709879 - GObject constructor arguments leak with GValue wrapping
GObject constructor arguments leak with GValue wrapping
Status: RESOLVED OBSOLETE
Product: pygobject
Classification: Bindings
Component: gobject
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks: 693111
 
 
Reported: 2013-10-11 05:19 UTC by Simon Feltman
Modified: 2018-01-10 20:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simon Feltman 2013-10-11 05:19:02 UTC
Running valgrind on test_gi reveals the following leaks:

Test: tests/test_gi.py:TestPropertiesObject.test_variant:
Code: GIMarshallingTests.PropertiesObject(some_variant=GLib.Variant('b', True))
Stack:
81 bytes, 1 blocks
malloc
g_malloc
g_slice_alloc
g_variant_alloc
g_variant_new_from_bytes
g_variant_new_from_trusted
g_variant_new_boolean
ffi_call_unix64
ffi_call
g_callable_info_invoke
g_function_info_invoke
_invoke_callable


Test: tests/test_gi.py:TestPropertiesObject.test_boxed_struct:
Code: GIMarshallingTests.PropertiesObject(some_boxed_struct=struct1)
Stack:
24 bytes, 1 blocks
malloc
g_malloc
g_slice_alloc
gi_marshalling_tests_boxed_struct_copy
gi_marshalling_tests_properties_object_set_property
object_set_property
g_object_new_internal
g_object_newv
pygobject_constructv
pygobject_init
type_call
PyObject_Call


This could mean:
1. We need to clear GParameter.value out using g_value_unset after g_object_newv in gi/_gobject.
2. GIMarshallingTests needs to do it.

I tried a bit more verification with Gtk.Scrollbar(adjustment=Gtk.Adjustment()) but it seemed to be tracking references correctly. This points a bit more towards GIMarshalingTests needing work in property setting code.
Comment 1 GNOME Infrastructure Team 2018-01-10 20:33:31 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/55.