[Bug 765052] tracer: add (mini) object leak tracer

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon May 16 08:50:12 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=765052

--- Comment #34 from Guillaume Desmottes <gdesmott at gnome.org> ---
(In reply to Sebastian Dröge (slomo) from comment #31)
> Yes, use GPOINTER_TO_GSIZE() and the other way around. See the GValue GType
> handling in e.g. glib's gparamspecs.c
> 
> Also this should really happen in GObject::constructed. What Tim remembered
> about the class not being the real class yet in instance_init is correct
> (which is why there is a second, hidden parameter with the real class
> struct). In GstObject's instance_init you will *always* get the original
> GObjectClass (that is, G_TYPE_FROM_CLASS() == G_TYPE_OBJECT).

Fixed. I'll attach the new patch once we'll have agreed on the tracer hooks and
flag names.


(In reply to Sebastian Dröge (slomo) from comment #32)
> I was also wondering, your leak patches for the tests etc, are they
> generated with the help of this? Can you document somewhere how you did it
> exactly? :)

Yep, I just ran 'GST_TRACERS="leaks" make check' and the debugged each failing
test. :)
My plan would be to have this automatically done by a Jenkins bot as part of
our existing QA tests.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list