Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218612 - app-misc/lirc-0.8.3_pre1 Oops with gentoo-sources-2.6.25-r1
Summary: app-misc/lirc-0.8.3_pre1 Oops with gentoo-sources-2.6.25-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-20 16:35 UTC by Kevin Parent
Modified: 2009-02-27 07:34 UTC (History)
3 users (show)

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


Attachments
Patch for lirc-i2c to fix oops with kernel 2.6.25 (lirc-i2c-2.6.25.patch,681 bytes, patch)
2008-05-04 15:09 UTC, enkil
Details | Diff
Patch for lirc-i2c to fix oops with kernel 2.6.25 (proper) (lirc-0.8.3_pre3-i2c-kernel-2.6.25.patch,519 bytes, patch)
2008-05-04 17:28 UTC, enkil
Details | Diff
Updated ebuild (lirc-0.8.3_pre3-r1.ebuild,8.22 KB, text/plain)
2008-05-04 17:29 UTC, enkil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Parent 2008-04-20 16:35:19 UTC
Emerged lirc-0.8.3_pre1 successfully.  Upon boot, lirc oopses

Reproducible: Always

Steps to Reproduce:
1. Install gentoo-sources-2.5.25-r1
2. Install lirc-0/8/3_pre1
3. Reboot
4. Check dmesg for lirc related entries

