Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123472 - pcfclock 0.44 - modprobe segfaults with 2.6.15.3 kernel
Summary: pcfclock 0.44 - modprobe segfaults with 2.6.15.3 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 02:54 UTC by Dirk Heinrichs
Modified: 2006-08-02 12:11 UTC (History)
1 user (show)

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 Dirk Heinrichs 2006-02-20 02:54:16 UTC
With pcfclock 0.44 and kernel 2.6.15.3 I get a segmentation fault from
"modprobe pcfclock", along with a kernel oops:

parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
Unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
c018da3c
*pde = 00000000
Oops: 0000 [#1]
PREEMPT SMP
Modules linked in: parport_pc pcfclock parport nfsd exportfs lockd nfs_acl sunrpc 8139too mii snd_als100 snd_opl3_lib snd_hwdep snd_sb16_dsp snd_sb_common snd_pcm snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi snd soundcore sd_mod rtc reiserfs usb_storage scsi_mod uhci_hcd usbhid usbcore psmouse dm_mod ext3 jbd
CPU:    0
EIP:    0060:[<c018da3c>]    Not tainted VLI
EFLAGS: 00010216   (2.6.15.3)
EIP is at vsnprintf+0x482/0x4b2
eax: 00000000   ebx: db5de2e0   ecx: 00000000   edx: 00000014
esi: c8919f6c   edi: db5de350   ebp: c8918000   esp: c8919f10
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 22024, threadinfo=c8918000 task=da43bab0)
Stack: 00000014 db5de350 e2b3b454 db5de363 d733ba00 00000286 0b500000 00000000
       db5de2e0 d02dce40 0804f080 c8918000 c01c3fab c8919f6c c8919f6c 0b500000
       e2beb738 e2bea578 d02dce40 0b500000 00000000 e2bea6db 00000000 d733ba00
Call Trace:
 [<c01c3fab>] class_device_create+0x6e/0x94
 [<e2bea578>] pcfclock_register+0x47/0x4e [pcfclock]
 [<e2bea5bc>] pcfclock_attach+0x3c/0x53 [pcfclock]
 [<e2b3709d>] parport_register_driver+0x2f/0x71 [parport]
 [<e2bed0a9>] pcfclock_init+0xa9/0xc4 [pcfclock]
 [<e2bed14c>] pcfclock_init_module+0x88/0x8e [pcfclock]
 [<c012cb1c>] sys_init_module+0xc8/0x1df
 [<c0102839>] syscall_call+0x7/0xb
Code: f9 1f ff 74 24 10 ff 74 24 18 55 ff 74 24 14 51 52 8b 54 24 24 89 f8 89 de e8 ec f8 ff ff 89 c7 83 c4 18 ff 44 24 1c 8b 44 24 1c <8a> 00 84 c0 0f 85 ff fb ff ff 3b 7c 24 0c 77 05 c6 07 00 eb 0d

I tested this on two machines (AMD K6-2 and Pentium M laptop).

Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r3, 2.6.15.3 i686)
=================================================================
System uname: 2.6.15.3 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/gentoo/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/gentoo/build"
PORTDIR="/gentoo/portage"
PORTDIR_OVERLAY="/gentoo/build/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acl acpi activefilter ada afs alsa aotuv arts asf async audiofile automount avi bacula-clientonly bacula-split-init bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 caps cdda cddb cdio cdparanoia chipcard client-only cpudetection crypt cups dlloader doc dri dtaus dv dvd dvdread edl emacs emboss encode exif expat ffmpeg flac font-server foomaticdb ftp gd-external gdbm geldkarte gif glut gmp gnutls gphoto2 gpm gtk2 hardened hbci httpd icq idn imagemagick imap imlib ipppd irda irmc isdnlog jpeg jpeg2k kcal kde kerberos latex lcms ldap libg++ libwww lm_sensors logrotate lzo mad madwifi maildir mbox mime mng motif mozsvg mp3 mpeg mule musicbrainz nas ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin objc ofx ogg oggvorbis openexr opengl pam pam_console pdflib perl perlsuid pg-intdatetime pic png postgres ppds pppd pwdb python qt quicktime rdesktop readline real rtc samba savedconfig slang slp sms sockets socks5 speedo speex spell sql sse ssl stream subversion svg svga swat symlink sysfs syslog tcpd tetex theora threads tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vim-with-x vlm vorbis wifi win32codecs wxwindows xine xml2 xprint xscreensaver xv xvid xvmc zeroconf zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2006-02-20 03:56:34 UTC
pcfclock is doing something bad
Comment 2 Stefan Briesenick (RETIRED) gentoo-dev 2006-02-20 04:09:23 UTC
huh?

well, I have to check it. perhaps it's easy to fix.
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2006-08-02 12:11:22 UTC
ok, finally. ;-)

I made patches for kernel 2.6.17. It works perfectly.