[Bug 675270] New: Potential memory leak in 0.10.36
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Tue May 1 17:03:16 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=675270
GStreamer | common | 0.10.36
Summary: Potential memory leak in 0.10.36
Classification: Platform
Product: GStreamer
Version: 0.10.36
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: common
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: g.stark at realdigitalmedia.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created an attachment (id=213253)
--> (https://bugzilla.gnome.org/attachment.cgi?id=213253)
Patch to show unbalanced malloc/free
An application I was running was memory stable under 0.10.35 but after
upgrading to Ubuntu 12.04 and gstreamer 0.10.36 the app shows a linear growth
in memory.
valgrind results look similar to #674787 but I'm not sure if this is the same
issue.
I added some debug code to gstvideoscale.c since it showed the largest memory
leak.
When run with playbin2 I see multiple passes to a malloc statement without an
unmatched free. However, running with playbin I do see matched malloc/free.
See: https://gist.github.com/2571816
gst-launch playbin2 uri=......
0:00:00.676655349 2908 0x938e120 DEBUG videoscale
gstvideoscale.c:310:gst_video_scale_init: GES: calling video scale init
0:00:00.838913586 2908 0xb5e05120 DEBUG videoscale
gstvideoscale.c:533:gst_video_scale_set_caps: GES: calling video scale malloc
0:00:00.841475643 2908 0xb5e05120 DEBUG videoscale
gstvideoscale.c:530:gst_video_scale_set_caps: GES: calling video scale free
before malloc
0:00:00.841486201 2908 0xb5e05120 DEBUG videoscale
gstvideoscale.c:533:gst_video_scale_set_caps: GES: calling video scale malloc
gst-launch playbin uri=......
0:00:01.136025328 2485 0x8dbeef0 DEBUG videoscale
gstvideoscale.c:310:gst_video_scale_init: GES: calling video scale init
0:00:01.444486894 2485 0xb609fc60 DEBUG videoscale
gstvideoscale.c:533:gst_video_scale_set_caps: GES: calling video scale malloc
0:00:03.937730093 2485 0x8db9600 DEBUG videoscale
gstvideoscale.c:324:gst_video_scale_finalize: GES: calling video scale finalize
0:00:03.937742026 2485 0x8db9600 DEBUG videoscale
gstvideoscale.c:327:gst_video_scale_finalize: GES: calling video scale free
I don't think the memory leak is in gstvideoscale but in something higher up
the chain.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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