[Bug 749427] New: Dispose/finalize GST_REFCOUNTING log messages missing poitner of object being disposed/finalized

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri May 15 05:42:28 PDT 2015


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

            Bug ID: 749427
           Summary: Dispose/finalize GST_REFCOUNTING log messages missing
                    poitner of object being disposed/finalized
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: gnome-bugzilla at combellack.net
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

When GST_REFCOUNTING is enabled, it logs object creation, dispose and
finalization. This is useful for identifying memory leaks in applications that
have not disposed of GStreamer objects correctly.

Currently, the dispose and finalize log messages do not log the address of the
object that they are disposing/finalizing (as shown by the example
GST_REFCOUNTING log lines below):

0:00:00.143050214  2886      0x2215a60 TRACE        GST_REFCOUNTING
gstobject.c:280:gst_object_unref:<pipeline> 0x2232120 unref 1->0
0:00:00.143058808  2886      0x2215a60 TRACE        GST_REFCOUNTING
gstobject.c:369:gst_object_dispose:<pipeline> dispose
0:00:00.143066542  2886      0x2215a60 TRACE        GST_REFCOUNTING
gstobject.c:411:gst_object_finalize:<pipeline> finalize
0:00:00.143073872  2886      0x2215a60 TRACE        GST_REFCOUNTING
gstobject.c:769:gst_object_unparent:<bin> unparent
0:00:00.143080301  2886      0x2215a60 TRACE        GST_REFCOUNTING
gstobject.c:280:gst_object_unref:<bin> 0x2232040 unref 1->0
0:00:00.143088379  2886      0x2215a60 TRACE        GST_REFCOUNTING
gstobject.c:369:gst_object_dispose:<bin> dispose
0:00:00.143095991  2886      0x2215a60 TRACE        GST_REFCOUNTING
gstobject.c:411:gst_object_finalize:<bin> finalize
0:00:00.143109050  2886      0x2215a60 TRACE        GST_REFCOUNTING
gstobject.c:411:gst_object_finalize:<registry0> finalize


This makes it very difficult to match up object allocation/dispose/finalize log
messages without "guessing/calculating" which dispose/finalize log messages are
for which objects

-- 
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