Since a few days I got the following Output while booting my system: ----------------- * Configuring system to use udev... * Populating /dev with device nodes... /sbin/rc: line 80: 1010 Segmentation fault /sbin/udevstart * Using /sbin/hotplug for udev management... ----------------- I tried to recompile udev and also tested it with CFLAGS="" but nothing fixed it. I am using sys-fs/udev-032 at the moment. Reproducible: Always Steps to Reproduce: 1. boot my gentoo 2. or start /sbin/udevstart manually 3. Actual Results: Segmentation fault in /sbin/udevstart Expected Results: no segfault ;-) Portage 2.0.51_rc1 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6. 7-hardened-r8 i686) ================================================================= System uname: 2.6.7-hardened-r8 i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.7-r4 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow -O2 -pipe -fomit- frame-pointer -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/bin/viewurl-opera.sh /usr/kde/ 2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow -O2 -pipe -fomit- frame-pointer -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp:// ftp.easynet.nl/mirror/gentoo/ http://gentoo.oregonstate.edu" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/gentoo-de-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow pam mmx sse video_cards_nvidia linguas_de"
Created attachment 39959 [details] Strace of the Segmentation Fault
Are you using the "hardened" toolchain? Odd. Can you run udevtest on the command line? Or udevinfo?
Oh, you are running a modified rule set, right? If you only use the rules that come with the udev package, does that work? Care to attach your modified rules and/or permissions?
Created attachment 40015 [details] 10-local.rules >Are you using the "hardened" toolchain? As you can see in my "emerge info" I am using the hardened-dev-sources and SSP in my CFLAGS. Additionally I compiled sys-libs/glibc with "erandom hardened nptl pic"-Flags. I am going to compile it without these USE-Flags to check if that is the source of the fault. udevinfo is not working for "-q path $DEVICE": -------------------------- ~ # udevinfo -q path -n /dev/sda device not found in database ~ # udevinfo -q path -n /dev/hda device not found in database -------------------------- But it works for something like "udevinfo -a -p /sys/block/sda" >If you only use the rules that come with the udev package, does that work? It does (see below), I attached my local rules. -------------------------- ~ # mv /etc/udev/rules.d/10-local.rules . ~ # udevinfo -q path -n /dev/hda /block/hda ~ # udevstart ~ # mv 10-local.rules /etc/udev/rules.d/10-local.rules ~ # udevstart Segmentation fault --------------------------
Update: Installing sys-libs/glibc without "erandom hardened nptl pic" did not change anything.
Should be fixed in latest (033) release.
Works great. Thank you.