Red Hat Bugzilla – Bug 413831
udev timeout at boot; vol_id process stuck when /sbin/start_udev is run
Last modified: 2009-01-20 15:46:58 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:220.127.116.11) Gecko/20071126 Ubuntu/7.10 (gutsy) Firefox/18.104.22.168
Description of problem:
On boot, udev-095-14 fails to start in a timely manner; server then takes over
10 minutes to load with other errors generated due to vol_id process hogging CPU. This effectively reduces the server to zero value and stops any application from running.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Update RHEL5 to RHEL5.1
2. Error occurs on all reboots.
3. Commenting out /sbin/start_udev in /etc/rc.d/rc.sysinit allows for fast
restart, but causes other apps to fail and many device nodes not to be created.
/dev fills with .tmp files and vol_id processes hog CPU.
4 minute reboot, not 15 and an idle CPU after boot not 100% usage by udev/vol_id
kill -SIGTERM on udev process and the vol_id processes cleanly exits processes and returns CPU to idle.
Running /sbin/start_udev causes vol_id to hang again.
It also hangs if /lib/udev/vol_id is called directly.
/lib/udev/vol_id is statically linked to 2.6.9 kernel.
It appears to be exactly the same symptoms as bug id 213476 that was raised against FC6 - unfortunately we can't just upgrade RHEL5 to FC7 to fix!
Created attachment 279681 [details]
Strace of expected behaviour (from different machine) and actual behaviour
Working with RedHat engineers the problem boiled down to this:
The /etc/passwd file has the line '#foo' in it - blame the QA guys testing
An upstream patch with more robust error checking is being considered for
inclusion in a an updated udev release - in the meantime since the file differed
from the published syntax... NOTABUG.
I just encountered the same problem, after I upgraded to RHEL 5.1 a couple of
days ago. The passwd file has been unchanged across several upgrades between
Linux versions (I've been using the machine for several years, with the same
Just thought I might add that it looks like the problem occurs if, and only if,
the first line in the file starts with a '#'. "#" lines at other locations in
the file, i.e. after the first real user entry, work just fine.
Also, while fixing up the file I came across another, related issue. To reproduce:
1. Insert a blank line at the beginning of /etc/passwd file.
2. /lib/udev/vol_id --export /dev/sda1
*** buffer overflow detected ***: /lib/udev/vol_id terminated
======= Backtrace: =========
======= Memory map: ========
00986000-00987000 r-xp 00986000 00:00 0 [vdso]
08048000-080c0000 r-xp 00000000 08:05 4398802 /lib/udev/vol_id
080c0000-080c1000 rw-p 00077000 08:05 4398802 /lib/udev/vol_id
080c1000-080c3000 rw-p 080c1000 00:00 0
09c72000-09c94000 rw-p 09c72000 00:00 0
b7f50000-b7f52000 r--s 00000000 08:05 2392 /etc/passwd
bf923000-bf938000 rw-p bf923000 00:00 0 [stack]
I really don't get this. Aren't '#' comment lines, or blank lines, allowed in
the passwd file? I've always thought they were, and have had a number of them in
the passwd file on many different Linux versions and also other Unix platforms,
without ever encountering any problems.
Also, this seems to indicate vol_id has its own passwd parser. Why?
The man page for the /etc/passwd page doesn't mention the possibility of empty
or comment lines (see man 5 passwd).
Nonetheless i agree that the parser should be more robust in /lib/udev/vol_id.
Proposing for RHEL-5.3, waiting with final ACK on developer review.
Read ya, Phil
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
This bug needs a review from the component owner before granting Devel ACK.
Read ya, Phil
Granting Devel ACK after review of the package maintainer
Read ya, Phil
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.