[gstreamer-bugs] [Bug 628640] New: v4l2src crashes if device is busy
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Sep 2 13:26:29 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=628640
GStreamer | gst-plugins-good | 0.10.21
Summary: v4l2src crashes if device is busy
Classification: Desktop
Product: GStreamer
Version: 0.10.21
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: Normal
Component: gst-plugins-good
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: 4ernov at gmail.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
Created an attachment (id=169392)
--> (https://bugzilla.gnome.org/attachment.cgi?id=169392)
Test program
v4l2src crashes if capture device (i.e. /dev/video0 or so) is busy. It prints
all the necessary errors ok but continue pending PLAYING state instead of going
to NULL. 100% reproducible.
To reproduce:
1. Start the 1st instance of attached sample program (it uses /dev/video0). See
the process is ok.
2. Start the second instance of it. Mention how it fails with segmentation
fault.
I've switched on debug level to INFO in the sample program, it shows that the
process overall goes normally but skips fatal errors and crashes.
Backtrace:
#0 0x00000000 in ?? ()
#1 0x0065ae1e in gst_v4l2src_create (src=0x8180000, buf=0xb7e5221c) at
gstv4l2src.c:914
#2 0x0069c765 in gst_push_src_create (bsrc=0x8180000,
offset=18446744073709551615, length=4096, ret=0xb7e5221c) at gstpushsrc.c:117
#3 0x00689881 in gst_base_src_get_range (src=<value optimized out>,
offset=18446744073709551615, length=4096, buf=0xb7e5221c) at gstbasesrc.c:2081
#4 0x0068c327 in gst_base_src_loop (pad=0x8181008) at gstbasesrc.c:2334
#5 0x001abd6b in gst_task_func (task=0x818c060) at gsttask.c:238
#6 0x001ad377 in default_func (tdata=0x805cad8, pool=0x8059010) at
gsttaskpool.c:70
#7 0x003d3d0c in ?? () from /lib/libglib-2.0.so.0
#8 0x003d1def in ?? () from /lib/libglib-2.0.so.0
#9 0x0043b96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0x0051ca4e in clone () from /lib/tls/i686/cmov/libc.so.6
Source code of test program and output log of the 2nd instance is attached.
--
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