Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516906 - kernel 3.4.93 with media-video/guvcview - video recording with guvcview causes segmentation fault in uvc_xu_ctrl_query
Summary: kernel 3.4.93 with media-video/guvcview - video recording with guvcview cause...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-11 19:19 UTC by Ilya Gordeev
Modified: 2015-03-10 11:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Gordeev 2014-07-11 19:19:51 UTC
When I open guvcview and press "Cap. Video (V)" then kernel general protection fault occurs.
related dmesg output:
[806252.778797] general protection fault: 0000 [#1] SMP 
[806252.778838] CPU 0 
[806252.778850] Modules linked in: nfnetlink_queue nfnetlink_log nfnetlink uvcvideo ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ip_tables x_tables pppoe pppox af_packet ppp_generic slhc ipv6 aufs(O) loop squashfs xz_dec zlib_inflate aes_x86_64 aes_generic cbc dm_crypt dm_mod i2c_dev configs fuse videobuf2_vmalloc videobuf2_memops videobuf2_core videodev usbmouse usbhid hid mousedev arc4 ath9k ath9k_common ath9k_hw ath mac80211 cfg80211 sr_mod cdrom i915 evdev i2c_algo_bit drm_kms_helper coretemp psmouse drm microcode atl1e atkbd cfbfillrect thermal battery cfbimgblt asus_laptop libps2 serio_raw ac snd_hda_codec_via rtc_cmos iTCO_wdt iTCO_vendor_support power_supply cfbcopyarea i2c_core intel_agp intel_gtt agpgart snd_hda_intel uhci_hcd input_polldev video sparse_keymap led_class snd_hda_codec snd_hwdep snd_pcm rfkill snd_page_alloc ehci_hcd usbcore usb_common snd_timer snd soundcore firmware_class backlight button processor thermal_sys hwmon unix [last unloaded: v4l2loopback]

[806252.779009] Pid: 23853, comm: guvcview Tainted: G           O 3.4.93-gentoo #1 ASUSTeK Computer Inc.         K50IJ               /K50IJ     
[806252.779009] RIP: 0010:[<ffffffffa03a999a>]  [<ffffffffa03a999a>] uvc_xu_ctrl_query+0x6a/0x300 [uvcvideo]
[806252.779009] RSP: 0018:ffff88001456dca8  EFLAGS: 00010206
[806252.779009] RAX: ffff880004bbfa38 RBX: 366b5937666a7556 RCX: ffff880004bbfa28
[806252.779009] RDX: ffff880004bbfa38 RSI: 0000000000000009 RDI: 000000007169474b
[806252.779009] RBP: ffff88001456ddb0 R08: 0000000000000000 R09: 0000000000000010
[806252.779009] R10: 00007fff8758ee00 R11: 0000000000000246 R12: ffff880004bbfa20
[806252.779009] R13: ffff88012c03a000 R14: ffff880004bbfa20 R15: ffff880004bb2800
[806252.779009] FS:  00007f452d8f7940(0000) GS:ffff88013fc00000(0000) knlGS:0000000000000000
[806252.779009] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[806252.779009] CR2: 0000000000428860 CR3: 0000000131541000 CR4: 00000000000407f0
[806252.779009] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[806252.779009] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[806252.779009] Process guvcview (pid: 23853, threadinfo ffff88001456c000, task ffff880004b71620)
[806252.779009] Stack:
[806252.779009]  ffff88013966a020 ffffffff81106889 00000006696dc4e5 00000000c0107521
[806252.779009]  ffff88001456ddb0 ffff88001c2464a0 ffff88012c03a000 ffff880004bbfa20
[806252.779009]  ffff880004bb2800 ffffffffa03a50eb 0000000000000028 ffffffff810ec900
[806252.779009] Call Trace:
[806252.779009]  [<ffffffff81106889>] ? __d_lookup+0x79/0x150
[806252.779009]  [<ffffffffa03a50eb>] ? uvc_v4l2_do_ioctl+0x1bb/0x1090 [uvcvideo]
[806252.779009]  [<ffffffff810ec900>] ? mem_cgroup_update_page_stat+0x10/0x50
[806252.779009]  [<ffffffff810ce724>] ? page_add_file_rmap+0x64/0xa0
[806252.779009]  [<ffffffffa037945f>] ? video_usercopy+0x2df/0x500 [videodev]
[806252.779009]  [<ffffffffa03a4f30>] ? uvc_v4l2_open+0x110/0x110 [uvcvideo]
[806252.779009]  [<ffffffff810c5003>] ? handle_pte_fault+0x93/0x800
[806252.779009]  [<ffffffff810e03e4>] ? kmem_cache_free+0x14/0xa0
[806252.779009]  [<ffffffff810c612d>] ? handle_mm_fault+0x3d/0x2d0
[806252.779009]  [<ffffffffa037832f>] ? v4l2_ioctl+0x9f/0x140 [videodev]
[806252.779009]  [<ffffffff8110110c>] ? do_vfs_ioctl+0x2fc/0x510
[806252.779009]  [<ffffffff81117a53>] ? sys_statfs+0x23/0x30
[806252.779009]  [<ffffffff811013a8>] ? sys_ioctl+0x88/0x90
[806252.779009]  [<ffffffff8139d0e2>] ? system_call_fastpath+0x16/0x1b
[806252.779009] Code: 00 00 0f b7 41 22 66 25 ff 7f 66 83 f8 06 75 e1 44 38 41 20 75 db 8b b9 38 01 00 00 85 ff 74 3d 48 8b 99 40 01 00 00 0f b6 75 01 <0f> b6 43 30 83 ee 01 39 f0 74 7a 48 8d 43 40 83 ef 01 48 c1 e7 
[806252.779009] RIP  [<ffffffffa03a999a>] uvc_xu_ctrl_query+0x6a/0x300 [uvcvideo]
[806252.779009]  RSP <ffff88001456dca8>
[806252.798883] ---[ end trace 642271cc78040724 ]---

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-12 11:17:56 UTC
1) Please post your `emerge --info' output in a comment.
Comment 2 Ilya Gordeev 2014-07-12 12:30:00 UTC
Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.4.93-gentoo x86_64)
=================================================================
System uname: Linux-3.4.93-gentoo-x86_64-Celeron-R-_Dual-Core_CPU_T3000_@_1.80GHz-with-gentoo-2.2
KiB Mem:     4014412 total,    175372 free
KiB Swap:    2097148 total,   2060868 free
Timestamp of tree: Wed, 09 Jul 2014 09:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo my_local_overlay seden nektoo perl-experimental mozilla
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mmmx -msse -msse2 -mssse3 -mcx16 -mfpmath=sse,387 -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mmmx -msse -msse2 -mssse3 -mcx16 -mfpmath=sse,387 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirror2.corbina.ru/gentoo-distfiles/ http://gentoo.bloodhost.ru/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/seden /var/lib/layman/nektoo /var/lib/layman/perl-experimental /var/lib/layman/mozilla"
SYNC="rsync://rsync.ru.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi adns alsa amd64 avahi bash-completion berkdb bluray branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups curl cxx dbus dga djvu dri dts dv dvd dvdr egl emboss encode exif fam fbcon ffmpeg fftw firefox flac fontconfig gcrypt gdbm gif gimp git gles2 gmp gnome-keyring gnutls gphoto2 gpm graphite graphviz gstreamer gtk gtk3 gzip hardened iconv icu idn ipv6 jabber jack jit jpeg jpeg2k lame lcms libcaca libnotify llvm lm_sensors lzma lzo mad madwifi matroska midi mmx mng modules mp3 mp4 mpeg mplayer multilib musepack nas ncurses netlink nls nptl nss ogg openal opencl opengl openmp openssl orc oscar pam pango pch pcre pdf pkcs11 png policykit portaudio postscript ppds raw readline samba scanner sdl session smp sndfile sockets socks5 sound speex spell sqlite sse sse2 ssl ssse3 startup-notification svg syslog taglib tcpd theora threads tiff timidity truetype twolame udev udisks unicode upnp upower usb v4l vhosts vorbis vpx wavpack webp wget wifi x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cache_disk cgi cgid charset_lite dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers imagemap include info log_config logio mem_cache mime mime_magic negotiation reqtimeout rewrite setenvif slotmem_shm socache_shmcb status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XFCE_PLUGINS="battery brightness clock" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Ilya Gordeev 2014-07-14 12:43:46 UTC
Tested with latest kernel in 3.4 branch with similar result:

[   69.274856] general protection fault: 0000 [#1] SMP 
[   69.274899] CPU 1 
[   69.274913] Modules linked in: ipv6 aufs(O) loop squashfs xz_dec zlib_inflate aes_x86_64 aes_generic cbc dm_crypt dm_mod i2c_dev configs fuse uvcvideo videobuf2_vmalloc usbmouse videobuf2_memops videobuf2_core usbhid hid videodev mousedev coretemp evdev arc4 psmouse microcode ath9k ath9k_common ath9k_hw ath mac80211 cfg80211 sr_mod atkbd atl1e libps2 serio_raw cdrom iTCO_wdt snd_hda_codec_via uhci_hcd iTCO_vendor_support asus_laptop input_polldev i915 snd_hda_intel sparse_keymap video i2c_algo_bit drm_kms_helper drm thermal processor thermal_sys rtc_cmos snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_timer snd cfbfillrect cfbimgblt cfbcopyarea intel_agp intel_gtt led_class i2c_core ehci_hcd usbcore soundcore rfkill usb_common firmware_class agpgart battery hwmon ac button power_supply backlight unix

[   69.275263] Pid: 1821, comm: guvcview Tainted: G           O 3.4.98-gentoo #1 ASUSTeK Computer Inc.         K50IJ               /K50IJ     
[   69.275263] RIP: 0010:[<ffffffffa03a2e79>]  [<ffffffffa03a2e79>] uvc_ctrl_init_xu_ctrl.part.10+0x59/0x2d0 [uvcvideo]
[   69.275263] RSP: 0018:ffff880136dd3c38  EFLAGS: 00010282
[   69.275263] RAX: 4802ec83410207c6 RBX: ffff880139e88c00 RCX: 0000000000000000
[   69.275263] RDX: 00000000000023e1 RSI: 00000000000000d0 RDI: ffff88013b002300
[   69.275263] RBP: ffff880135354970 R08: 0000000000000008 R09: ffff880135354970
[   69.275263] R10: 00007fff2490c6b0 R11: 0000000000000246 R12: ffff8801352aa0b0
[   69.275263] R13: ffff880135b90b18 R14: 00000000fffffffe R15: 0000000000000000
[   69.275263] FS:  00007fab76e6a940(0000) GS:ffff88013fd00000(0000) knlGS:0000000000000000
[   69.275263] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   69.275263] CR2: 0000000000428860 CR3: 0000000123e52000 CR4: 00000000000407e0
[   69.275263] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   69.275263] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[   69.275263] Process guvcview (pid: 1821, threadinfo ffff880136dd2000, task ffff880123c25fe0)
[   69.275263] Stack:
[   69.275263]  ffff880139eb9a20 ffffffff810f9f41 ffff880123c25fe0 ffff88012fd47006
[   69.275263]  ffff88012ebd3b20 ffffffff810fc575 ffff880100000001 00000000bd300e16
[   69.275263]  ffff8801352aa0b0 ffff880136dd3db0 ffff880135b90ae0 ffff880135b90b18
[   69.275263] Call Trace:
[   69.275263]  [<ffffffff810f9f41>] ? inode_permission+0x21/0xe0
[   69.275263]  [<ffffffff810fc575>] ? link_path_walk+0x65/0xe50
[   69.275263]  [<ffffffffa03a3b51>] ? uvc_xu_ctrl_query+0x251/0x300 [uvcvideo]
[   69.275263]  [<ffffffffa039f0cb>] ? uvc_v4l2_do_ioctl+0x1bb/0x1090 [uvcvideo]
[   69.275263]  [<ffffffff810ec460>] ? mem_cgroup_update_page_stat+0x10/0x50
[   69.275263]  [<ffffffff810ce2f4>] ? page_add_file_rmap+0x64/0xa0
[   69.275263]  [<ffffffffa035a41f>] ? video_usercopy+0x2df/0x500 [videodev]
[   69.275263]  [<ffffffffa039ef10>] ? uvc_v4l2_open+0x110/0x110 [uvcvideo]
[   69.275263]  [<ffffffff810c4c03>] ? handle_pte_fault+0x93/0x800
[   69.275263]  [<ffffffff810dffb4>] ? kmem_cache_free+0x14/0xa0
[   69.275263]  [<ffffffff810c5d2d>] ? handle_mm_fault+0x3d/0x2e0
[   69.275263]  [<ffffffffa035932f>] ? v4l2_ioctl+0x9f/0x140 [videodev]
[   69.275263]  [<ffffffff81100bec>] ? do_vfs_ioctl+0x2fc/0x510
[   69.275263]  [<ffffffff81100e88>] ? sys_ioctl+0x88/0x90
[   69.275263]  [<ffffffff8139c922>] ? system_call_fastpath+0x16/0x1b
[   69.275263] Code: 8e 01 00 00 be d0 00 00 00 e8 b4 ce d3 e0 48 85 c0 48 89 c5 0f 84 14 02 00 00 49 8b 04 24 49 89 e9 45 0f b6 44 24 30 0f b6 4b 1c <48> 8b b8 08 01 00 00 44 88 44 24 30 41 83 c0 01 48 8b b0 00 01 
[   69.275263] RIP  [<ffffffffa03a2e79>] uvc_ctrl_init_xu_ctrl.part.10+0x59/0x2d0 [uvcvideo]
[   69.275263]  RSP <ffff880136dd3c38>
[   69.297526] ---[ end trace 95468497f9e77bf8 ]---
Comment 4 Mike Pagano gentoo-dev 2014-10-13 17:20:12 UTC
Is this still an issue with later kernels?
Comment 5 Ilya Gordeev 2014-10-21 22:47:22 UTC
(In reply to Mike Pagano from comment #4)
> Is this still an issue with later kernels?

With latest 3.4.104 in 3.4 branch - yes. With latest kernel at all - probably not, but now I can't test it and I would not like to upgrade to latest kernel yet anyway.
Comment 6 Mike Pagano gentoo-dev 2014-12-23 16:54:38 UTC
Can you try with the latest version of guvcview?
Comment 7 Ilya Gordeev 2015-03-10 11:17:17 UTC
After update guvcview to version 2.0.1 problem disappears.