Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266873 - sys-fs/udev-141: settle timeout broken
Summary: sys-fs/udev-141: settle timeout broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-20 17:40 UTC by Robin Johnson
Modified: 2013-01-17 18:08 UTC (History)
0 users

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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-04-20 17:40:35 UTC
The processing uevents settle timeout takes ~3 minutes of wallclock time right now. The timeout value seems to be totally ignored, or it's re-running the timeout too many times.
Comment 1 Matthias Schwarzott gentoo-dev 2009-04-20 20:05:54 UTC
The init-script just calls
udevadm settle --timeout=${udev_settle_timeout:-60}
and that has not changed since, so should not be responsible for wrong timeouts.

The only settle related changes in udev-git I can find are these patches commited right before version 140:
bb38678e3ccc02bcd970ccde3d8166a40edf92d3 udevadm: settle - synchronise with the udev daemon
c2c24d4d3c8f83c5f4507bb13ba6c989f9d6ea45 udevadm: settle - use timeout signal, instead of loop counter

So you could bisect the binaries via bisect make make install or emerge selected versions via EGIT_TREE="..." emerge =udev-9999
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-04-22 17:56:12 UTC
I did a two-part change:
1. hardcode timeout argument to 15.
2. change the DEFAULT_TIMEOUT define to 25 (from 180)

recompiled, rebooted, no change in the actual result.

I'm wondering if it might be related to the 2.6.30-rc kernels.

Portage 2.2_rc31 (default/linux/x86/2008.0/desktop, gcc-4.2.4, glibc-2.9_p20081201-r2, 2.6.30-rc2-00368-gaefe647 i686)
=================================================================
System uname: Linux-2.6.30-rc2-00368-gaefe647-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-gentoo-2.0.0
Timestamp of tree: Unknown
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8, 2.6.1-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=prescott -mtune=prescott -pipe"
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/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-Os -march=prescott -mtune=prescott -pipe"
DISTDIR="/home/gentoo/distfiles"
FEATURES="assume-digests autoaddcvs buildpkg ccache collision-protect cvs distlocks fixpackages lmirror mirror parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_CA en_US en_GB en_ZA"
MAKEOPTS="-j3"
PKGDIR="/home/gentoo/packages/ebadi-int"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/code/gentoo/gentoo-cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC=""
USE="X a52 aac aalib acl acpi aio alsa amd ao apache2 ares async automount avahi avi bash-completion berkdb bluetooth bookmarks branding browserplugin bzip2 cairo calendar caps cdb cdda cdr cgi clamav clearpasswd cli cpdflib cracklib crypt cscope ctype cups curl curlwrappers daap dbus divx4linux dri dts dv dvd dvdr dvdread dynagraph emboss encode ethereal examples exif expat f77 fam fame fastcgi ffmpeg fftw firefox flac flash fltk fontconfig foomaticdb fortran fpx frxp gcj gd gdbm geoip gif glitz glx gmp gnokii gnults gnuplot gnutls gpm graphviz gs gstreamer gtk gtk2 gzip hal howl-compat hpn html i810 ical iconv imap imlib innodb insecure-savers ipalias ipod ipv6 irda isdnlog jack-tmpfs jbig john joystick jpeg jpeg2k kdeprefix kpathsea lcms ldap libnotify libsamplerate libwww linuxthreads-tls live logitech-mouse lzo mad maildir mbox mcal md5sum mdnsresponder-compat midi mikmod mjpeg mmx mmxext mod motif mozilla mozplugin mp3 mpeg mpm-prefork mudflap multicall musicbrainz ncurses netjack network nptl nptlonly nsplugin numeric objc offensive ogg oggvorbis openexr opengl openmp osd pam pcap pcre pda pdf pdflib perl php pic plotutils png pnp portaudio ppds pppd pulseaudio python qmail qt3support quicktime quotas rdesktop readline reflection rtc ruby scanner screen scrobbler sdl session shout skins slang slp sms sndfile snmp socks5 speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification stream svg swat sysfs syslog t1lib tcl tcltk tetex theora tiff truetype truetype-fonts type1 type1-fonts ungif unicode urandom usb userlocales utf8 v4l v4l2 vcd vidix vim-syntax vlm vorbis win32codecs winbind wireshark wmf wxwindows x86 xanim xcb xcomposite xinerama xml xml2 xorg xosd xrandr xscreensaver xulrunner xv xvid xvmc yv12 zeroconf zlib" ALSA_CARDS="dummy hda-intel intel8x0 intel8x0m loopback seq-dummy usb-audio virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias asis auth_digest       imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http" CAMERAS="adc65 agfa-cl20 agfa_cl20 aox barbie canon casio casio_qv clicksmart310 digigr8 digita dimagev dimera dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars minolta mustek panasonic panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 sonydscf1 sonydscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba toshiba_pdrm11" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="evdev joystick keyboard mouse synaptics void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_CA en_US en_GB en_ZA" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Matthias Schwarzott gentoo-dev 2009-04-28 15:10:10 UTC
Maybe you want to enable a parallel running udevmonitor and watch its log and timestamps.
Or use bootchart to see what processes are running in parallel.
Comment 4 Matthias Schwarzott gentoo-dev 2009-05-11 13:14:02 UTC
any news on this topic?
Comment 5 Matthias Schwarzott gentoo-dev 2009-05-21 09:48:49 UTC
Maybe this patch fixes your problem:
http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=f58a9099bb2b18f3f683615324a4382b95446305

Due to Bug #269378 you cannot test with udev-9999.
Comment 6 Matthias Schwarzott gentoo-dev 2009-07-16 08:48:00 UTC
(In reply to comment #5)
> Maybe this patch fixes your problem:
> http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=f58a9099bb2b18f3f683615324a4382b95446305
> 
> Due to Bug #269378 you cannot test with udev-9999.
> 
The ebuilds for Bug #269378 are unkeyworded in tree and udev-145 is there but masked.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2013-01-17 18:08:33 UTC
This seems fixed in 197-r2 which is going stable. See prev. comment.