Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301246 - linux-headers-2.6.30 + sys-fs/udev-146-r1: 2nd boot halts at the stage of starting udev, specifically at the stage of "Waiting for uevents to be processed" after the upgrade from version udev-41-r1
Summary: linux-headers-2.6.30 + sys-fs/udev-146-r1: 2nd boot halts at the stage of st...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-17 02:14 UTC by Konstantin Ivanov
Modified: 2010-08-23 06:22 UTC (History)
1 user (show)

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


Attachments
Config Kernel 2.6.32-gentoo-r1 (kernel-config-x86-2.6.32-gentoo-r1,77.88 KB, text/plain)
2010-01-17 02:16 UTC, Konstantin Ivanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Ivanov 2010-01-17 02:14:47 UTC
Now you need to add support for wi fi card chip atheros (module ath5k), system packages have been updated, was chosen the latest available kernel in portage (2.6.32-gentoo-r1). Config was copied from the old kernel (2.6.31-gentoo-r4) and include the necessary option and compile the kernel, first boot the system is functioning properly, but the second boot will not stop at the stage of initializing udev.
Solving the problem in the source code of this version of the kernel the old kernel was compiled with the necessary module, previously an old binary file was saved, but booting from a newly compiled kernel (2.6.31-gentoo-r4) as described above ostanavlivalasb on stage. It was returned to the saved kernel build, but now it had problems. I had saved kernel build 2.6.25-gentoo-r4, booted from it, during the boot was ukazanoo the lack of devices. / Dev / tty [1-12], but in the directory / dev / was almost empty, carried an only part pseudo devices.
In the chroot environment was rebuilt system packages emerge-ae system, but this solves the problem only one load, then with any version of the kernel stops at the stage described above. 

Was made a clean installation of stage 3 (install-x86-minimal-20091103.iso stage3-i686-20091103.tar.bz2), portage upgraded to portage-20100115.tar.bz2, nstroen loader and made a number of reboots, then the core was collected (2.6.32-r1) with the old configuration file, and tested its performance.
Then you upgrade the system packages emerge-auvDN system, with a renewed version of udev 141-r1 (from stage 3) to version 146-r1. During the reboot was be delayed for a long time, and they are not continuing with this version of the kernel. Kernel copied from minimalcd still loaded, the truth is delayed in the above specified time, pordka minutes.
Then was another installation, copy the kernel from mininflcd, but only the updated e2fsprogs, e2fsprogs-libs to resolve dependencies and updated to udev 141-r1 (from stage3) to 146-r1, the delay in the above specified time appeared vno, although the version 141-r1 was not there. With kernel 2.6.32-r1 loading stops at the stage of "Waiting for uevents to be processed" and even after the long wait does not last. Most likely there is a bug in this version udev.

At the kernel enabled controllers Hard Disc and my chipset and support fylovoy root system.

Return to sys-fs/udev-141-r1 version solves the problem for one restart

The core collected both manually and using genkernel.


Reproducible: Always

Steps to Reproduce:
1. Establish a system of stage 3, update portage (portage-20100115.tar.bz2).
2. Copy the kernel from minimalcd (install-x86-minimal-20091103.iso).
3. Update sys-fs/udev to version 146-r1
4. Reboot




System Configuration:
AMD Athlon 6000 + X2
ASUS M2N32-SLI Deluxe (nForce 590)

Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.4.1, glibc-2.10.1-r1, 2.6.30-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.0.1
Timestamp of tree: Wed, 13 Jan 2010 04:30:18 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.5.4-r3, 2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -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/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3 --load-average=3"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl alsa apache2 berkdb bzip2 cairo cdr cli cracklib crypt cups cxx dbus djvu dri dvd dvdr fbcondecor ffmpeg flac fortran gdbm gnome gpm gstreamer gtk hal iconv jpeg libv4l2 mmx modules mp3 mp4live mpeg mpeg2 mudflap musepac nautilus ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre perl png pppd python readline reflection ru samba session skins sndfile spl sse sse2 ssl stream sysfs tcpd tiff unicode us v4l v4l2 vcd win32codecs wma x264 x86 xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Konstantin Ivanov 2010-01-17 02:16:11 UTC
Created attachment 216711 [details]
Config Kernel 2.6.32-gentoo-r1
Comment 2 Rafał Mużyło 2010-01-17 19:11:35 UTC
Of what I could understand from your message:
udev-146 needs a fairly recent kernel and glibc,
though IIRC glibc-2.10.1-r1 and 2.6.30-gentoo-r8
should be OK.
It also wants CONFIG_SYSFS_DEPRECATED_V2 not set,
but the attached config seems OK there too.

