[Bug 708667] New: rtspconnection leaks file descriptors/child sources

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Sep 24 02:55:02 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=708667
  GStreamer | gst-plugins-base | git

           Summary: rtspconnection leaks file descriptors/child sources
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: ognyan.tonchev at axis.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


When watch->writesrc is not attached to a context it's child sources will never
be freed. The gsource api in glib looks a bit weird, it only removes child
sources from g_source_destroy and only if the source is attached to a context.

The problem can be reproduced in different ways, for example:

run the gst-rtsp-server unit tests: GST_CHECKS=test_play_smpte_range make
gst/rtspserver.valgrind

or

one of the examples in gst-rtsp-server: ./test-mp4 some.m4v (1 fd is leaked for
every RTSP session)

I am also going to write a unit test for rtspconnection.c which triggers the
problem and attach it to this report.

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