[Bug 767946] New: decoder: Segfault when rtspsrc fallbacks to TCP

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jun 22 13:57:01 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=767946

            Bug ID: 767946
           Summary: decoder: Segfault when rtspsrc fallbacks to TCP
    Classification: Platform
           Product: GStreamer
           Version: 1.8.2
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer-vaapi
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: nnoell3 at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
                CC: bsreerenj at gmail.com, vjaquez at igalia.com
     GNOME version: ---

Created attachment 330192
  --> https://bugzilla.gnome.org/attachment.cgi?id=330192&action=edit
backtrace

Hi there,

When the rtspsrc element cannot receive any UDP packets for 5s and fallbacks to
TCP, the vaapi h264 decoder segfaults if it is used with decodebin.

gst-launch-1.0 rtspsrc
location=<rtsp-source-that-takes-more-than-5s-to-send-UDP-packets> ! decodebin
! fakesink

...
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is
blocking it. Retrying using a TCP connection.
** (gst-launch-1.0:2047): CRITICAL **: gst_vaapi_video_context_get_display:
assertion 'GST_IS_CONTEXT (context)' failed
(gst-launch-1.0:2047): GStreamer-CRITICAL **: gst_context_get_context_type:
assertion 'GST_IS_CONTEXT (context)' failed
(gst-launch-1.0:2047): GStreamer-CRITICAL **: gst_mini_object_ref: assertion
'mini_object != NULL' failed
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
(gst-launch-1.0:2047): GStreamer-CRITICAL **: gst_context_get_context_type:
assertion 'GST_IS_CONTEXT (context)' failed
Caught SIGSEGV
...


However, if we create the elements manually without using decodebin, the
decoder works fine and plays the pipeline:

gst-launch-1.0 rtspsrc
location=<rtsp-source-that-takes-more-than-5s-to-send-UDP-packets> !
rtph264depay ! h264parse ! vaapidecode ! fakesink

Since the error shows something about the *vaapi context*, I thought this would
be related to the following issue:
https://bugzilla.gnome.org/show_bug.cgi?id=767437. However, after applying the
patch, I still get the same error :(

I have attached the backtrace when it segfaults.

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