Gstreamer memory leak: how do I hunt it down?

Graham Leggett minfrin at sharp.fm
Sun Dec 18 00:41:09 UTC 2016


Hi all,

I have a gstreamer that slowly increases in size over time, until oomkiller steps in after a few hours and blows it away.

Using GST_REFCOUNTING set to 9, I am finding what looks like the leak, but I need help interpreting this. What do the addresses 0x740f7580 and 0x74204818 refer to? Am I looking at one object with thousands of references to it, or many objects?

Is this maybe an array of some kind that keeps increasing in size?

0:01:01.779640164  1232 0x740f7580 TRACE        GST_REFCOUNTING gstobject.c:275:gst_object_unref:<allocatorsysmem0> 0x74204818 unref 5958->5957
0:01:01.779719382  1232 0x7408cc60 TRACE        GST_REFCOUNTING gstobject.c:275:gst_object_unref:<allocatorsysmem0> 0x74204818 unref 5958->5957
0:01:01.779825319  1232 0x7408cc60 TRACE        GST_REFCOUNTING gstobject.c:275:gst_object_unref:<allocatorsysmem0> 0x74204818 unref 5956->5955
0:01:01.779882089  1232 0x7407e0f0 TRACE        GST_REFCOUNTING gstobject.c:275:gst_object_unref:<allocatorsysmem0> 0x74204818 unref 5956->5955
0:01:01.779953182  1232 0x740f7580 TRACE        GST_REFCOUNTING gstobject.c:275:gst_object_unref:<allocatorsysmem0> 0x74204818 unref 5955->5954
0:01:01.780327084  1232 0x740f7580 TRACE        GST_REFCOUNTING gstobject.c:275:gst_object_unref:<allocatorsysmem0> 0x74204818 unref 5953->5952
0:01:01.780604269  1232 0x7408cc60 TRACE        GST_REFCOUNTING gstobject.c:249:gst_object_ref:<allocatorsysmem0> 0x74204818 ref 5952->5953
0:01:01.780793173  1232 0x7407e0f0 TRACE        GST_REFCOUNTING gstobject.c:275:gst_object_unref:<allocatorsysmem0> 0x74204818 unref 5953->5952
0:01:01.781219106  1232 0x7407e0f0 TRACE        GST_REFCOUNTING gstobject.c:249:gst_object_ref:<allocatorsysmem0> 0x74204818 ref 5952->5953
0:01:01.781276397  1232 0x7408cc60 TRACE        GST_REFCOUNTING gstobject.c:249:gst_object_ref:<allocatorsysmem0> 0x74204818 ref 5952->5953
0:01:01.781873943  1232 0x740f7580 TRACE        GST_REFCOUNTING gstobject.c:275:gst_object_unref:<allocatorsysmem0> 0x74204818 unref 5954->5953
0:01:01.782029150  1232 0x7407e0f0 TRACE        GST_REFCOUNTING gstobject.c:249:gst_object_ref:<allocatorsysmem0> 0x74204818 ref 5953->5954
0:01:01.782796017  1232 0x7407e0f0 TRACE        GST_REFCOUNTING gstobject.c:275:gst_object_unref:<allocatorsysmem0> 0x74204818 unref 5954->5953
0:01:01.783040181  1232 0x740f7580 TRACE        GST_REFCOUNTING gstobject.c:249:gst_object_ref:<allocatorsysmem0> 0x74204818 ref 5953->5954
0:01:01.783131638  1232 0x7408cc60 TRACE        GST_REFCOUNTING gstobject.c:249:gst_object_ref:<allocatorsysmem0> 0x74204818 ref 5953->5954

Regards,
Graham
—

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3240 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161218/380f0371/attachment.bin>


More information about the gstreamer-devel mailing list