Hello all, I get this when booting kernel 2.6.23: Oct 10 18:15:19 section-eight kjournald starting. Commit interval 5 seconds Oct 10 18:15:19 section-eight EXT3-fs: mounted filesystem with ordered data mode. Oct 10 18:15:19 section-eight VFS: Mounted root (ext3 filesystem) readonly. Oct 10 18:15:19 section-eight Freeing unused kernel memory: 156k freed Oct 10 18:15:19 section-eight usb_id[884]: segfault at 00000000 eip b7e893e4 esp bff46254 error 4 Oct 10 18:15:19 section-eight EXT3 FS on hda2, internal journal dmesg shows: Freeing unused kernel memory: 156k freed usb_id[884]: segfault at 00000000 eip b7e893e4 esp bff46254 error 4 EXT3 FS on hda2, internal journal I didn't see any ill side effects but it looks like a bug anyway. Reproducible: Always Steps to Reproduce: 1. Run kernel 2.6.23, watch out for usb_id segfaulting Actual Results: usb_id segfaults with 2.6.23 Expected Results: It doesn't ;-) Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.23 i686) ================================================================= System uname: 2.6.23 i686 AMD Sempron(tm) 2400+ Timestamp of tree: Mon, 08 Oct 2007 07:20:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -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/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/home/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo ftp://pandemonium.tiscali.de/pub/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" LANG="de_DE@euro" LC_ALL="de_DE@euro" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/home/portage/packages" 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-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage" USE="3dnow 3dnowext X aotuv cups dvdr fontconfig gdbm gif gnutls gs iconv jpeg kde kdeenablefinal logrotate mmx mmxext ncurses nls nptl nptlonly pccts pcre perl png pop ppds python readline smtp spell sse ssl svg threads tiff truetype unicode x86 xml xorg xpm zlib" ALSA_CARDS="ice1712" ALSA_PCM_PLUGINS="route" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Can't reproduce it in an 64 bit environment - will test it later on a via x86.
Well, I can't reproduce it anywhere; anyway we need a backtrace: http://www.gentoo.org/proj/en/qa/backtraces.xml
which was the last known working kernel?
2.6.22(.9) works fine. I'll try doing a backtrace like Jakub suggested.
I'm unable to do a backtrace. I posted this issue upstream: http://thread.gmane.org/gmane.linux.hotplug.devel/12108 Meanwhile people start popping up with the same issue on the forums: http://forums.gentoo.org/viewtopic-t-599069.html Workaround: Enable CONFIG_SUSPEND I can't figure out how to manually reproduce the segfault. For instance I don't know the parameters udev calls usb_id with before it segfaults. Upping debug output of udev doesn't help - scrollback buffer is too small and the logs (syslog and bootlogd) are useless. I would try netconsole, but unfortunately I have no second box around here.
http://article.gmane.org/gmane.linux.hotplug.devel/12099 (seems the post was unfortunately split up)
kernel folks, ideas?
I have the same issue, will hopefully have time to dig into it soon.
Just in case you didn't read the gmane stuff: First bad commit is http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=296699de6bdc717189a331ab6bbe90e05c94db06
Are you using any USB input devices? If so, does replugging them cause more segfaults to appear in dmesg?
I have both USB mouse and keyboard. Replugging the keyboard is fine, but replugging the mouse makes usb_id segfault like you said. Oct 15 15:44:21 section-eight usb 2-2: USB disconnect, address 4 Oct 15 15:44:21 section-eight usb 2-1: USB disconnect, address 5 Oct 15 15:44:26 section-eight usb 2-2: new low speed USB device using ohci_hcd and address 6 Oct 15 15:44:26 section-eight usb 2-2: configuration #1 chosen from 1 choice Oct 15 15:44:26 section-eight input: Logitech HID compliant keyboard as /devices/pci0000:00/0000:00:02.0/usb2/2-2/2-2:1.0/input/input9 Oct 15 15:44:26 section-eight input: USB HID v1.10 Keyboard [Logitech HID compliant keyboard] on usb-0000:00:02.0-2 Oct 15 15:44:26 section-eight input: Logitech HID compliant keyboard as /devices/pci0000:00/0000:00:02.0/usb2/2-2/2-2:1.1/input/input10 Oct 15 15:44:26 section-eight input: USB HID v1.10 Device [Logitech HID compliant keyboard] on usb-0000:00:02.0-2 Oct 15 15:44:29 section-eight usb 2-1: new low speed USB device using ohci_hcd and address 7 Oct 15 15:44:29 section-eight usb 2-1: configuration #1 chosen from 1 choice Oct 15 15:44:29 section-eight input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:02.0/usb2/2-1/2-1:1.0/input/input11 Oct 15 15:44:29 section-eight input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:02.0-1 Oct 15 15:44:29 section-eight usb_id[3730]: segfault at 00000000 eip b7e713e4 esp bff2c954 error 4 Oct 15 15:44:29 section-eight udevd-event[3729]: run_program: '/lib/udev/usb_id' abnormal exit
haven't forgotten about this, am just away from the affected system at the moment. The problem appears to be that I do not get the per-device idVendor and idProduct files in sysfs under 2.6.23. Will hopefully get back to this soon.
Hi Daniel, can you try if the mentioned workaround (enable CONFIG_SUSPEND) works for you as well? Once you at the box again ... Regards Sebastian
this all stems from attributes such as idVendor and idProduct missing under 2.6.23. sent a kernel patch upstream to fix this...
fixed in gentoo-sources-2.6.23-r3