[gstreamer-bugs] [Bug 566903] New: gst.Pad.iterate_internal_links may raise critical warning or segfault

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Jan 7 06:45:26 PST 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=566903

  GStreamer | gst-python | Ver: 0.10.13
           Summary: gst.Pad.iterate_internal_links may raise critical
                    warning or segfault
           Product: GStreamer
           Version: 0.10.13
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-python
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: manauw at skynet.be
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Core gst_pad_iterate_internal_links() might return NULL rather than an actual
iterator, e.g. if the pad has no parent or not an Element as parent (e.g. in
ghostpad/proxypad setting), which pygst_iterator_new and friends do not seem to
appreciate.

An interactive session can reproduce as exampled below
(if debug GST_PADS >= 4 segfault occurs).

As to a fix; maybe core should not return NULL, but an empty list/iterator, or
pygst should come up with an "empty" one, or throw exception, or ... ? 



Python 2.5.2 (r252:60911, Apr 21 2008, 11:17:30)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gst
>>> p = gst.Pad('p', gst.PAD_SRC)
>>> it = p.iterate_internal_links()
>>> it.next()

(.:20394): GStreamer-CRITICAL **: gst_iterator_next: assertion `it != NULL'
failed
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Error
>>> quit()

(.:20394): GStreamer-CRITICAL **: gst_iterator_free: assertion `it != NULL'
failed


-- 
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=566903.




More information about the Gstreamer-bugs mailing list