[Pkg-spca5xx-devel] Bug#407379: gspca: Disconnecting a camera while using it leads khubd to eat cpu

Alex V Breger osgxdvyg at gmail.com
Thu Jan 18 01:05:10 CET 2007


Package: gspca
Version: gspcav1-20070110
Severity: normal

I have a Gembird CAM44U (usb id: 0ac8:305b), here is the dmesg from driver:
/home/abc/Desktop/gspcav1-20070110/gspca_core.c: USB SPCA5XX camera found.(ZC3XX)
/home/abc/Desktop/gspcav1-20070110/gspca_core.c: [spca5xx_probe:3983] Camera type JPEG
/home/abc/Desktop/gspcav1-20070110/Vimicro/zc3xx.h: [zc3xx_config:515] Sensor ID:22
/home/abc/Desktop/gspcav1-20070110/Vimicro/zc3xx.h: [zc3xx_config:522] Find Sensor Tas5130 (VF0250)
/home/abc/Desktop/gspcav1-20070110/gspca_core.c: [spca5xx_getcapability:1189] maxw 640 maxh 480 minw 176 minh 144

When I disconnect the camera with some player opened, computer frezzes for several seconds,
then khubd begin to eat all available cpu.
With player closed disconnecting don't lead to this effect.
Player stops on pool system call, dmesg says
/home/abc/Desktop/gspcav1-20070110/gspca_core.c: [spca50x_isoc_irq:1084] Non-zero status (-84) in isoc completion handler.
/home/abc/Desktop/gspcav1-20070110/gspca_core.c: [spca50x_isoc_irq:1084] Non-zero status (-84) in isoc completion handler.
usb 2-1: USB disconnect, address 7

Strace of player after disconnect, this lines repeated many times.

gettimeofday({1169078510, 516792}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
ioctl(3, FIONREAD, [32])                = 0
read(3, "\26\0\320\1L\0\0\0\3\0\300\0)\0\300\0\0\0\345\3\0\5\33"..., 32) = 32
ioctl(3, FIONREAD, [0])                 = 0
ioctl(3, FIONREAD, [0])                 = 0

After killing player khubd become normal.


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-xen-686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)




More information about the Pkg-spca5xx-devel mailing list