[gstreamer-bugs] [Bug 591318] New: ghostpad : core dump : on_src_target_notify called with an invalid ghostpad

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Aug 10 04:49:56 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=591318

  GStreamer | gstreamer (core) | Ver: 0.10.22
           Summary: ghostpad : core dump : on_src_target_notify called with
                    an invalid ghostpad
           Product: GStreamer
           Version: 0.10.22
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: gstelzz at yahoo.fr
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


My pipeline has a tee with ghosted src request pads.

There is a race between caps notification on ghosted pads and ghost pad
release.

Pushing a buffer makes pad_push notify a caps changed on pad.
gst_pad_push -> gst_pad_configure_src -> gst_pad_set_caps ->
g_object_notify(pad, "caps") -> on_src_target_notify(pad, unused, ghostpad) 

Unlike the proxypad which has been reffed in gst_pad_push as the peer pad, the
ghost pad has not been reffed and might then be released in another thread.

This will lead to the use of an invalid pointer in on_src_target_notify.

on_src_target_notify should use the proxy pad instead of the ghost pad, and
access the ghost pad through the proxy pad, with mutex to ensure ghost pad is
valid.

I use a revision from March 2009 (something betwwen 0.10.22 and 23 I think,
with some patches), but I did not see any changes on git for this problem.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=591318.




More information about the Gstreamer-bugs mailing list