Actual Results:  
lirc_i2c: chip 0x10020 found @ 0x18 (Hauppauge IR)
lirc_dev: lirc_register_plugin: sample_rate: 10
BUG: unable to handle kernel paging request at 5249206d
IP: [<c0165b13>] do_sys_open+0x63/0xe0
*pde = 00000000 
Oops: 0000 [#1] 
Modules linked in: snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq bttv ir_common compat_ioctl32 videobuf_dma_sg videobuf_core btcx_risc lirc_i2c lirc_dev msp3400 snd_via82xx saa7115 snd_ac97_codec tuner tea5767 tda8290 ac97_bus tuner_xc2028 tda9887 tuner_simple mt20xx tea5761 snd_pcm snd_timer snd_page_alloc snd_mpu401_uart nvidia(P) ivtv i2c_viapro firmware_class i2c_algo_bit cx2341x v4l2_common videodev v4l1_compat tveeprom snd_rawmidi snd_seq_device snd i2c_core rt2500pci rt2x00pci rt2x00lib eeprom_93cx6

Pid: 4563, comm: lircd Tainted: P         (2.6.25-gentoo-r1 #1)
EIP: 0060:[<c0165b13>] EFLAGS: 00010287 CPU: 0
EIP is at do_sys_open+0x63/0xe0
EAX: 52492065 EBX: 40000020 ECX: 00000257 EDX: df58a060
ESI: ffffff9c EDI: 00000007 EBP: d2252000 ESP: d8c5df84
 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
Process lircd (pid: 4563, ti=d8c5c000 task=df790000 task.ti=d8c5c000)
Stack: bfeb9b18 00000000 df58a060 bfeb9b18 00000002 bfeba970 d8c5c000 c0165c0c 
       bfeb9b18 bfeba970 00000000 00000000 c0102c5a bfeba970 00000002 bfeb9b18 
       00000000 00000000 bfeb9b78 00000005 0000007b 0000007b 00000000 00000005 
Call Trace:
 [<c0165c0c>] sys_open+0x2c/0x40
 [<c0102c5a>] sysenter_past_esp+0x5f/0x85
 =======================
Code: 78 78 8b 44 24 20 89 d9 89 ea 89 04 24 89 f0 e8 54 ff ff ff 3d 00 f0 ff ff 89 44 24 08 77 78 8b 54 24 08 bb 20 00 00 40 8b 42 0c <8b> 70 08 0f b7 56 6a 81 e2 00 f0 00 00 81 fa 00 40 00 00 ba 20 
EIP: [<c0165b13>] do_sys_open+0x63/0xe0 SS:ESP 0068:d8c5df84
---[ end trace 26d81eb3465a1830 ]---


Expected Results:  
To load and operated properly

emerge --info

Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 i686)
=================================================================
System uname: 2.6.23-gentoo-r9 i686 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Sun, 20 Apr 2008 10:45:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
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.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://prometheus.cs.wmich.edu/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirror.espri.arizona.edu/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="C"
LINGUAS="en en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/local/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/local/portage"
SYNC="rsync://tesla/gentoo-portage"
USE="3dnow 3dnowext X a52 aac alsa apache2 apm audiofile berkdb bonobo bzip2 cairo cdparanoia cdr cli cracklib crypt cups curl dbus dga dri dts dvd dvdr dvdread eds emboss encode esd ethereal evo fam fame ffmpeg firefox flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv idn imagemagick imap imlib irda irmc isdnlog ithreads java jpeg jpeg2k lcms ldap lirc logrotate lzo mad maildir midi mikmod mjpeg mmx mmxext mng motif mozilla mp3 mpeg mudflap mysql mythtv ncurses network nls nptl nptlonly nsplugin nvidia oav offensive ogg opengl openmp oss pam pcre pdf perl png posix ppds pppd pthreads python qt3 qt3support qt4 quicktime readline reflection rhythmbox samba sdl session slang sndfile spell spl sse sse2 ssl svg svga tcpd tiff transcode truetype v4l v4l2 vcd vorbis wifi win32codecs x86 xine xml xorg xv xvid xvmc yv12 zlib" ALSA_CARDS="via82xx" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 enkil 2008-04-20 19:53:07 UTC
Same problem here with gentoo-sources-2.6.25-r1. The latest cvs snapshot on the lirc homepage (lirc-0.8.3_pre2) produces the same oops.

I'm using lirc_i2c on a hauppauge card as well. The oops doesn't occur after loading the lirc modules, but rather when the first lirc client tries to connect to the lirc socket, e.g. mplayer or irw.

emerge --info
Portage 2.1.5_rc5 (default/linux/x86/2008.0, gcc-4.2.3, glibc-2.7-r2, 2.6.25-gentoo-r1 i686)
=================================================================
System uname: 2.6.25-gentoo-r1 i686 Intel(R) Core(TM)2 Duo CPU E8200 @ 2.66GHz
Timestamp of tree: Sun, 20 Apr 2008 14:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.4.4-r6, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.1-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
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="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.osuosl.org/"
LC_ALL="en_US.iso885915"
LDFLAGS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
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/font-overlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi akode alsa bash-completion berkdb bzip2 cairo cdr cli cracklib crypt cups dba dbus dga dri dts dvd dvdr dvdread ffmpeg firefox foomaticdb fortran ftp gd gdbm gif gpm gtk gtk2 hal iconv icq ipv6 isdnlog java jpeg kde kdehiddenvisibility lirc midi mjpeg mmx mp3 mp4 mpeg mplayer mudflap musepack musicbrainz ncurses nfs nls no-old-linux nptl nptlonly nsplugin nvidia oggvorbis opengl openmp oss pam pcre pdf pdflib perl png ppds pppd python qt qt3 qt4 readline reflection session smp spl sse sse2 ssl svg svga tcpd threads tiff truetype unicode usb v4l v4l2 win32codecs wmf x264 x86 xine xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nvidia vesa v4l"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 devsk 2008-04-24 05:50:15 UTC
Add me to the list of 2.6.25-r1 users who get the same Oops. I am using PVR USB2 from Hauppauge.
Comment 3 enkil 2008-05-04 15:09:48 UTC
Created attachment 151819 [details, diff]
Patch for lirc-i2c to fix oops with kernel 2.6.25

This patch has been submitted to the lirc mailing list. Will test it as soon as I'm back at my main pc.
Comment 4 Sander Sweers 2008-05-04 16:20:18 UTC
I can confirm this patch fixes the oops for me on AMD64 with a haupauge pvr-150. Thanks.
Comment 5 enkil 2008-05-04 17:28:57 UTC
Created attachment 151831 [details, diff]
Patch for lirc-i2c to fix oops with kernel 2.6.25 (proper)

Sorry, kinda messed the first one up...
Comment 6 enkil 2008-05-04 17:29:52 UTC
Created attachment 151833 [details]
Updated ebuild

Updated ebuild to include the patch for kernels >=2.6.25
Comment 7 Sander Sweers 2008-05-04 18:09:01 UTC
(In reply to comment #6)
> Updated ebuild to include the patch for kernels >=2.6.25

You do not have to check the kernel version in the ebuild. The patch already takes care of checking on compile time.

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
Comment 8 Matthias Schwarzott gentoo-dev 2008-05-05 09:55:12 UTC
Due to lirc mailing list this should be fixed with lirc-0.8.3
Comment 9 Kevin Parent 2008-05-12 16:06:45 UTC
Tested lirc-0.8.3-r1 with gentoo-sources-2.6.25-r2.  No more Oops and it works fine.
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2009-02-27 07:34:40 UTC
Marking as fixed