[Bug 684430] New: v4l2src crashes when getting latecny query before having configured the bufferpool

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Sep 20 00:56:40 PDT 2012


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

           Summary: v4l2src crashes when getting latecny query before
                    having configured the bufferpool
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: sjoerd at luon.net
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


(gdb)  p *obj
$12 = {element = 0x7c4020, type = V4L2_BUF_TYPE_VIDEO_CAPTURE, videodev =
0x7c2210 "/dev/video0", video_fd = 33, mode = GST_V4L2_IO_MMAP, poll =
0x179dc00, can_poll_device = 1, 
  active = 0, streaming = 0, fmtdesc = 0x193ac50, info = {finfo =
0x7ffff7505ae8, interlace_mode = GST_VIDEO_INTERLACE_MODE_PROGRESSIVE, flags =
GST_VIDEO_FLAG_NONE, width = 320, 
    height = 240, size = 115200, views = 1, chroma_site =
GST_VIDEO_CHROMA_SITE_UNKNOWN, colorimetry = {range =
GST_VIDEO_COLOR_RANGE_16_235, matrix = GST_VIDEO_COLOR_MATRIX_BT601, 
      transfer = GST_VIDEO_TRANSFER_BT709, primaries =
GST_VIDEO_COLOR_PRIMARIES_BT470M}, par_n = 1, par_d = 1, fps_n = 15, fps_d = 1,
offset = {0, 76800, 96000, 0}, stride = {320, 
      160, 160, 32767}, _gst_reserved = {0x7ffff707d1a5, 0x7ffff6d90c40,
0x7ffff7079520, 0x500000000}}, bytesperline = 320, sizeimage = 115200, duration
= 66666666, 
  req_mode = GST_V4L2_IO_AUTO, pool = 0x0, vcap = {driver =
"uvcvideo\000\000\000\000\000\000\000", card = "Integrated Camera", '\000'
<repeats 14 times>, 
    bus_info = "usb-0000:00:1a.0-1.6", '\000' <repeats 11 times>, version =
197890, capabilities = 83886081, reserved = {0, 0, 0, 0}}, vwin = {w = {left =
0, top = 0, width = 0, 
      height = 0}, field = V4L2_FIELD_ANY, chromakey = 0, clips = 0x0,
clipcount = 0, bitmap = 0x0, global_alpha = 0 '\000'}, vinput = {index = 0,
name = '\000' <repeats 31 times>, 
    type = 0, audioset = 0, tuner = 0, std = 0, status = 0, capabilities = 0,
reserved = {0, 0, 0}}, formats = 0x183b590, colors = 0x182a040, norms = 0x0,
channels = 0x18197a0, 
  tv_norm = 0, channel = 0x193f7d0 "Camera 1", frequency = 0, xv = 0x0,
xwindow_id = 0, get_in_out_func = 0x7fffda0e9c30 <gst_v4l2_get_input>, 
  set_in_out_func = 0x7fffda0e9e60 <gst_v4l2_set_input>, update_fps_func = 0}


(gdb) p obj->pool
$2 = (GstBufferPool *) 0x0

(gdb) bt full
#0  gst_v4l2src_query (bsrc=<optimized out>, query=0x1922a30) at
gstv4l2src.c:650
        min_latency = 66666666
        max_latency = <optimized out>
        fps_n = <optimized out>
        fps_d = <optimized out>
        num_buffers = <optimized out>
        src = <optimized out>
        obj = 0x7c23e0
        res = 0
        __FUNCTION__ = "gst_v4l2src_query"
#1  0x00007ffff6de6616 in gst_pad_query (pad=pad at entry=0x1794c00,
query=query at entry=0x1922a30) at gstpad.c:3403
        parent = 0x7c4020
        res = <optimized out>
        serialized = 0
        func = <optimized out>
        type = GST_PAD_PROBE_TYPE_QUERY_UPSTREAM
        ret = <optimized out>
        __PRETTY_FUNCTION__ = "gst_pad_query"
#2  0x00007ffff6de6c2d in gst_pad_peer_query (pad=pad at entry=0x1794e30,
query=query at entry=0x1922a30) at gstpad.c:3534
        peerpad = 0x1794c00
        type = GST_PAD_PROBE_TYPE_QUERY_UPSTREAM
        res = <optimized out>
        serialized = <optimized out>
        ret = <optimized out>
        __PRETTY_FUNCTION__ = "gst_pad_peer_query"
#3  0x00007ffff70a62f5 in gst_base_transform_default_query (trans=0x7c6800,
direction=GST_PAD_SRC, query=0x1922a30) at gstbasetransform.c:1488
        ret = 0
        pad = 0x1795060
        otherpad = 0x1794e30
        klass = 0x7c3670
        priv = <optimized out>
        __PRETTY_FUNCTION__ = "gst_base_transform_default_query"
#4  0x00007fffd980bdb9 in gst_video_rate_query (trans=0x7c6800,
direction=<optimized out>, query=0x1922a30) at gstvideorate.c:860
        videorate = 0x7c6800
        res = 0
        otherpad = <optimized out>
        __PRETTY_FUNCTION__ = "gst_video_rate_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