Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64685 - udevstart segfaults on startup
Summary: udevstart segfaults on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-19 14:40 UTC by Boris
Modified: 2004-10-08 07:22 UTC (History)
0 users

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


Attachments
Strace of the Segmentation Fault (udevstart.strace,3.70 KB, text/plain)
2004-09-19 14:42 UTC, Boris
Details
10-local.rules (10-local.rules,493 bytes, text/plain)
2004-09-20 09:05 UTC, Boris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boris 2004-09-19 14:40:57 UTC
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"
Comment 1 Boris 2004-09-19 14:42:25 UTC
Created attachment 39959 [details]
Strace of the Segmentation Fault
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-09-20 00:46:04 UTC
Are you using the "hardened" toolchain?

Odd.  Can you run udevtest on the command line?  Or udevinfo?
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-09-20 00:47:25 UTC
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?
Comment 4 Boris 2004-09-20 09:05:43 UTC
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
--------------------------
Comment 5 Boris 2004-09-20 22:52:15 UTC
Update: Installing sys-libs/glibc without "erandom hardened nptl pic" did not change anything.
Comment 6 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-10-07 14:33:36 UTC
Should be fixed in latest (033) release.
Comment 7 Boris 2004-10-08 07:22:35 UTC
Works great. Thank you.