Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28861 - baselayout-1.8.6.10-r1 hangs on bootmisc
Summary: baselayout-1.8.6.10-r1 hangs on bootmisc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-16 03:28 UTC by Matteo Ceriani
Modified: 2005-08-09 08:13 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 Matteo Ceriani 2003-09-16 03:28:38 UTC
After upgrading from baselayout-1.8.6.8-r1 to -1.8.6.10-r1, when I boot my box
and enter in bootmisc I get "Cleaning /var/lock, /var/run" and then "Cleaning
/tmp directory": at this point the process hangs. If I press CTRL-Canc the boot
process goes over with keymap.
P.S. with 1.8.6.8-r1 the boot sequence goes without problems but I have this
message "xargs too large for..." while with -1.8.6.10-r1 the process hangs but I
don't have this message anymore.

Reproducible: Always
Steps to Reproduce:
1. Upgrade from baselayout-1.8.6.8-r1 to 1.8.6.10-r1
2. etc-update and so on
3. Boot

Actual Results:  
The process hangs when bootmisc start

Expected Results:  
The boot process should perform bootmisc and then go over

I've done diff between old and new bootmisc from /etc/init.d and this the result:
4c4
< # $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/bootmisc,v 1.33
2003/07/22 21:07:08 azarah Exp $
---
> # $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/bootmisc,v 1.29
2003/05/12 21:23:05 azarah Exp $
13c13
<       if [ "${BOOT}" = "yes" ]
---
>       if [ "${SOFTLEVEL}" = "boot" ]
30c30
<               if [ -x /sbin/env-update.sh ]
---
>               if [ -x /sbin/rc-envupdate.sh ]
44c44
<               ( find /var/lock -type f -exec rm -f -- {} \; )
---
>               ( find /var/lock -type f -print0 | xargs -0 rm -f -- 1>&2 )
Comment 1 Matteo Ceriani 2003-10-08 10:28:34 UTC
It seems I found out the problem. The problem is line 84:
"chown root.root /tmp/.{ICE,X11}-unix &>/dev/null", removing it bootmisc
doesn't hang and makes exactly all it has to do. I think the problem in this
line is command chown with group 'root', but I'm not so sure about it so
I let you investigate. I also noticed this: I think this line is superflous
because the previous line, line 83:
"mkdir -p /tmp/.{ICE,X11}-unix &>/dev/null"
create /tmp/ICE-unix and /tmp/X11-unix with owner root.root.
Well, tha's all :)
Sorry for my english and, if I can, I please you to confirm me if I am right.
Byez!
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-13 14:41:58 UTC
Not sure, it works fine here.  The line however is not needed, removed
in CVS, thanks.
Comment 3 Lionel Bouton 2005-08-09 08:13:17 UTC
baselayout 1.11.13 exhibits the very same behaviour in bootmisc on my
configuration: a freeze on startup at the "chown 0:0 /tmp/.{ICE,X11}-unix" point.

I'm not sure what the cause is maybe the shell interpreter used during the boot
doesn't like this syntax (in a bash shell this works fine). Letting the system
run a while and calling Sysreq-M triggers the kernel's oom-killer which kills
the chown process (as reported on the console).
Commenting the "chown..." line solves the problem, using Sysreq-E (terminate all
tasks) when stuck allows the init to proceed too.

Note: I thought about a borked baselayout or coreutils but reemerging these two
didn't solve the problem.

emerge info :
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ffast-math -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ffast-math -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/"
LINGUAS="fr"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib alsa apm avi bash-completion berkdb bindist bitmap-fonts
cjk crypt cups curl dga eds emacs emboss encode foomaticdb gcj gdbm gif
gimpprint gpm gstreamer gtk gtk2 imagemagick imlib java jikes jpeg junit ldap
libcaca libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg ncurses nls nptl ogg
oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl
spell sse ssl svga tcltk tiff truetype truetype-fonts type1-fonts unicode vorbis
xml2 xmms xprint xv zlib linguas_fr userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS