[gstreamer-bugs] [Bug 618832] Memory Leak

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon May 17 10:41:15 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=618832
  GStreamer | gst-ffmpeg | 0.10.10

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |t.i.m at zen.co.uk
          Component|gstreamer (core)            |gst-ffmpeg
            Version|0.10.29                     |0.10.10
     Ever Confirmed|0                           |1

--- Comment #2 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2010-05-17 17:41:09 UTC ---
Using the latest releases/pre-releases, I only see some minor leakage in
gst-ffmpeg.

10 iterations of your movie yield:

tpm at zingle:~/gst/releases/code$ libtool --mode=link gcc `pkg-config --cflags
--libs gstreamer-0.10` -o leak leak.c  -Wall -ggdb
tpm at zingle:~/gst/releases/code$ G_SLICE=always-malloc valgrind
--suppressions=../gstreamer/common/gst.supp --leak-check=yes .libs/leak
file:///home/tpm/samples/618832-example.mov 

==6431== Memcheck, a memory error detector
==6431== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==6431== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright
info
==6431== Command: .libs/leak file:///home/tpm/samples/618832-example.mov
==6431== 
** Message: received EOS
** Message: received EOS
** Message: received EOS
** Message: received EOS
** Message: received EOS
** Message: received EOS
** Message: received EOS
** Message: received EOS
** Message: received EOS
** Message: received EOS
** Message: stopping
==6431== 
==6431== HEAP SUMMARY:
==6431==     in use at exit: 2,485,102 bytes in 32,075 blocks
==6431==   total heap usage: 2,340,489 allocs, 2,308,414 frees, 226,123,231
bytes allocated
==6431== 
==6431== 720 (120 direct, 600 indirect) bytes in 5 blocks are definitely lost
in loss record 4,973 of 5,097
==6431==    at 0x4C221A7: malloc (vg_replace_malloc.c:195)
==6431==    by 0x5CF0504: g_malloc (gmem.c:132)
==6431==    by 0x5D05409: g_slice_alloc (gslice.c:836)
==6431==    by 0x5CE5485: g_list_append (glist.c:242)
==6431==    by 0xB5FDCF7: gst_ffmpegdec_video_frame (gstffmpegdec.c:1590)
==6431==    by 0xB600240: gst_ffmpegdec_frame (gstffmpegdec.c:2187)
==6431==    by 0xB601478: gst_ffmpegdec_drain (gstffmpegdec.c:2282)
==6431==    by 0xB60193C: gst_ffmpegdec_chain (gstffmpegdec.c:2463)
==6431==    by 0x4E836EC: gst_pad_chain_data_unchecked (gstpad.c:4131)
==6431==    by 0x4E83FAD: gst_pad_push_data (gstpad.c:4360)
==6431==    by 0x8DF26C5: gst_multi_queue_loop (gstmultiqueue.c:919)
==6431==    by 0x4EABE3A: gst_task_func (gsttask.c:271)
==6431== 
==6431== 720 (120 direct, 600 indirect) bytes in 5 blocks are definitely lost
in loss record 4,974 of 5,097
==6431==    at 0x4C221A7: malloc (vg_replace_malloc.c:195)
==6431==    by 0x5CF0504: g_malloc (gmem.c:132)
==6431==    by 0x5D05409: g_slice_alloc (gslice.c:836)
==6431==    by 0x5CE5485: g_list_append (glist.c:242)
==6431==    by 0xB5FDCF7: gst_ffmpegdec_video_frame (gstffmpegdec.c:1590)
==6431==    by 0xB600240: gst_ffmpegdec_frame (gstffmpegdec.c:2187)
==6431==    by 0xB601478: gst_ffmpegdec_drain (gstffmpegdec.c:2282)
==6431==    by 0xB602ABF: gst_ffmpegdec_sink_event (gstffmpegdec.c:2327)
==6431==    by 0x4E80DA5: gst_pad_send_event (gstpad.c:5052)
==6431==    by 0x4E81272: gst_pad_push_event (gstpad.c:4908)
==6431==    by 0x8DF2326: gst_multi_queue_loop (gstmultiqueue.c:942)
==6431==    by 0x4EABE3A: gst_task_func (gsttask.c:271)
==6431== 
==6431== LEAK SUMMARY:
==6431==    definitely lost: 240 bytes in 10 blocks
==6431==    indirectly lost: 1,200 bytes in 50 blocks
==6431==      possibly lost: 0 bytes in 0 blocks
==6431==    still reachable: 477,957 bytes in 6,604 blocks
==6431==         suppressed: 2,005,705 bytes in 25,411 blocks
==6431== Reachable blocks (those to which a pointer was found) are not shown.
==6431== To see them, rerun with: --leak-check=full --show-reachable=yes
==6431== 
==6431== For counts of detected and suppressed errors, rerun with: -v
==6431== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 378 from 285)

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