Did you try to revdep-rebuild after udev/util-linux/e2fsprogs-libs
upgrade ?
Comment 3 Konstantin Ivanov 2010-01-19 05:39:32 UTC
First, in my system was the kernel 2.6.31-gentoo-r4, udev-146-r1, gcc-4.4.1 and glibc-2.9.
Then I build a new kernel with the config from the old kernel, but added support for module ath5k.
The first boot with new kernel was fine.
In the second loading system with the new kernel boot process has to stop at the stage of "Waiting for uevents to be processed".
I waited about 20 minutes, but the download does not progress.
I booted from the old kernel, but now when booting from it stops at the stage of "Waiting for uevents to be processed".
I booted from minimalcd, moved to chroot and produced reinstall udev-146-r1.
The first boot with the old kernel (2.6.31-gentoo-r4) is normal, but should again be stopped.
In the chroot I have performed a emerge-e system.
The process of loading the second just stops.
Then I installed on a separate system with stage 3, which is udev-141-r1 of the box.
Copy the kernel from minimalcd 2.6.30-gentoo-r8 with the modules and its kernel 2.6.32-gentoo-r1. When you boot with both cores are all normal.
After the upgrade to emerge-auvDN system at boot with kernel 2.6.32-gentoo-r8 boot process stops again at the stage of "Waiting for uevents to be processed", boot from kernel 2.6.30-gentoo-r8 is normally only once.
Because it was made to update all system packages after the installation I set the system again, copied the kernel, checked the boot from both, everything is fine.
Then made the upgrade to udev version 141-r1 to version 146-r1, boot with the kernel 2.6.-32-gentoo-r1 the boot process stops at the stage of "Waiting for uevents to be processed".
If the boot after that with the kernel 2.6.30-gentoo-r8, then at the stage of "Waiting for uevents to be processed" is delayed for about a minute, then the system is still loaded.
How can I restore the system work without reinstalling?
Comment 4 Rafał Mużyło 2010-01-19 12:40:03 UTC
I'm not sure if blindly copying old kernels is a good idea.
Kernel headers and glibc play a major role in kernel compilation.

udev-146 wants signalfd4 syscall - it's in kernel (for x86/amd64)
since (AFAIK) 2.6.27 and it must be implemented in glibc (that's at least
2.9, if not 2.10.1). While your 'emerge --info' seems sufficient,
perhaps that old kernel was compiled on a system with too low versions.
Comment 5 João P. Teixeira 2010-01-19 22:15:56 UTC
I have to report another problem with udev-146-r1. After booting the system, X starts but input devices do not get recognized. dmesg reports, very late in the boot sequence (just before X starts):

"udevadm[6595]: segfault at 0 ip 00007f287efc7061 sp 00007fff90b05238 error 4 in libc-2.10.1.so[7f287ef4b000+14f000]"

The (USB) mouse gets recognized after Unplugging and replugging it. Then, I can drop to a console and restart dbus, consolekit and hal, all of which gets the (PS-2) keyboard recognized. Only after this, X becomes usable.

Downgrading udev to version 141 solves the problem. I am running an up-to-date amd64 gentoo (stable) system. Emerge --info output:

Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================                                       
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.13  
Timestamp of tree: Tue, 19 Jan 2010 15:15:03 +0000                                                           
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                    
ccache version 2.4 [enabled]                                                                                 
app-shells/bash:     4.0_p35                                                                                 
dev-java/java-config: 2.1.9-r2                                                                               
dev-lang/python:     2.6.4                                                                                   
dev-python/pycrypto: 2.1.0_beta1                                                                             
dev-util/ccache:     2.4-r7                                                                                  
dev-util/cmake:      2.6.4-r3                                                                                
sys-apps/baselayout: 1.12.13                                                                                 
sys-apps/sandbox:    1.6-r2                                                                                  
sys-devel/autoconf:  2.13, 2.63-r1                                                                           
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                            
sys-devel/binutils:  2.18-r3                                                                                 
sys-devel/gcc-config: 1.4.1                                                                                  
sys-devel/libtool:   2.2.6b                                                                                  
virtual/os-headers:  2.6.27-r2                                                                               
ACCEPT_KEYWORDS="amd64"                                                                                      
CBUILD="x86_64-pc-linux-gnu"                                                                                 
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirrors3.netvisao.pt/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en pt pt_BR en_US"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://darkstar.ist.utl.pt/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi alsa amd64 auctex bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cvs cxx dbus directfb divx dri dts dv dvd dvdr dvi eds emacs emboss encode evo fam ffmpeg flac foomaticdb fortran fuse gdbm gif gimp gphoto2 gpm graphviz gstreamer gtk hal hddtemp iconv ieee1394 ipod ipv6 java jpeg kde kde4 kpathsea latex libnotify lm_sensors logitech-mouse lzma mad mikmod mmx mmxext mng modules motif mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pcre pdf perl png ppds pppd preview-latex python qt3support qt4 quicktime readline realmedia reflection scanner sdl session spell spl sql srt sse sse2 ssl ssse3 startup-notification svg sysfs tcl tcpd theora threads thunar tidy tiff tk truetype unicode usb vcd vorbis webkit wmp wxwindows x264 xcb xft xine xml xorg xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CAMERAS="kodak nikon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pt pt_BR en_US" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm ppc ppc64" QEMU_USER_TARGETS="i386 x86_64 arm ppc ppc64 ppc64abi32" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 João P. Teixeira 2010-01-23 21:59:33 UTC
Update to #5:

During the week, I upgraded other systems. I found it strange that the other systems with similar configs did not show up the same problem. 

In the affected system, I suspected that the problem was related to kvm-qemu. To satisfy its dependencies, I had to upgrade linux-headers to version 2.6.30, (and, obviously, recompile glibc). Maybe it introduced some inconsistencies.

I have unmerged kvm-qemu, downgraded linux-headers to the stable 2.6.27 version and reemerged glibc. Then I have emerged system (with --emptytree). After that I upgraded udev-141 to udev-146-r1. I recompiled the kernel and rebuilt the initrd. I rebooted and the problem vanished, i.e., now udevadm does not crashing during the boot sequence. Anywaym, I don't know what kind of inconsistency in the system was causing the problem.

Comment 7 SpanKY gentoo-dev 2010-08-23 06:22:11 UTC
this bug is not about segfaulting.  file your own report about that.

as for the original report, is this still occurring with stable versions of packages ?