Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189217 - >=kernel 2.6.21 - FTDI kernel module causes kernel panics on boot when FTDI device plugged in
Summary: >=kernel 2.6.21 - FTDI kernel module causes kernel panics on boot when FTDI d...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
Depends on:
Reported: 2007-08-17 10:47 UTC by Richard F. Ostrow Jr.
Modified: 2007-11-09 02:20 UTC (History)
0 users

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

kernel register dump (kernel stack.txt,4.13 KB, text/plain)
2007-11-06 20:09 UTC, Richard F. Ostrow Jr.

Note You need to log in before you can comment on or make changes to this bug.
Description Richard F. Ostrow Jr. 2007-08-17 10:47:00 UTC
Upon booting a 2.6.21 or higher kernel I get kernel panics when the FTDI module loads (built into my kernel). This only happens when my FTDI device is plugged in.

Because it's a kernel panic, I have no idea how to paste the stack trace it dumps to the screen here - the machine is frozen when it does this. It references attempting to access a NULL pointer in part of the kernel panic.

Reproducible: Always

Steps to Reproduce:
1. Compile a kernel with FTDI support built in (probably does the same as a module, but I'm trying to be specific)
2. Boot said kernel with a USB UIRT device plugged in (probably does the same with any FTDI device, but again, being specific)
3. Watch the fireworks as the kernel blows up

Actual Results:  
Kernel panic observed, stack trace visible but not recordable

Expected Results:  
Should boot with FTDI support

Here's a copy of 'uname -a':

rich@basilisk ~ $ uname -a 
Linux basilisk 2.6.21-gentoo-r4 #1 SMP Thu Aug 9 11:01:12 EDT 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux 

and 'emerge --info':

rich@basilisk ~ $ emerge --info 
Portage (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r4 x86_64) 
System uname: 2.6.21-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ 
Gentoo Base System release 1.12.9 
Timestamp of tree: Thu, 09 Aug 2007 06:20:01 +0000 
dev-java/java-config: 1.3.7, 2.0.33-r1 
dev-lang/python:     2.4.4-r4 
dev-python/pycrypto: 2.0.1-r6 
sys-apps/sandbox:    1.2.17 
sys-devel/autoconf:  2.13, 2.61 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 
sys-devel/binutils:  2.17 
sys-devel/gcc-config: 1.3.16 
sys-devel/libtool:   1.5.23b 
virtual/os-headers:  2.6.21 
CFLAGS="-O2 -pipe -march=athlon64" 
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" 
CXXFLAGS="-O2 -pipe -march=athlon64" 
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" 
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" 
PORTDIR_OVERLAY="/usr/portage/local/layman/armagetron /usr/local/portage" 
USE="X a52 aac aalib acpi aim alsa amd64 arts audiofile bash-completion berkdb bitmap-fonts bonobo bzip2 cdb cdparanoia cdr cli cracklib crypt cscope ctype cups curl curlwrappers db2 dbase dbm dbus dga dio directfb doc dri dts dv dvd dvdr dvdread eds encode ethereal examples fbcon ffmpeg fftw firefox flac fortran ftp gdbm ggi gif gimp gimpprint glib gnome gnutls gpm gtk gtk2 hal iconv imagemagick imap imlib innodb iodbc ipv6 isdnlog java joystick jpeg jpeg2k kde lcd ldap libcaca libedit libg++ lirc lua lzo mad md5sum midi mikmod mmap mng mozilla mp3 mpeg mpi mplayer mssql mudflap mysql mysqli ncurses nls nocd nptl nptlonly nsplugin odbc offensive ogg openal opengl openmp oss pam pcre pdf perl physfs png postgres ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session sharedmem smp sndfile snmp speex spell spl sqlite ssl svg sysfs szip tcl tcltk tcpd tetex theora tidy tiff timidity tk transcode truetype truetype-fonts type1-fonts unicode usb utempter v4l vcd videos vim-syntax vorbis wmf xanim xforms xine xinerama xml xorg xosd xpm xprint xv xvid zlib" ALSA_CARDS="cmipci usb-audio" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="usb_uirt_raw" USERLAND="GNU" VIDEO_CARDS="nvidia none" 
Comment 1 Markus Ullmann (RETIRED) gentoo-dev 2007-08-17 11:00:31 UTC
Using 2.6.21-gentoo-r7 here and it works fine
Comment 2 Mike Pagano gentoo-dev 2007-08-17 12:24:44 UTC

The oops message would really help us.  You could try one of the following:

1. Hand copy the message from the screen. (not much fun...)
2. Take a digital picture
3. use kdump (somewhat involved).
4. Boot with a serial console (see /usr/src/linux/Documentation/serial-console.txt)

Comment 3 Mike Pagano gentoo-dev 2007-09-15 23:36:48 UTC

If you still have problems please feel free to reopen with the information requested. 

Comment 4 Richard F. Ostrow Jr. 2007-11-06 20:09:05 UTC
Created attachment 135366 [details]
kernel register dump

kernel register dump that occurs when the ftdi module is loaded under a 2.6.21 kernel
Comment 5 Richard F. Ostrow Jr. 2007-11-06 20:11:06 UTC
This bug is apparently also covered at - it was apparently fixed under the red hat kernel I'll check whether it's fixed or not under the latest stable 2.6.22 or later kernel.
Comment 6 Richard F. Ostrow Jr. 2007-11-09 02:20:47 UTC
Works with 2.6.22-gentoo-r9