GNOME Bugzilla – Bug 480341
Memory leak at fakesink (regression in cvs)
Last modified: 2007-09-26 18:05:26 UTC
A change introduced on cvs during last 3 weeks causes a big memory leak on fakesink. I suspect that the change/bug is at basesink. Can be reproduced with the following command: G_DEBUG=gc-friendly G_SLICE=always-malloc valgrind --leak-resolution=high --leak-check=full --num-callers=20 --alignment=8 gst-launch-0.10 videotestsrc num-buffers=200 ! fakesink 2>leak.txt The ammount of memory leak is linear dependent on num-buffers.
Created attachment 96191 [details] Valgrind report This is the valgrind report obtained with: G_DEBUG=gc-friendly G_SLICE=always-malloc valgrind --leak-resolution=high --leak-check=full --num-callers=20 --alignment=8 gst-launch-0.10 videotestsrc num-buffers=200 ! fakesink 2>leak.txt
Created attachment 96193 [details] Valgrind report using cvs from 3 weeks ago Same valgrind command of comment #2 but using gstreamer cvs three weeks older.
I saw some leaks with fakesink today too, probably basesink related... I'll provide a valgrind log tomorrow.
(or could be basesrc)
I saw this too. I will investigate.
Does this also happen if you install a GLib with full debugging symbols, ie. libglib2.0-0-dbg on ubuntu/debian? I've seen valgrind report false positives when using a stripped GLib (don't really understand why it happens though).
Fixed with: * gst/gstbuffer.c: (gst_buffer_finalize): Make it once again possible to free GstBuffers in the default build. The poisoning scribbles on parts of the miniobject we need in order to free it.