Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing [SEC=UNCLASSIFIED]

From: Wilkinson, Alex <alex.wilkinson_at_dsto.defence.gov.au>
Date: Fri, 22 Jan 2010 12:57:50 +0800
    0n Wed, Jan 20, 2010 at 02:46:20PM +0800, Wilkinson, Alex wrote: 

    >    0n Sun, Jan 10, 2010 at 02:37:37PM +0100, Hans Petter Selasky wrote: 
    >
    >    >During the last couple of days I've spent some time to finish my webcam 
    >    >daemon. My webcam daemon is basically an application which consists of 
    >    >userspace Video4Linux USB webcam drivers and some uLinux glue code which links 
    >    >with libc, pthreads and libusb. The webcamd talks to /dev/video_daemonX which 
    >    >is provided by the video4bsd kernel module. There is full support for 
    >    >mmap/read/write/open/close. poll is not supported.

/usr/ports/multimedia/pwcview (PORTVERSION=1.4.1) crashes within 2-3mins of use with the following:

   #sudo pwcview
   Webcam set to: 320x240 (sif) at 5 fps
   libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
   libv4l2: error dequeuing buf: Device not configured
   Error reading from webcam: Device not configured

I rebuilt /usr/ports/multimedia/pwcview with symbolls and got the following:

   #sudo gdb pwcview 75557
   GNU gdb 6.1.1 [FreeBSD]
   Copyright 2004 Free Software Foundation, Inc.
   GDB is free software, covered by the GNU General Public License, and you are
   welcome to change it and/or distribute copies of it under certain conditions.
   Type "show copying" to see the conditions.
   There is absolutely no warranty for GDB.  Type "show warranty" for details.
   This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
   Attaching to program: /usr/local/bin/pwcview, process 75557
   Reading symbols from /usr/local/lib/libSDL-1.2.so.11...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libSDL-1.2.so.11
   Reading symbols from /usr/local/lib/libjpeg.so.10...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libjpeg.so.10
   Reading symbols from /usr/local/lib/libv4l1.so.0...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libv4l1.so.0
   Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
   [New Thread 28601140 (LWP 100451)]
   Loaded symbols for /lib/libthr.so.3
   Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
   Loaded symbols for /lib/libc.so.7
   Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libiconv.so.3
   Reading symbols from /usr/lib/libvgl.so.6...(no debugging symbols found)...done.
   Loaded symbols for /usr/lib/libvgl.so.6
   Reading symbols from /usr/local/lib/libaa.so.1...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libaa.so.1
   Reading symbols from /usr/local/lib/libncurses.so.5.7...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libncurses.so.5.7
   Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
   Loaded symbols for /lib/libm.so.5
   Reading symbols from /usr/local/lib/libX11.so.6...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libX11.so.6
   Reading symbols from /usr/local/lib/libxcb.so.2...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libxcb.so.2
   Reading symbols from /usr/local/lib/libXau.so.6...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libXau.so.6
   Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libXdmcp.so.6
   Reading symbols from /usr/local/lib/libpthread-stubs.so.0...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libpthread-stubs.so.0
   Reading symbols from /usr/lib/librpcsvc.so.5...(no debugging symbols found)...done.
   Loaded symbols for /usr/lib/librpcsvc.so.5
   Reading symbols from /usr/lib/libusbhid.so.4...(no debugging symbols found)...done.
   Loaded symbols for /usr/lib/libusbhid.so.4
   Reading symbols from /usr/local/lib/libv4l2.so.0...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libv4l2.so.0
   Reading symbols from /usr/local/lib/libtinfo.so.5.7...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libtinfo.so.5.7
   Reading symbols from /usr/local/lib/libv4lconvert.so.0...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libv4lconvert.so.0
   Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done.
   Loaded symbols for /usr/lib/librt.so.1
   Reading symbols from /usr/local/lib/libXext.so.6...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libXext.so.6
   Reading symbols from /usr/local/lib/libXrender.so.1...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libXrender.so.1
   Reading symbols from /usr/local/lib/libXrandr.so.2...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libXrandr.so.2
   Reading symbols from /usr/local/lib/libXcursor.so.1...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libXcursor.so.1
   Reading symbols from /usr/local/lib/libXfixes.so.3...(no debugging symbols found)...done.
   Loaded symbols for /usr/local/lib/libXfixes.so.3
   Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
   Loaded symbols for /libexec/ld-elf.so.1
   [Switching to Thread 28601140 (LWP 100451)]
   0x281958bf in syscall () from /lib/libc.so.7
   (gdb) b exit
   Breakpoint 1 at 0x281bd974
   (gdb) cont
   Continuing.
   Breakpoint 1, 0x281bd974 in exit () from /lib/libc.so.7
   (gdb) bt
   #0  0x281bd974 in exit () from /lib/libc.so.7
   #1  0x080494cf in ?? ()
   #2  0x00000000 in ?? ()
   #3  0xbfbfec64 in ?? ()
   #4  0xbfbfec6c in ?? ()
   #5  0xbfbfec50 in ?? ()
   #6  0xbfbfec60 in ?? ()
   #7  0x00000000 in ?? ()
   #8  0xbfbfec5c in ?? ()
   #9  0x08049435 in ?? ()
   #10 0x28054f60 in dlclose () from /libexec/ld-elf.so.1
   Previous frame inner to this frame (corrupt stack?)
   (gdb) 
   (gdb) cont
   Continuing.
   Program exited normally.
   (gdb) 

IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914.  If you have received this email in error, you are requested to contact the sender and delete the email.
Received on Fri Jan 22 2010 - 04:04:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC