Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210641 - media-video/qc-usb-0.6.6 kernel oops with gentoo-sources-2.6.23-r6
Summary: media-video/qc-usb-0.6.6 kernel oops with gentoo-sources-2.6.23-r6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gilles Dartiguelongue (RETIRED)
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 286818
Blocks:
  Show dependency tree
 
Reported: 2008-02-18 23:06 UTC by Gabriel Devenyi
Modified: 2009-11-15 13:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
section of dmesg (qc-crash,3.06 KB, text/plain)
2008-02-18 23:07 UTC, Gabriel Devenyi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Devenyi 2008-02-18 23:06:26 UTC
When I attempt to access /dev/video0, the kernel oopses, and the calling software hard locks. Section of dmesg attached
Comment 1 Gabriel Devenyi 2008-02-18 23:07:08 UTC
Created attachment 143922 [details]
section of dmesg
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-02-18 23:35:14 UTC
additional details about your installation are needed. Please always paste emerge --info.

I also have this hardware on a SMP machine but it doesn't oops on opening the device. Ultimately, I think that if you can't get it working properly after updating to 2.6.23-gentoo-r8 which has important security fixes, you should probably ask upstream directly.
Comment 3 Gabriel Devenyi 2008-02-19 01:44:57 UTC
Well, emerge --info isn't very accurate as I use paludis, here's some useful info from paludis instead

    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.2.3 (Gentoo 4.2.3 p1.0)
        CXXFLAGS:              -O2 -march=k8 -pipe -fomit-frame-pointer -msse3
        LDFLAGS:
        DATE:                  2008-02-18T10:25:31-0500

    Libraries:
        C++ Library:           GNU libstdc++ 20080201

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p17-r1
        dev-java/java-config:  (none)
        dev-lang/python:       2.4.4-r4 2.5.1-r5
        dev-python/pycrypto:   2.0.1-r6
        dev-util/ccache:       2.4-r7
        dev-util/confcache:    (none)
        sys-apps/baselayout:   2.0.0
        sys-apps/sandbox:      1.2.18.1-r2
        sys-devel/autoconf:    2.13 2.61-r1
        sys-devel/automake:    1.10.1 1.4_p6 1.5 1.7.9-r1 1.8.5-r3 1.9.6-r2
        sys-devel/binutils:    2.18-r1
        sys-devel/gcc-config:  1.4.0-r4
        sys-devel/libtool:     1.5.26
        virtual/os-headers:    2.6.24 (for sys-kernel/linux-headers::installed)


As for the gentoo-sources, thanks for pointing it out, 2.6.24 got installed, but its broken my broadcom wireless, so I had to stick with 2.6.23, but didn't get any additional updates.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-02-19 14:38:43 UTC
2.6.23-gentoo-r8 has the security fix.
Anyway, did you try lowering CFLAGS ? If you can reproduce with something like CFLAGS="-O2 -march=k8 -pipe" it think it might interest upstream.

I'll try on my amd64 box whenever I get to it to check if it's 64 bit related or not.
Comment 5 Gabriel Devenyi 2008-02-20 02:35:07 UTC
Well, did the upgrade, as well as changing CFLAGS, it no longer OOPS, however it does still fail, with a different error:

Linux video capture interface: v2.00
quickcam: QuickCam USB camera found (driver version QuickCam USB 0.6.6 $Date: 2006/11/04 08:38:14 $)
quickcam: Kernel:2.6.23-gentoo-r8 bus:1 class:FF subclass:FF vendor:046D product:0840
quickcam: Sensor PB-0100/0101 detected
quickcam: Registered device: /dev/video0
usbcore: registered new interface driver quickcam
ohci_hcd 0000:00:02.0: leak ed ffff81007fbf6190 (#81) state 2
quickcam: Control URB error -2
quickcam: Control URB error -2
Comment 6 Gabriel Devenyi 2008-02-20 02:56:03 UTC
Scratch that, using qc-usb's testquickcam program brings my system to its knees pretty badly, seems like it might be some interaction with the driver and the USB stack.
Comment 7 Gabriel Devenyi 2008-03-04 03:10:22 UTC
Still seeing the same failures with 2.6.24-gentoo-r3
Comment 8 Gabriel Devenyi 2008-03-04 04:39:34 UTC
OOPS with 2.6.24

Mar  3 23:29:56 sine ohci_hcd 0000:00:02.0: leak ed ffff81007f961190 (#81) state 2
Mar  3 23:30:01 sine cron[5038]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Mar  3 23:33:34 sine ntpd[4015]: adjusting local clock by -0.770402s
Mar  3 23:33:57 sine quickcam: Control URB error -2
Mar  3 23:33:57 sine quickcam: Control URB error -2
Mar  3 23:33:57 sine general protection fault: 0000 [1] SMP
Mar  3 23:33:57 sine CPU 1
Mar  3 23:33:57 sine Modules linked in: quickcam videodev v4l2_common v4l1_compat w83627hf hwmon_vid nfs nfsd lockd sunrpc exportfs af_packet snd_pcm_oss snd_mixer_oss nls_cp437 vfat fat nls_iso8859_1 ntfs nls_base vboxdrv lp snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm thermal processor r8169 bitrev crc32 sr_mod cdrom snd_timer nvidia(P) snd floppy ehci_hcd parport_pc k8temp hwmon bcm43xx firmware_class rng_core ieee80211softmac ieee80211 ieee80211_crypt soundcore snd_page_alloc evdev parport forcedeth button i2c_nforce2 i2c_core unix
Mar  3 23:33:57 sine Pid: 5026, comm: gqcam Tainted: P        2.6.24-gentoo-r3 #2
Mar  3 23:33:57 sine RIP: 0010:[<ffffffff80395ff0>]  [<ffffffff80395ff0>] usb_hcd_unlink_urb+0x10/0x30
Mar  3 23:33:57 sine RSP: 0018:ffff81007a341c18  EFLAGS: 00010296
Mar  3 23:33:57 sine RAX: 69727453512c676e RBX: ffff81007abd6200 RCX: ffff81007abd6200
Mar  3 23:33:57 sine RDX: 00000000fffffffe RSI: ffff81007abd6200 RDI: ffff81007abd6200
Mar  3 23:33:57 sine RBP: ffffffff88c29340 R08: 0000000000000000 R09: ffffffff805016b0
Mar  3 23:33:57 sine R10: 0000000000000002 R11: ffffffff803a54f0 R12: ffff81007bbe4680
Mar  3 23:33:57 sine R13: ffff81007bbe4680 R14: ffff81007f958f00 R15: ffff8100793cebb8
Mar  3 23:33:57 sine FS:  00002b210ae3f1b0(0000) GS:ffff81007f80d400(0000) knlGS:00000000f740d6d0
Mar  3 23:33:57 sine CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Mar  3 23:33:57 sine CR2: 00000000024a06a2 CR3: 0000000079da2000 CR4: 00000000000006e0
Mar  3 23:33:57 sine DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Mar  3 23:33:57 sine DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Mar  3 23:33:57 sine Process gqcam (pid: 5026, threadinfo ffff81007a340000, task ffff81007bbf6000)
Mar  3 23:33:57 sine Stack:  ffff81007abd6200 ffffffff80396205 0000000000000000 ffff810000000000
Mar  3 23:33:57 sine ffffffff00001388 ffff81007a341c40 ffff810079af8000 ffffffff88c29340
Mar  3 23:33:57 sine ffff81007bbe4680 ffff810079af8000 ffffffff88c29340 ffffffff88c190c5
Mar  3 23:33:57 sine Call Trace:
Mar  3 23:33:57 sine [<ffffffff80396205>] usb_kill_urb+0x55/0xf0
Mar  3 23:33:57 sine [<ffffffff88c190c5>] :quickcam:qc_isoc_stop+0x45/0x110
Mar  3 23:33:57 sine [<ffffffff88c1b46c>] :quickcam:qc_v4l_close+0x7c/0xc0
Mar  3 23:33:57 sine [<ffffffff802948f1>] __fput+0xc1/0x1d0
Mar  3 23:33:57 sine [<ffffffff80291854>] filp_close+0x54/0x90
Mar  3 23:33:57 sine [<ffffffff8023bfe0>] put_files_struct+0xb0/0xc0
Mar  3 23:33:57 sine [<ffffffff8023d436>] do_exit+0x196/0x8b0
Mar  3 23:33:57 sine [<ffffffff8024548d>] __dequeue_signal+0x2d/0x1e0
Mar  3 23:33:57 sine [<ffffffff8023db7c>] do_group_exit+0x2c/0x80
Mar  3 23:33:57 sine [<ffffffff802473d7>] get_signal_to_deliver+0x2f7/0x4b0
Mar  3 23:33:57 sine [<ffffffff8020b064>] do_notify_resume+0xc4/0x810
Mar  3 23:33:57 sine [<ffffffff8030c041>] __up_read+0x21/0xb0
Mar  3 23:33:57 sine [<ffffffff80226a0a>] do_page_fault+0x19a/0x790
Mar  3 23:33:57 sine [<ffffffff80293c5b>] do_readv_writev+0x16b/0x220
Mar  3 23:33:57 sine [<ffffffff8025c039>] sys_futex+0x79/0x130
Mar  3 23:33:57 sine [<ffffffff80293edd>] vfs_write+0x12d/0x170
Mar  3 23:33:57 sine [<ffffffff8020bd77>] sysret_signal+0x1c/0x27
Mar  3 23:33:57 sine [<ffffffff8020c007>] ptregscall_common+0x67/0xb0
Mar  3 23:33:57 sine
Mar  3 23:33:57 sine
Mar  3 23:33:57 sine Code: 48 8b 78 40 e8 f7 ea ff ff ba 8d ff ff ff 85 c0 0f 44 c2 48
Mar  3 23:33:57 sine RIP  [<ffffffff80395ff0>] usb_hcd_unlink_urb+0x10/0x30
Mar  3 23:33:57 sine RSP <ffff81007a341c18>
Mar  3 23:33:57 sine ---[ end trace 31130751c4976e80 ]---
Mar  3 23:33:57 sine Fixing recursive fault but reboot is needed!
Mar  3 23:34:20 sine general protection fault: 0000 [2] SMP
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-03-10 00:00:51 UTC
sorry bug can't reproduce the error. Here is my emerge --info in case you can see something that I didn't spotted yet.

Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.2.3, glibc-2.7-r1, 2.6.24-gentoo-r3-mactel x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3-mactel x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
Timestamp of tree: Sun, 09 Mar 2008 12:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms sign splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fr ja zh zh_CN"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/voip /usr/portage/local/layman/sunrise /home/eva/devel/overlays/gentoo-misc /home/eva/devel/overlays/gnome"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 applet avahi avi bash-completion bluetooth bzip2 cairo cdr cjk cli cracklib crypt cups dbus dri dvd dvdr dvdread eds epiphany evo ffmpeg flac fortran galago gedit glitz gnome gnutls gpm gstreamer hal iconv ipv6 isdnlog jpeg keyring laptop ldap libnotify mad matroska midi mmx mp3 mpeg mudflap nautilus ncurses networkmanager nfs nls nntp nptl nptlonly nsplugin ntpl ogg openct opengl openmp pam pcre pdf perl png pppd python readline reflection session spell spl sse sse2 ssl svg tcpd theora threads tracker unicode v4l v4l2 vim-syntax vorbis x264 xattr xcb xinerama xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LINGUAS="en fr ja zh zh_CN" USERLAND="GNU" VIDEO_CARDS="i810 vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

and the dmesg output:
quickcam: QuickCam USB camera found (driver version QuickCam USB 0.6.6 $Date: 2006/11/04 08:38:14 $)
quickcam: Kernel:2.6.24-gentoo-r3-mactel bus:5 class:FF subclass:FF vendor:046D product:0840
quickcam: Sensor HDCS-1000/1100 detected
quickcam: Registered device: /dev/video0
usbcore: registered new interface driver quickcam


looks like we don't have the same chip so you might want to talk to upstream specifically about your bug.
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-04-05 18:14:06 UTC
any news ?
Comment 11 Gabriel Devenyi 2008-04-05 21:26:49 UTC
still hard locks, doesn't on my x86 based machines
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-04-05 23:34:11 UTC
reported upstream ?
Comment 13 Gabriel Devenyi 2008-04-05 23:56:29 UTC
Reported, but I'm pretty sure upstream is long gone.
Comment 14 Gabriel Devenyi 2008-04-05 23:58:15 UTC
Oh now, here's some details, likely the same problem (and not what I suspected) I'll try moving the plug around.

http://sourceforge.net/mailarchive/forum.php?thread_name=47D5E145.7080606%40cs.wisc.edu&forum_name=qce-ga-discussion
Comment 15 Gabriel Devenyi 2008-04-06 00:18:12 UTC
Good news! The camera works if I move it to its own usb bus away from any other devices. Now that we know whats wrong, maybe I'll try and fix it. In the meantime, perhaps the ebuild should spit out some warning regarding this.
Comment 16 Tomáš Chvátal (RETIRED) gentoo-dev 2009-11-15 13:02:22 UTC
removed