[Bug 692691] New: Dangling pointer when doing allocation query on a flushing queue

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jan 28 02:04:56 PST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=692691
  GStreamer | gstreamer (core) | 1.x

           Summary: Dangling pointer when doing allocation query on a
                    flushing queue
    Classification: Platform
           Product: GStreamer
           Version: 1.x
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: alexas at axis.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


When querying a queue that is flushing we end up adding a query to the
queuearray without taking a reference to that query (because the normal
functionality is to block until that query is done and discarded from the
queue). This later causes problem if the query is unreffed outside of the queue
before we discard the queue. There is a check to avoid unreffing any lingering
query-objects, but since the query has been deleted that check fails.

Solution:
Remove the query from the queue if it is still there in the out_flushing: error
case in gstqueue.c:gst_queue_handle_sink_query

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