After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590797 - Memory leak in rtpsource.c
Memory leak in rtpsource.c
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal critical
: 0.10.14
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-05 05:36 UTC by ric
Modified: 2009-08-06 17:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ric 2009-08-05 05:36:52 UTC
Please describe the problem:
when there is bad sequence rtp, there is memory leak of one gstbuffer.

Steps to reproduce:
1. under streaming media data environment, large bitrate (>2Mbps) 
2. lost rtp or resent lost rtp
3. there is bad sequence rtp in function: rtp_source_process_rtp


Actual results:
memory leak, process crash

Expected results:


Does this happen every time?
no, sometimes. when there is bad sequence rtp

Other information:
I have fixed this.
Just tell others.
add this to rtp_source_process_rtp function:
bad_sequence:
  {
    GST_WARNING ("unacceptable seqnum received");
    static int bytes = 0 ;
    bytes += sizeof(*buffer) ;
    bytes += GST_BUFFER_SIZE(buffer);
    fprintf(stderr, "--ric rtp mleak[%d] kB\n", bytes/1024);
 
    gst_buffer_unref(buffer);
    return GST_FLOW_OK;
  }
Comment 1 Wim Taymans 2009-08-06 17:34:16 UTC
Thanks!

commit 15b29bb8347938aebe920d4ebd2ec211dd43052a
Author: ric <csxnju at sogou.com>
Date:   Thu Aug 6 19:26:21 2009 +0200

    rtpsource: avoid buffer leak on bad seqnum
    
    Fixes #590797